17080825904introduction To Programming
17080825904introduction To Programming
SECTION –A 10 X 2 =20
1 a Draw a flow chart to print first n natural numbers. L2 CO1 [2M]
b Explain typecast in c programming. L2 CO1 [2M]
c Write syntax of switch-case statement. L2 CO2 [2M]
d Differences between while and do-while loop. L2 CO2 [2M]
e Write about extern storage class in C. L2 CO3 [2M]
f Write about modularization in programming. L2 CO3 [2M]
g Difference between malloc() and calloc(). L2 CO4 [2M]
h Define a string and how to declare a string in C. L2 CO4 [2M]
i Difference between structure and Union. L2 CO5 [2M]
j Write the syntax of fopen() function. L2 CO5 [2M]
SECTION –B 5 X 10 =50
UNIT-I
2 a Differentiate among high level, low level and middle level L2 CO1 [5M]
language?
b Explain problem solving strategies with suitable example. L2 CO1 [5M]
OR
3 a Explain time and space complexity of an algorithm with an example. L2 CO1 [5M]
b What do you mean by data types? Explain data types of C language. L2 CO1 [5M]
UNIT-II
4 a Explain the various conditional branching statements with suitable L2 CO2 [5M]
example.
b Write a program to print Fibonacci sequence up to n terms. L3 CO2 [5M]
OR
5 a Explain break, continue statements with example and their use? L2 CO2 [5M]
b Write a program to find factorial of a number using for loop? L3 CO2 [5M]
UNIT-III
6 a Explain Call by value and call by reference with example. L2 CO3 [5M]
b Explain about recursion using suitable example. L2 CO3 [5M]
OR
7 a Write short notes on: i) Null pointer ii) Dangling pointer L2 CO3 [5M]
b Write a C program to check given number is Armstrong or not using L3 CO3 [5M]
functions.
Page 1 of 2
UNIT-IV
8 a Explain about dynamic memory allocation in C programming. L2 CO4 [5M]
b Write a C program to calculate the matrix multiplication. L2 CO4 [5M]
OR
9 a Write a C program to concatenate two strings without using string L2 CO4 [5M]
handling function.
b Write a c program to print the diagonal elements of a matrix. L3 CO4 [5M]
UNIT-V
10 a Illustrate the concept of nested structures with an example L2 CO5 [5M]
b Define file and explain various file opening modes with an example. L2 CO5 [5M]
OR
11 a What do you mean by array of structure? Explain with example? L2 CO5 [5M]
b Write a C program to read and display a text from the file L2 CO5 [5M]
Page 2 of 2