Wednesday, October 9, 2024

CTSD Model Question Paper for practice SET-2

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)

  1. Define recursion in programming.
  2. List the loop control statements in C.
  3. State the components of a function in C.

Q.2 Answer the following questions.
A) Define a 2D array. (2 Marks)
B) Explain the concept of nested loops with an example. (6 Marks)

Q.3 Answer the following questions.
C) What is a string function in C? (2 Marks)
D) Write a program to find the maximum of three numbers using else-if ladder. (6 Marks)

Q.4 Answer the following questions.
A) Define matrix in C. (2 Marks)
B) Write a program to multiply two matrices. (6 Marks)

Q.5 Answer the following questions.
A) Explain the use of the ‘break’ statement in loops. (2 Marks)
B) Write a program to check whether a given number is a palindrome. (6 Marks)


Section-B (30 Marks)

Q.6 Objective Type Questions - (State, Define, List, etc) (6 Marks)

  1. Define a loop in programming.
  2. What is an operator in C?
  3. State the types of user-defined functions.

Q.7 Answer the following questions.
A) List the string functions available in C. (2 Marks)
B) Explain the difference between pre-decrement and post-decrement operators. (6 Marks)

Q.8 Answer the following questions.
A) What is a nested if-else statement? (2 Marks)
B) Write a program to generate an electricity bill based on unit consumption. (6 Marks)

Q.9 Answer the following questions.
A) Define an algorithm. (2 Marks)
B) Write a program to add two matrices. (6 Marks)

Q.10 Answer the following questions.
A) What is a flowchart? (2 Marks)
B) Write a program to arrange a given set of numbers in descending order. (6 Marks)

No comments: