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

C Programing

Uploaded by

blackhustlers09
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)
236 views2 pages

C Programing

Uploaded by

blackhustlers09
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

am

USN BESCK104E/BESCKE104

First Semester B.E./B.Tech. Degree Examination, Nov./Dec. 2023

04
Introduction to ‘C’ Programming

7:
Time: 3 hrs. Max. Marks: 100

:5
Note: 1. Answer any FIVE full questions, choosing ONE full question from each module.

U
08
2. M : Marks , L: Bloom’s level , C: Course outcomes.

-B
Module – 1 M L C

3
Q.1 a. Explain the five generations of computers. 10 L2 CO1

U
02
b. What are input and output devices? Mention various input devices. Explain 10 L2 CO1

-B
keyboard and pointing input devices.
-2 OR

U
12
Q.2 a. Explain the four kinds of files associated with ‘C’ program. 6 L2 CO1

-B
b. Explain the structure of ‘C’ program with an example. 8 L2 CO2
5-

c. Explain the input-output statements using C with suitable programming 6 L2 CO2


example.
U
-0

Module – 2
-B
Q.3 a. What are operators? Mention all ‘C’ operators. Explain: (i) Relational 9 L2 CO2
U

(ii) Conditional (iii) Increment-decrement operators with example.


VT

b. Write a ‘C’ program to find the largest of three numbers using nested – if.
am 6 L3 CO2
Explain switch statement with its syntax and programming example.
-B

c. 5 L2 CO2
OR

U
18

Q.4 a. Discuss for, while and do-while loops with their syntax and programming 9 L2 CO2
U

examples. -B
-B

5:

b. Write a note on break and continue statement with example. 6 L2 CO2


c. Write a ‘C’ program to find factorial of a member. 5 L3 CO2
U
:1
U

Module – 3
-B
09

Q.5 a. Define function. Give its syntax. With an example discuss function 6 L2 CO4
-B

declaration, function definition and calling function.


U

b. Explain the parameter passing techniques supported by ‘C’ language with 6 L2 CO4
3
U

-B

example.
02
-B

c. Discuss the storage classes supported by ‘C’. 8 L2 CO3


OR
U
-2

Q.6 a. Discuss arrays with its syntax. Explain various ways of initializing one- 7 L2 CO3
BU

-B

dimensional arrays with example.


2

b. Write a ‘C’ program to search a key element in the given sorted array using 10 L2 CO3
-1

binary-search technique.
05

Define Recursion. Mention the base properties of recursive function.


-B

c. 3 L2 CO4
Module – 4
Q.7 a. Write a ‘C’ program to find product of 2 matrices. 10 L2 CO3
U

b. Explain 2-dimensional arrays with its syntax. How 2-dimensional arrays are 10 L2 CO3
-B

declared and initialized?


OR
Q.8 a. What is a string? Explain the ‘C’ functions used to read and write 6 L2 CO3
U

characters.
-B

b. Explain function of ‘C’ to read and write strings. 6 L2 CO4


c. What is scanset? With an example, write a ‘C’ program to illustrate the use 8 L2 CO3
U

of caret symbol in scanset.


-B

1 of 2
BU
BESCK104E/BESCKE104

am
Module – 5
Q.9 a. Write a ‘C’ program to implement string operations such as string length 8 L2 CO3

04
and string concatenation.
b. Explain any six string manipulation function. 6 L2 CO3

7:
c. What is a pointer? With an example, explain how pointers are declared and 6 L2 CO3
initialized.

:5
OR

U
08
Q.10 a. What is structure? Give its syntax. With an example, explain how structure 6 L2 CO3

-B
members are declared and initialized.
b. Write a ‘C’ program to implement a structure to read, write and compute 8 L3 CO5

3
average marks and the student scoring above and below average marks for

U
02
class of ‘N’ students.

-B
c. Write a note on stack and heap.
-2 6 L2 CO3

U

12

-B
5-

U
-0

-B
U
VT

am
-B

U
18
U

-B
-B

5:

U
:1
U

-B
09
-B

U
3
U

-B
02
-B

U
-2
BU

-B
2
-1

U
05

-B
U
-B
U
-B
U
-B

2 of 2
BU

You might also like