Wednesday, October 9, 2024

CTSD - Model Question Paper of 60 Marks for practice SET-1

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 typecasting in C.
  2. List the different data types in C.
  3. State the use of the ‘continue’ statement in loops.

Q.2 Answer the following questions.
A) Define a function in C. (2 Marks)
B) Explain the concept of call by reference with an example. (6 Marks)

Q.3 Answer the following questions.
C) What is a 1D array? (2 Marks)
D) Write a program to generate the first 10 natural numbers using a loop. (6 Marks)

Q.4 Answer the following questions.
A) Define a string in C. (2 Marks)
B) Write a program to find the length of a string. (6 Marks)

Q.5 Answer the following questions.
A) Explain recursion with an example. (2 Marks)
B) Write a program to find the area of a circle using a function. (6 Marks)


Section-B (30 Marks)

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

  1. Define a loop.
  2. What is an array in C?
  3. State the difference between 'while' and 'do-while' loops.

Q.7 Answer the following questions.
A) List the different types of loops in C. (2 Marks)
B) Explain the use of the ‘for’ loop with an example. (6 Marks)

Q.8 Answer the following questions.
A) What is a switch case? (2 Marks)
B) Write a program to check whether a number is prime. (6 Marks)

Q.9 Answer the following questions.
A) Define nested loops. (2 Marks)
B) Write a program to generate a multiplication table for a given number using nested loops. (6 Marks)

Q.10 Answer the following questions.
A) What is a user-defined function? (2 Marks)
B) Write a program to calculate the factorial of a number using recursion. (6 Marks)

No comments: