Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Principles of Programming Using C: Answer Any FIVE Full Questions, Choosing at Least ONE Question From Each MODULE

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

22xxxxXX

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


USN

First/Second Semester B.E. Degree Examination


Principles of Programming Using C
TIME: 03 Hours Max. Marks: 100

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

*Bloom’s
Module -1 Taxonomy Marks
Level
Q.01 a Explain the components of a computer with a neat diagram. 2 6

b Describe any three input devices 2 6


c Design an algorithm, flowchart and program to compute area of a circle. 3 8

OR
Q.02 a Define Identifiers and explain its rules. State whether the following identifiers are 3 6
valid or invalid with justification.
i. $roll no
ii. _name123
iii. If
iv. Name_ _123

b Summarize the formatted input and output statements with suitable syntax and 2 6
example
c Explain the SDLC life cycle for the efficient design of a program with a neat 2 8
diagram.

Module-2
Q. 03 a Describe any 4 types of operators in C with example 2 6
b Differentiate between type conversion and type casting in C 4 6
c Write a program to compute the roots of quadratic equation by accepting 3 8
coefficients
OR
Q.04 a Define looping. Explain while and do-while with suitable example 2 6
b Implement a C program to simulate a simple calculator that performs arithmetical 3 6
operations using switch statements.
c Explain unconditional statements with example 2 8
Module-3
Q. 05 a Explain the syntax of Function Declaration and Function Definition with 3 6
example.

b Write a C program to swap two integers using call by value method of passing 3 6
arguments to a function.
c Describe different types of storage classes with example. 2 8

OR
Q. 06 a What is an array? Explain how two dimensional arrays are declared and 2 8
initialized.

b Write a C program to find transpose of a 3x3 matrix. 3 6

c Discuss any three operations that can be performed on arrays with example. 2 6

Page 01 of 02
22xxxxXX
Module-4
Q. 07 a What are strings? Mention different operations that can be performed on strings? 2 8
Explain any two with an example?
b Explain array of strings with an example? 2 4

c Discuss the working of the following string manipulation functions with suitable 3 8
code:
i) strchr ii) strspn iii) strcmp iv) strcpy

OR
Q. 08 a Define pointers and explain how to declare a pointer variable? 2 8
Differentiate null pointer and void pointer with suitable example?
b Write a program to add two integers by passing pointer variable as parameters to 3 7
functions?

c Write a program to print all even numbers from m to n using pointers? 3 5

Module-5
Q. 09 a What is structure? Explain the C syntax of structure declaration with example 2 6
b Differentiate between Structure and Union. 4 6
c Write a C program to maintain a record of “n‟ students details using an array of 3 8
structures with four fields (roll no, name, marks and grade).Assume appropriate
data type for each field. Print the names of the student with marks>=70.

OR
Q. 10 a Explain I/O stream and Data I/P stream used in files. 2 6
b Define Enumerated data type. Explain the declaration and access of enumerated 2 6
data types with a code in C.

c Write a function to perform the following i) Read data from a fileii) Write data to 2 8
a file

*Bloom’s Taxonomy Level: Indicate as L1, L2, L3, L4, etc. It is also desirable to indicate the COs and POs to be
attained by every bit of questions.

Page 02 of 02

You might also like