Module Wise Question Bank POP
Module Wise Question Bank POP
Module 2
1. How similar and different while & for loops are?
2. Demonstrate the working of break and continue statement with a suitable example.
3. Compare if..else with switch statement
4. Explain with syntax, flowchart and Example
(i) if-else
(ii) if-else ladder
(iii) nested if-else
(iv) while
(v) do-while
(vi) for
(vii) switch
(viii) continue
(ix) goto
(x) break
5. List and Explain operators in C.
6. Explain type conversion and casting.
7. What is typecasting? Mention its use with a suitable example
Module 3
Module 4
1. Using suitable code, discuss the working of the following string functions: i.strcat ii.strcmp
iii.strcpy iv.strlen v.strstr.
2. What are strings? Write a C program to swap two strings
3. Mention various operations that can be performed on strings using built-in functions. Explain
any two functions.
4. Mention the purpose of a Null Character in C strings.
5. Define pointers. Explain declaration and initialization of pointers.
6. Explain types of pointers in c.
Module 5
1. How does a structure differ from an array?
2. Define a structure by name DoB consisting of three variable members dd, mm and yy of type
integer. Develop a C program that would read values to the individual member and display
the date in mm/dd/yy form.
3. How structure in C is different from union? Give example
4. Give the general syntax to initialize a structure to store a Book information
5. How union is different from struct? Give example
6. Give the syntax for declaring and initializing a union with a suitable example
7. Define pointers. How the pointers are initialized and declared.
8. Define structure. Explain declaration and initialization of a structure.
9. Difference between structure and union.
10. Explain enumerated data type with suitable example.
11. Explain reading and writing data files.
12. Explain detecting end of file.