USN
CBCS SCHEME
Eco3
First Semester B.E/B.Tech. Depree
BESCK104E/ BESCKE1 04
Examination, June/July 2023
Introduction to C Programming
Time: 3 hrs.
Max, Marks: 100
Note: . Answer any FIVE full questions, choosing ONE full question from eah
2. M:Marks , L: Bloom's level, C: module.
Course outcomes.
Module- 1 M L C
Q.1 a.
Explain with neat diagram different componcnts of computer in detail. 10 LI CO1
b. Define variable. List and explain with example the rules for declaring 5 L1 CO1
variables.
C. Explain I/O statements in 'C' with syntax and cxample. 5 L1 CO1
OR
Q.2 a. Explain with neat diagram the structure of C program and explain all L1 CO1
components.
b. How the C program can be compiled and executed. Explain with flow L1 CO1
diagram all the steps.
C. Define constants and explain different types of constants in C'. L1 CO1
Module-2
Q.3 a. List and explain the different types of operators used in C' with example. 6 L1 CO2
b. Explain with syntax different conditional branching statements. 8 L1 CO2
C. Write a 'C' program to check the given character is lowercase or uppercase 6 L3 CO2
or special character.
OR
Q.4 a. Explain the use of break and continue statements with example pro gram. 10 LIcO2
b. Explain three looping statements with syntax and example 10 LICO2
Module -3
Q.5 Define function. Explain different components of the functions with neat LI CO2
syntax.
b. Program to balance the given chemical cquation values X, V, p. qof a L3 CO2
simple chemical cquation of the type. The task is to find the values of
Constants bË, bT, bË such that the cquation is balanced on both sides and it
Imust be reduced form.
List and explain the different types of function callswith example 10 L2 CO2
Iof2
BESCK104E/ BESCKE104
OR
Q.6 Detine array. Explain how an array can be declared and initialized with6 L1 | CO1
example.
b. Explain with examplc how an array can be passed as parameter to the 8
L1 CO2
function.
Write a Cprogram to sort the given set of elements using bubble sort 6 L3 C04
lechnique.
Module-4
Q.7 a. Explain with synax. How the two dimensional arrays can be declared and 6 L2 C03
initialized?
b. Write a C program to do the matrix multiplication and validate the rules 8 L3 C03
of multiplication?
Explain with syntax and example the use of scan set function. 6 L1 C03
OR
Q.8 a. Explain with example program how a two dimensional array can be passed L1 CO3
to the functions.
b. Demonstrate with example the functions used to read and write strings. 12 L2 CO3
Module-5
Q.9 a. List and illustrate the use of atleast 5 string handling functions in C'. 10 L1 CO4
b. Define pointer. Specify with syntax and example pointer declaration and 6 L1 CO4
initialization.
C. Write a C' program to swap two numbers using pointer. | 4 L3 CO4
OR
L2 C04
).10 2a. Illustrate thecharacter handling functions with example.
b. Define structure and explain with syntax different components of it. 4 L2 CO4
c. Wrte a C program to read and display n student information using L3 CO4
structure.
2of2