0% found this document useful (0 votes)
53 views1 page

C Programming Unit 2 Question Bank

The document is a question bank for a C programming course, covering various topics such as conditional statements, loops, and jump statements. It includes questions about syntax, examples, and program implementations for concepts like IF, IF-ELSE, SWITCH, FOR, WHILE, and DO WHILE loops. Additionally, it addresses the return statement and practical programming tasks like creating a simple calculator and printing multiplication tables.

Uploaded by

sujieaswari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views1 page

C Programming Unit 2 Question Bank

The document is a question bank for a C programming course, covering various topics such as conditional statements, loops, and jump statements. It includes questions about syntax, examples, and program implementations for concepts like IF, IF-ELSE, SWITCH, FOR, WHILE, and DO WHILE loops. Additionally, it addresses the return statement and practical programming tasks like creating a simple calculator and printing multiplication tables.

Uploaded by

sujieaswari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like