You are on page 1of 2

Hall Ticket No.

: SRIT R19

SRINIVASA RAMANUJAN INSTITUTE OF TECHNOLOGY


(AUTONOMOUS)
I B. Tech I Sem – Semester End Examinations – Regular – Dec 2019 & Jan 2020
PROBLEM SOLVING & PROGRAMMING
[194GA05101]
(Common to all Branches)
Time: 3 hours Max. Marks: 70

PART-A
(Compulsory Question)
***

1 Answer the following: (10 X 02 = 20 Marks)


a) Explain the concept of structured Programming.
b) List the hardware components in the CPU.
c) Write a short note on Conditional operator in C with an example.
d) What are the naming conventions used for identifiers in C?
e) How many maximum arguments can be passed by a return statement?
f) List the advantages and disadvantages of Recursion.
g) Define Array and demonstrate the syntax of a multi-dimensional array.
h) Discuss in detail about Address Operator in C.
i) Discuss and specify the time complexity of sorting by selection.
j) Illustrate the differences between Structure and Union.

PART-B
(Answer all five units, 5 X 10 = 50 Marks)

UNIT-1
2 a) What are the different types of programming languages? Explain their features. [5M]
b) Compare and contrast high level, middle level, low-level languages. [5M]
(OR)
3 a) Write an algorithm for finding a maximum of two numbers and trace the [5M]
algorithm to depict the logic with a sample input.
b) List and explain the steps involved in the execution of a C program. [5M]

UNIT-2
4 a) What is meant by type conversion? Explain various types of conversions in [5M]
detail.
b) Distinguish between break and continue statements with examples. [5M]
(OR)
5 a) Explain different unary operators with an example for each. [5M]
b) Define data type. What is the size of each data type? Explain. [5M]

UNIT-3
6 a) Write a program for finding the square root of a number using functions. [5M]
b) What is meant by the storage class of a variable? Explain in detail. [5M]
(OR)
7 a) Discuss the scope of a variable with suitable examples. [5M]
b) Write a program to find the greatest common divisor of two integers using [5M]
functions.

Page 1 of 2
UNIT-4
8 a) What is a Pointer to a Null pointer? Explain. [5M]
b) Write a program that reads 8 integers and prints the first and the last on one line, [5M]
the second and seventh on the next line, the third and sixth on the next line, and
so forth. The sample input and output has shown below.
Input: 6 2 9 4 3 5 7 1
Output: 6 1
27
95
43
(OR)
9 a) How to pass pointers as arguments to a function? Illustrate with an example. [5M]
b) Briefly discuss a one-dimensional array with an example. [5M]

UNIT-5
10 a) How the member variables of a structure are accessed if the variable is a normal [5M]
variable and a pointer variable. Illustrate it with an example.
b) Write a C program to perform a Linear search on an array of elements. [5M]
(OR)
11 a) Analyze how to perform sorting by partitioning? Discuss with an example. [5M]
b) Explain Error handling functions in C with examples. [5M]

*****

Page 2 of 2

You might also like