2024 Programming in C Question Paper
MCA 1st Semester Programming in C • MPC Autonomous College, Takhatpur, Baripada
- Course
- MCA
- Semester
- Semester 1
- Year
- 2024
- Exam Type
- Regular
MCA 1st Semester Programming in C • MPC Autonomous College, Takhatpur, Baripada
Transcribed questions for Programming in C (MCA, Regular 2024) including all sections, choices, marks, equations, and diagrams.
a) Define operators in C. Explain comma operator and conditional operator with suitable examples. [10]
b) Write a program in C to check whether a number is even or odd. [10]
c) Write the syntax of if, if-else, else-if, do-while and while, for, nested for.
d) Write a program in C to find the factorial of a number. [10 + 10 = 20 Marks]
a) Define array. Compare single dimensional and multi-dimensional array. How an array can be declared and initialized ? [10]
b) Define null pointer, wild pointer, dangling pointer with their syntax. [10]
c) Compare call by value and call by reference with suitable example.
d) Compare array and pointer and what do you mean by pointer arithmetic. [10 + 10 = 20 Marks]
a) Define recursion function. Using recursion, find the GCD of two numbers. [10]
b) Explain briefly different types of user defined functions. [10]
c) Compare auto and static with suitable C program.
d) Define actual argument, formal argument, local variable and global variable with examples. [10 + 10 = 20 Marks]
a) Compare structure and union and write its syntax for declaring both of them. [10]
b) WAP in C to display student details using structure. [10]
c) How to open and close a file? Explain with examples.
d) What do you mean by array to structure and pointer to structure?. [10 + 10 = 20 Marks]