Instructions:
1. This question paper
comprises of two sections. Write answer of both the sections in separate answer
books.
2. From Section I, Q.1 is
compulsory, attempt any THREE from Q. 2 to Q. 5
3. From Section II, Q.6
is compulsory, attempt any THREE from Q. 7 to Q. 10
4. Make suitable
assumptions wherever necessary.
5. Start new question on
new page.
aper Set 4
Section-A (30 Marks)
Q.1 Objective Type Questions - (State, Define, List, etc) (6 Marks)
- Define type conversion.
- List the components of a C program.
- State the use of the ‘continue’ statement.
Q.2 Answer the following questions.
A) Define nested if-else statements. (2 Marks)
B) Explain the concept of user-defined functions in C. (6 Marks)
Q.3 Answer the following questions.
C) What is a 1D array? (2 Marks)
D) Write a program to generate a Fibonacci series up to N numbers. (6 Marks)
Q.4 Answer the following questions.
A) Define a string in C. (2 Marks)
B) Write a program to toggle the case of characters in a string. (6 Marks)
Q.5 Answer the following questions.
A) Explain call by value. (2 Marks)
B) Write a program to find the factorial of a number using recursion. (6 Marks)
Section-B (30 Marks)
Q.6 Objective Type Questions - (State, Define, List, etc) (6 Marks)
- Define the ‘for’ loop.
- What is a string function?
- State the difference between call by value and call by reference.
Q.7 Answer the following questions.
A) List the branching statements in C. (2 Marks)
B) Explain how the ‘switch’ statement works with an example. (6 Marks)
Q.8 Answer the following questions.
A) What is a function prototype? (2 Marks)
B) Write a program to generate a result sheet for 5 students using a loop. (6 Marks)
Q.9 Answer the following questions.
A) Define arrays in C. (2 Marks)
B) Write a program to reverse the order of numbers in an array. (6 Marks)
Q.10 Answer the following questions.
A) What is recursion? (2 Marks)
B) Write a program to create a calculator using user-defined functions. (6 Marks)
No comments:
Post a Comment