0% found this document useful (0 votes)
124 views2 pages

C Pyq1

C PYQ
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views2 pages

C Pyq1

C PYQ
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

BESCK104E/ BESCKE104

pm
USN

First Semester B.E./B.Tech. Degree Examination, June/July 2023

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

c. Define constants and explain different types of constants in ‘C’. 4 L1 CO1


9p

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. Explain with syntax different conditional branching statements. 8 L1 CO2


U
U

-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. Explain three looping statements with syntax and example. 10 L1 CO2


U
BU

-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

b. Program to balance the given chemical equation values x, y, p, q of a 5 L3 CO2


simple chemical equation of the type. The task is to find the values of
U

constants b1, b2, b 3 such that the equation is balanced on both sides and it
-B

must be reduced form.

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

Write a ‘C’ program to swap two numbers using pointer.


:

c. 4 L3 CO4
01
-B

OR
U

Q.10 a. Illustrate the character handling functions with example. 8 L2 CO4


23
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

You might also like