Professional Documents
Culture Documents
PPS Theory Question Bank
PPS Theory Question Bank
PPS Theory Question Bank
UNIT-1
1
Deccan College of Engineering and Technology
Darussalam, Nampally, Hyderabad
BE I/II SEMESTER GROUP A/B
PROGRAMMING FOR PROBLEM SOLVING QUESTION BANK(THEORY)
(COMMON TO ALL BRANCHES)
UNIT-2
1. Explain All ‘c’ Operators in detail with example programs.
2. Explain Ternary Operator with example.
3. Why Arithmetic expression? What are they?
4. Define Associativity and precedence of operators Along with examples.
5. Write a short notes on Control Structures(All selection statements and All
Repetitive statements) with their syntax.
6. Why Conditional branching is required? What is the syntax of conditional
branching statement?
7. Difference between While and do-while loops.
8. Develop an Infinite loop using while construct.
9. Difference between Break, continue and goto statements with example program.
10. Write a Syntax of switch statement with an example program.
11. Write a function to find greatest of 3 integers.
12. What is Arrays? Explain 1-D ,2-D Arrays with example. Applications of arrays.
13. Why is it necessary to give the size of an array in array declaration.
14. In what way does an array differ from an ordinary variable?
15. Can 1-D and multi dimensional arrays be passed as function arguments in C
language.
16. What is the difference between arr &arr when arr is an array name though both
display the base address of the array.
17. Why array index starts at 0 instead of 1?
18. Define String and string types. give example.
19. Explain String Input/ Output and String Handling Functions with and without
using library functions.
20. Why do string subscripts ends with null character?
2
Deccan College of Engineering and Technology
Darussalam, Nampally, Hyderabad
BE I/II SEMESTER GROUP A/B
PROGRAMMING FOR PROBLEM SOLVING QUESTION BANK(THEORY)
(COMMON TO ALL BRANCHES)
UNIT-3
1. Explain Searching Techniques with example programs.( Linear Search and Binary
search).
2. Explain Sorting Techniques with example programs.(Bubble sort and Selection
sort).
3. Consider the array 12 10 4 19 28 42 6 13 Construct the Linear search
Algorithm and Binary search Algorithm for finding the key=42.
4. What is Function? Why functions are needed? Explain the syntax of defining
function.
5. What are the elements of function with syntaxs.
6. Explain the need of function prototype.
7. Difference between function declaration and function definition.
8. What are actual and formal parameters?
9. Explain Parameter Passing Techniques(Call by value and Call by Reference) and
differentiate between them.
10. Explain how arrays are passed to a functions with example program.
11. Can 1-D array be passed as function arguments in C language? If yes then explain
with example program.
12. Can Multi-dimensional array be passed as function arguments in C language? If yes
then explain with example program.
3
Deccan College of Engineering and Technology
Darussalam, Nampally, Hyderabad
BE I/II SEMESTER GROUP A/B
PROGRAMMING FOR PROBLEM SOLVING QUESTION BANK(THEORY)
(COMMON TO ALL BRANCHES)
UNIT-4
1. What is Recursion? Explain with an example. ( All recursion programs).
2. Can main() be called recursively?
3. Write the difference between Recursion and Iteration.
4. What is Recursive and Non-Recursive Functions? What are the Advantages of
Both?
5. Define Structure give example. Write the number of bytes required to store a
structure variable.
6. How is structure data type different from an array. Explain with suitable
examples.
7. Mention different ways to access the members of a structure with examples.
8. Difference between Structure and Union with examples.
9. How Structure elements can be accessed through structure variables.
10. Explain 3- Types of Structure with example programs.
(A) Array of Structure.
(B) Arrays within Structure.
(C) Structure within Structure.
11. What are Array of Union?
4
Deccan College of Engineering and Technology
Darussalam, Nampally, Hyderabad
BE I/II SEMESTER GROUP A/B
PROGRAMMING FOR PROBLEM SOLVING QUESTION BANK(THEORY)
(COMMON TO ALL BRANCHES)
UNIT-5
1. Define Pointer. Explain Declaring and Initializing pointer and write the uses of
pointer.
2. What is EOF? When is EOF used?
3. Difference between Array name and pointer.
4. Explain how we can access the address of variable through pointer and write a C
program for it.
5. Write a short note on Referencing and De referencing.
6. What are the arithmetic operators that can be performed using pointer variable?
Explain with example.
7. Explain pointer to array in C.
8. Explain Self Referential structure with C program.
9. Assume you have declared an array of structures. And that ptr is pointer to the first
array elements. How would you change ptr to point to second array element.
10. Write a short on Linked List with example.
11. What is the difference between Arrays and Linked List.
12. What are basic file operations? Write about file Input/Output functions.
13. How we can define and open a file and write syntax for declaring and opening a file.
14. Explain the following file function a) fseek. B) ftell c)rewind.