#1
| |||
| |||
![]()
Can you please give me the past year question papers of PTU MCA 1st Sem-Programming in C (MCA-102) as it is very urgent for me?
|
#2
| ||||
| ||||
![]()
As you want to get the past year question papers of PTU MCA 1st Sem-Programming in C (MCA-102) so here is the information of the same for you: Section - A QI) Discuss the gener alized,methodology involved in the proble-tfi;i .: 10) Q2) What is the range of various data types? Discuss the primary data types in detail. Section - B (IxI0=10) Q3) (a) Write a program in C to sort integer elements of one dimensional array I in ascending order. (b) List few conditional compilation directives and their functionality. Q4) (a) Write a function that interchange and prints the value oftwo integersA and B without using any extra variable. (b) Define recursion. Section - C ' A, (a) What are the two common ways of selecting array elements for processing. (b) Differentiate between dynamic and non dynamic data structures. Q6) (a) Explain with example the relationship of one dimensional array with pointers. (b) Define enumeration. Section - D (1 x I0: l0) Q7) What is meant by random file access? How C implements the concept of random file access" QS) (u) Write the algorithmic steps for searching a binary search tree. (b) Differentiate between exchange selection sorting and selection sorting. Section - E a) Compiler. b) Recursivealgorithm. c) Bitwise operators" d) Difference between a string and a character. e) Function prototype. 0 The functions related to the.header file time-h. g) Pointerarithmetic. h) Example offunctionreturningpointer' D Need of structure initialization. ) Difference between fseekQ and ftellQ. Section - A (1 x 10: 10) QI) What do you mean by the terms algorithm and flowchart? Illustrate their use with the help of suitable examples? Q2) List and explain different types of data types in C?Also differentiate between signed and unsigned data types with reference to range of memory they occupy? (1 x 10: 10) Section - B Q3) What are functions? Differentiate between call by value and call by reference with the help of suitable examples? a4), Write a C program to read the element of two 3 x 3 matrices and multiply two matnces. Section - C (1x10-10) Q5) Write a function (using pointer parameters) that compares two integer arrays to see whether they are identical. The function returns I if they are identical, 0 otherwise? Q6) Differentiate and compare the working of an array, structure and a union with the help of suitable examples? Section - D (I x I0: l0) Q7) Write a program that compares two files and returns 0 if they are equal and I if they are not. Q8) What do you mean by dynamic memory allocation? Explain the working of following functions with the help of suitable examples : . Malloc ( ) . Calloc ( ) . Free o . Realloc ( ) Section - E Differentiate between reserve words and identifiers? What are enumerated data types? What is sorting? What is the role of header files? Explain global variable and local variable. What do you mean by conditional statements. What do you mean by prototype? List the various string operations? What is the role of return statement? What do you mean by recursion? Section - A (1x10-10) QI) (a) What are the four classes of data types supported by ANSI C. (b) Explain stepwise the automatic type conversion for the following. int i, x; float f; double d: long int l; x = l/i + i * f - d; Q2) (a) How can enum be used to create user defined data type? (b) Write a program that reads a string including blank spaces until '\n' is encountered. Section - B (1x10=10) Q3) (a) What are the differences between while & do while construct. (b) Write a program that accepts a string, reverses the string and prints it. QQ @) Write a program that finds the largest of three numbers using nested'if statement. Also give its flowchart (b) Write a program that uses a recursive function to print fibonacci sequence. (Fibonaaci sequence is 0, t, L,2,3, 5, 8 and so on) Section - C (1x10=10) QS) (a) What is the difference between a structure and a union. (b) Write a program that defines a structure book having members name, author and price and compares two variables of type book. Q6) (a) Write a program using pointers to compute the sum of all elements stored in an array. (b) Explain the difference between Call by Value & Call by Reference. Section - D er) (a) Explain fseek( ) function (1 x 10 = 10) (b) Write a program that sorts an array using bubble sort method. Q8) (a) Write a program that writes all reads ten numbers and writes all odd numbers to a file ODD & all even numbers to a file EVEN. (b) Explain malloc( ) function using an example. Section - E. (10x2=20) Q9) a) What will be the output of the following inta=5,b,c; b = **a: c = a**i Printf("Vod %od %odV", a,b,c); b) What will be the output of the following (i) Prtntf("Vo11.4e", -98.7654); (ii) Printf("Vo-20.10s", "NEW DELHI 1 10001"); c) What is the difference between a character 'A' & string "A". d) What is the difference between a static and auto variable? e) Define register. variable. 0 Explain strcmp function. g) What is a preprocessor directive? h) What is type casting? i) What will be output of the following float y; int fem = 995, mal = 1000, x; x = fem/mal; y - (floatXem/mal; Printf(" Vo d Voy", x,y); j) What is scale factor in pointer variables. Contact Details: Punjab Technical University Near Pushpa Gujral Science City, Jalandhar- Kapurthala Highway, Kapurthala, Punjab 144601 0182 266 2521 India Map Location:
__________________ Answered By StudyChaCha Member |
![]() |
|