MID-2 Question Paper BCS 101
MID-2 Question Paper BCS 101
SectionB
Q2. Attempt all questions: (5X2= 10 Marks)
a. What are the different string handling functions in C? Explain each with proper syntax and CO2
example.
b. Apply the basic syntax of coding in c to write a C program to check whether a number is CO3
Prime or not.
Section C
Q3. Attempt all questions: (5X3 = 15 Marks)
a.i) Apply the basic syntax of loop in c to print the following pattern. CO3
1
2 3
4 5 6
7 8 9 10
OR
ii) Apply the basic syntax of coding in c to generate first n Fibonacci terms. CO3
b.i) What are break statement and continue statement in C Language? Explain the working with CO2
proper syntax and examples.
OR
ii) Explain the working of any five string handling functions in C using proper syntax and CO2
example.
c.i) Apply the syntax of 2D array to write a program to multiply two matrices each of 3x3. CO3
OR
ii) Apply the basic syntax of coding in c to check whether a number is Armstrong or not. CO3