C PROGRAMMING UNIT 2 – QUESTION BANK
PI
[Link] Questions BL CO
CODE
1 List out the types of conditional statements in C program. L1 CO2 1.2.1
Illustrate about IF statement with its syntax and an example
2 L2 CO2 1.2.1
program
Illustrate about IF-ELSE statement with its syntax and an
3 L1 CO2 1.2.1
example program
Define Nested IF-ELSE statement with its syntax and an example
4 L2 CO2 1.2.1
program
Illustrate about SWITCH statement with its syntax and an
5 example program L1 CO2 1.2.1
6 What are the rules to be apply for switch statement L3 CO2 1.2.1
7 What is a LOOP and its types. Explain with its syntax. L1 CO2 1.2.1
Explain in detail about FOR loop with its syntax and an example
8 L3 CO2 1.2.1
program
9 How FOR loop works? L1 CO2 1.2.1
10 Write a program using FOR loop to print numbers from 1 to 10 L2 CO2 1.2.1
11 Define While loop with its syntax and an example program. L2,3 CO2 1.2.1
12 What is the general mechanism of a while loop, and how does it L2 CO2 1.2.1
execute its instructions?
Briefly explain about the working principle of DO WHILE loop
13 with its syntax and an example program. Also explain about the L3 CO2 1.2.1
working of DO WHILE loop
14 Define Jump statement and its types L2 CO2 1.2.1
Illustrate about GOTO statement with its syntax and an example
15 L1 CO2 1.2.1
program
Illustrate about BREAK and CONTINUE statement with its
16 L1 CO2 1.2.1
syntax and an example program
Write a program using GOTO statement to print multiplication
17 L1 CO2 1.2.1
table
18 Define return statement with its syntax L1 CO2 1.2.1
Write a Program to display a number if it is negative using IF
19 L2 CO2 1.2.1
ELSE statement
Write a Program to calculate the sum of first n natural numbers
20 L3 CO2 1.2.1
using FOR loop
Write a program to create a simple calculator using SWITCH
21 L3 CO2 1.2.1
statement