Professional Documents
Culture Documents
2021
B Tech I Year I Sem. Supplementary Exams Sept- 2021 (2017, 2016 & 2015 Batches)
Subject: Problem Solving Through ‘C’
Branch: Common to All
Time: 3 hours Max. Marks: 70
Answer Any Five Questions (5 X 14 = 70 Marks)
All Questions Carry Equal Marks
2. a) Illustrate the use of special control constructs goto, break, and continue. (CO2)
b) Write a C program to find the GCD of two numbers. [6+4+4]
c) Write a C program to find the factorial of a given number.
4. a) Define array. Explain with suitable example how to declare and initialize 1D array.
b) What is pointer? Explain how the pointer variable is declared and initialized? Explain the
array of pointers with example? (CO4)
[7+7]
5. a) Define string. How is string declared and initialized? Explain string input/output
functions with an example. (CO5)
b) Write a recursive program in C to generate Fibonacci series. [7+7]
6. a) Define variable. Explain the rules for constructing variables in C language. (CO1)
b) What is type conversion? Explain two types of conversion with examples. [7+7]
*****