C Pyq1
C Pyq1
pm
USN
9
Introduction to C Programming
5 :1
Time: 3 hrs. Max. Marks: 100
:1
Note: 1. Answer any FIVE full questions, choosing ONE full question from each module.
2. M : Marks , L: Bloom’s level , C: Course outcomes.
U
01
-B
Module – 1 M L C
Q.1 a. Explain with neat diagram different components of computer in detail. 10 L1 CO1
U
02
b. Define variable. List and explain with example the rules for declaring 5 L1 CO1
-B
variables.
-2
Explain I/O statements in ‘C’ with syntax and example.
U
c. 5 L1 CO1
10
-B
OR
4-
Q.2 a. Explain with neat diagram the structure of ‘C’ program and explain all 8 L1 CO1
components. U
-0
-B
U
b. How the ‘C’ program can be compiled and executed. Explain with flow 8 L1 CO1
diagram all the steps.
VT
m
-B
U
Module – 2
U
-B
:3
Q.3 a. List and explain the different types of operators used in ‘C’ with example. 6 L1 CO2
-B
31
-B
:
c. Write a ‘C’ program to check the given character is lowercase or uppercase 6 L3 CO2
01
-B
or special character.
U
23
OR
U
-B
Q.4 a. Explain the use of break and continue statements with example program. 10 L1 CO2
-B
20
-B
0-
Module – 3
a. Define function. Explain different components of the functions with neat
-1
Q.5 5 L1 CO2
U
syntax.
04
-B
constants b1, b2, b 3 such that the equation is balanced on both sides and it
-B
c. List and explain the different types of function calls with example. 10 L2 CO2
U
-B
1 of 2
U
-B
BU
BESCK104E/ BESCKE104
pm
OR
Q.6 a. Define array. Explain how an array can be declared and initialized with 6 L1 CO1
example.
9
:1
b. Explain with example how an array can be passed as parameter to the 8 L1 CO2
function.
5
:1
c. Write a C program to sort the given set of elements using bubble sort 6 L3 CO4
U
01
technique.
-B
Module – 4
3
Q.7 a. Explain with syntax. How the two dimensional arrays can be declared and 6 L2 CO3
U
02
initialized?
-B
-2
b. Write a ‘C’ program to do the matrix multiplication and validate the rules 8 L3 CO3
of multiplication?
U
10
-B
c. Explain with syntax and example the use of scan set function. 6 L1 CO3
4-
OR
U
-0
Q.8 a. Explain with example program how a two dimensional array can be passed 8 L1 CO3
-B
to the functions.
U
VT
b. Demonstrate with example the functions used to read and write strings. 12 L2 CO3
U
m
-B
9p
Module – 5
U
Q.9 a. List and illustrate the use of atleast 5 string handling functions in ‘C’. 10 L1 CO4
U
-B
:3
b. Define pointer. Specify with syntax and example pointer declaration and 6 L1 CO4
-B
31
initialization.
U
U
-B
c. 4 L3 CO4
01
-B
OR
U
-B
-B
b. Define structure and explain with syntax different components of it. 4 L2 CO4
20
c. Write a ‘C’ program to read and display ‘n’ student information using 8 L3 CO4
BU
-B
0-
structure.
-1
*****
U
04
-B
U
-B
U
-B
2 of 2
U
-B
BU