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

Module2QuestionBank 1

Uploaded by

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

Module2QuestionBank 1

Uploaded by

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

K. S.

SCHOOL OF ENGINEERING AND MANAGEMENT,


BANGALORE – 560109
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
QUESTION BANK
COURSE: PROGRAMMING IN C
COURSE CODE: 1BEIT105

MODULE 2
1. Explain with syntax different Selection statements.
2. Explain the Iteration statements with syntax and example.
3. Use simple if statement to determine if a person’s age qualifies them to vote.
4. Illustrate else-if statement with syntax and example.
5. With syntax, explain the functionality of switch statement. Write a C program using switch to perform
basic arithmetic operations.
6. Explain switch statement with syntax and example.
7. Comprising between while and do-while.
8. Write a C program using while to check whether the given number is palindrome or not.
9. Explain for statement with syntax and example and write a C program using ‘for’ to print first
‘n’ Fibonacci numbers.
10. Explain if, if…else and else if statement with syntax and example program.
11. Demonstrate use of breaks and continue statement with suitable example program.
12. Write a program to check whether the given number is odd or even.
13. Distinguish for and while loop with example.
14. With suitable examples explain formatted input (scanf( )) and output (printf( )) statements.
15. Illustrate how to read and write characters in C with suitable examples.
16. Illustrate how to read and write strings in C with suitable examples.
17. Explain Jump statements, Block statements and Expression statements with suitable examples.
18. Explain getchar( ), putchar( ), getche( ) and getch( ) with suitable examples.
19. Demonstrate gets( ) and puts( ) with suitable examples.
20. Explain the role of break and continue statements in C with suitable examples.

You might also like