Professional Documents
Culture Documents
Passpackage QP BPOPS203
Passpackage QP BPOPS203
Sl.no Questions CO
4 Explain Data type in details ?Define a token ?Explain different type of Token in C CO1
6 Explain if, if-else, nested if-else and cascaded if-else and switch case with examples CO2
and syntax.
8 Demonstrate the working of break and continue statement with a suitable CO2
example
Write a C program to calculate given number is odd or Even
9 Write a C program to find the sum of natural numbers from I to N using a while loop. CO2
Develop a C program to generate and plot the Pascal triangle.
10 List the differences between while loop and do -while loop along with syntax and CO2
example.
11 Define an array. Explain with suitable examples how to initialize lD array and CO3
2D array.Write a C program to find factorial of a given number using recursion
function
12 . CO3
Write a c program to search an element using binary search and linear search
technique
13 What is a function? Explain different classification of user defined functions based CO3
on parameter passing and return type with examples .
15 What is recursion ? Write a c-program using functions to generate the Fibonacci series CO3
Write a C program to find factorial of a given number using recursion
function
16 Mention various operations that can be performed on strings using built-in functions. CO4
18 Using suitable code, discuss the working of the following string functions: CO4
20 Define pointers. Explain pass by value & pass by reference with statements and an CO4
example.What is preprocessor directive ?Explain # define and #include
21 What is a Structure? Explain with syntax and examples ? difference between CO5
structure and union
CO5
Write a c-program using structures to read, write, compute average - marks and
display the students scoring above and below the average
24 Write a C program to maintain a record of n student using structures with 4 field Roll CO5
no ,Marks,name and grade.Print the name of the student with marks >=70.
25 Give the general syntax to initialize a structure to store a Book information CO5