AUTHENTIC EXAMINATION ARCHIVE

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

Original Examination Scans (2)

Verified Pages
2024 Programming in C question paper page 1, MPC Autonomous College, Baripada
Page 1: Programming in C (2024)
2024 Programming in C question paper page 2, MPC Autonomous College, Baripada
Page 2: Programming in C (2024)

Programming in C (CA-1.2) 2024 Questions

Transcribed questions for Programming in C (MCA, Regular 2024) including all sections, choices, marks, equations, and diagrams.

Unit 1 - C Operators, Conditionals & Loops

Q.1 [10 + 10 = 20 Marks]

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]

OR

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]

Unit 2 - Arrays, Pointers & Memory

Q.2 [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]

OR

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]

Unit 3 - Functions, Recursion & Storage Classes

Q.3 [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]

OR

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]

Unit 4 - Structures, Unions & Files

Q.4 [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]

OR

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]