You are on page 1of 4

22ESC145

Model Question Paper-I/II with effect from 2022-23 (CBCS Scheme)


USN

First/Second Semester B.E. Degree Examination


Introduction to C Programming
TIME: 03 Hours Max. Marks: 100

Note: 01. Answer any FIVE full questions, choosing at least ONE question from each MODULE.
02. Use C code snippet to illustrate a specific code design or a purpose.

Bloom’s
Module -1 Taxonomy Marks
Level
Q.01 a Explain the organization of a computer with the help of a neat block CO1 - L2 7
diagram.
b List and explain the functions of major parts of computer. CO1 –L1 6
c Define the datatypes in C along with the size of identifiers. CO2 – L2 7
OR
Q.02 a Explain different phases in software development life cycle(SDL). CO1 - L2 7
b List and explain the different types of input devices. CO1 – L1 6
c Explain different input output statements in C with appropriate syntax and CO2 – L2 7
examples.
Module-2
Q. 03 a Explain Logical operators with appropriate examples. CO2 – L2 6
b Explain simple if statement with syntax and example. CO2 – L2 6
c Write a C Program to find Mechanical Energy of a particle using CO2 – L3 8
E = mgh+1/2mv2.
OR
Q.04 a Explain switch statement with syntax and an example. CO2 – L2 6
b Compare and contrast do – while and while loops with an example CO2 – L2 6
c Write a C Program to check the given character is Lowercase or CO2 – L3 8
Uppercase or number or Special Character.
Module-3
Q. 05 a Explain the initializing the array elements with a suitable example. CO3 – L2 6
b Discuss the various ways of passing parameter to the functions CO5 – L2 6
c Write a C program to sort the given set of Nnumbers using Bubblesort. CO3 – L3 8
OR
Q. 06 a Explain the various storage classes specifiers used in C CO3 – L2 6
b Explain how value of individual array elements can be passed into a CO5 – L2 6
function with an example.
c Write a program to multiply two numbers using functions. CO3 – L3 8
Module-4
Q. 07 a Write a program to generate Pascal’s triangle. CO3 – L3 6
b Demonstrate the representation of 2D array in memory with a suitable CO3 – L2 6
example
c Write a program to read and display 2 x 2 x 2 array CO3 – L3 8
OR
Q. 08 a Write a program to transpose the elements of a 3 x 3 matrix CO3 – L3 6

Page 01 of 02
22ESC145
b Explain how a single row can be passed into a 2D array with an example CO3 – L2 6
c Write a C program to implement matrix multiplication and validate the CO3 – L3 8
rules of multiplication
Module-5
Q. 09 a Differentiate between array and struct with suitable examples. CO4 – L2 6
b Write a C program to implement structure to read, write and compute CO4 – L3 8
average marks and the students scoring above and below the average
marks for a class of N students.
c Write a C program to read a sentence and count the number pf words in CO4 – L3 6
the sentence.
OR
Q. 10 a Explain with suitable examples the how the members of a structure are CO4 – L2 6
accessed
b Write a C program using pointers to compute the sum and mean of all CO4 – L3 8
elements stored in an array of N real numbers.
c Write a C program to swap two integer values using pointers. CO4 – L3 6

Page 02 of 02
22ESC145/245
Model Question Paper-I/II with effect from 2022-23 (CBCS Scheme)
USN

First/Second Semester B.E. Degree Examination


Introduction to C Programming
TIME: 03 Hours Max. Marks: 100

Note: 01. Answer any FIVE full questions, choosing at least ONE question from each MODULE.

*Bloom’s
Module -1 Taxonomy Marks
Level
Q.01 a What is a computer? Write the characteristics of computer. L1 6
b With the neat diagram, Explain the working of CRT monitor and LCD monitor. L2 8
c Write a structure of a C program with an example. L1 6
OR
Q.02 a Define the following terms with an example L1 6
i. Algorithm
ii. Flowcharts
iii. Pseudo code
b What are variables how they are declared and initialized with an example L1 8
c Write a C program to demonstrate the use of printf and scanf statements to read L1 6
and print values of variables of different data types.

Module-2
Q. 03 a Explain the syntax and working of switch case statement. Write a C program to L2 10
determine whether an entered character is Vowel or not.
b Develop a C program to find the largest of three numbers using ternary operator. L3 6
c Develop a program to convert an integer into the corresponding floating point L3 4
number using Type casting.
OR
Q.04 a Demonstrate the working of break and continue statement with suitable example. L2 4
b Explain relation operator and logical operator. L2 6
c Compare the working of for while and do while along with their Syntax. L2 10
Module-3
Q. 05 a What is recursion? Develop a C program to print Fibonacci series using L3 8
recursion.
b How 1D integer array is represented in memory. With the help of suitable L1 6
example demonstrate the initializing the element.
c Develop a C program to print binary search. L3 6
OR
Q. 06 a Distinguish between Call by Value and Call by Reference using suitable L4 L2 10
example.
b Define function? Develop a C program to add two integers using functions L3 6
c Define storage class explain the different storage classes supported by c L2 4
Module-4
Q. 07 a How 2D array is represented in memory. Explain with suitable example. L2 8
b Develop a C program to sort the given set of N numbers using bubble sort L3 6
c What are strings? Mention the reading strings and writing strings along with their L2 6
Syntax.
OR
Q. 08 a Develop a C program to implement matrix multiplication and validate the rules of L3 8
multiplication

Page 01 of 02
22ESC145/245
b With a neat diagram, Explain three dimensional array write a C program to read L2 6
and display 2x2x2 array.
c Develop a C program to print the following pattern. L3 6
H
HE
HEL
HELL
HELLO
HELLO
HELL
HEL
HE
H
Module-5
Q. 09 a What is a pointer? Discuss pointer arithmetic with suitable code. L1 6
b Using suitable code, Discuss the working of the following string functions L2 8
i. Strcat
ii. Strlen
iii. Strstr
iv. Strcmp
c Develop a C program to concatenate two strings without using built-in function. L3 6
OR
Q. 10 a Develop a program using pointers to compute the Sum, Mean and Standard L3 7
deviation of all elements stored in an array of N real numbers.
b Define structure? How structure is declared and initialize. L2 6
c Develop a C program to implement a structures read, write and compute average L3 7
marks and the students scoring above and below the average marks for a class of
N students

Page 02 of 02

You might also like