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.
Section-A (30 Marks)
Q.1 Objective Type Questions - (State, Define, List, etc) (6 Marks)
- List the components of a flowchart.
- Define an array in C.
- State the syntax of a ‘while’ loop.
Q.2 Answer the following questions.
A) Define an algorithm. (2 Marks)
B) Explain the concept of operators in C. (6 Marks)
Q.3 Answer the following questions.
C) What is type conversion? (2 Marks)
D) Write a program to find the area of a rectangle. (6 Marks)
Q.4 Answer the following questions.
A) What is a string in C? (2 Marks)
B) Write a program to reverse a string. (6 Marks)
Q.5 Answer the following questions.
A) Define a user-defined function. (2 Marks)
B) Write a program to add two matrices. (6 Marks)
Section-B (30 Marks)
Q.6 Objective Type Questions - (State, Define, List, etc) (6 Marks)
- Define an array.
- What is recursion?
- State the purpose of the ‘switch’ statement.
Q.7 Answer the following questions.
A) List the types of arrays. (2 Marks)
B) Explain the difference between a 1D and a 2D array. (6 Marks)
Q.8 Answer the following questions.
A) What is a ‘for’ loop? (2 Marks)
B) Write a program to calculate the sum of the first 10 natural numbers. (6 Marks)
Q.9 Answer the following questions.
A) Define branching in C. (2 Marks)
B) Write a program to calculate the area of a circle using a function. (6 Marks)
Q.10 Answer the following questions.
A) Define the term ‘algorithm’. (2 Marks)
B) Write a program to generate an electricity bill based on the number of units consumed. (6 Marks)
No comments:
Post a Comment