You are on page 1of 1

Code No.: B11PS3021 Date: 17.09.

2021

CVR COLLEGE OF ENGINEERING


UGC Autonomous Institution - Affiliated to JNTUH R15

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

1. a) What is software? Explain different types of software. (CO1)


b) With a neat diagram explain the basic structure of a computer. [7+7]

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.

3. a) Explain any five preprocessor directives in C. (CO3)


b) What is function? Explain different classification of user defined functions based on
parameter passing and return type with examples. [5+9]

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]

7. a) Write a C Program to perform addition of two matrics. (CO4)


b) Explain how pointers and arrays are related with example [7+7]

8. a) Write c program to find the frequency of characters in a string (CO5)


b) Write a C program to remove all duplicates from a given string. [7+7]

*****

You might also like