Professional Documents
Culture Documents
: SRIT R19
PART-A
(Compulsory Question)
***
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