💻
B.Tech CSE PPS

Programming for Problem Solving Important Questions

Unit-wise important 1-mark, 5-mark and 10-mark questions based on the B.Tech CSE syllabus for semester examination preparation.

No questions found Try searching for another topic, unit or question.
Unit I

Overview of C, Selection Structures & Loops

Array

1-Mark Questions

11
  1. What is the role of a compiler?
  2. What are bitwise operators?
  3. What is an expression in C?
  4. Define a variable.
  5. What are relational operators?
  6. What is type conversion?
  7. What is the difference between syntax errors and logical errors?
  8. What are command-line arguments?
  9. Write an algorithm to find the greatest of three numbers.
  10. What is the difference between break and continue?
  11. What is the purpose of the switch statement?

5-Mark Questions

10
  1. Explain arithmetic, logical and bitwise operators with suitable examples.
  2. Explain the importance of operator precedence and associativity. Write the operator precedence table.
  3. Evaluate the given C expressions using operator precedence and associativity rules.
  4. Explain the printf() and scanf() functions in C.
  5. Explain the commonly used format specifiers in the scanf() function.
  6. Explain implicit and explicit type conversion with examples.
  7. Explain the various conditional statements used in C with suitable examples.
  8. Compare the switch statement and nested if-else statement with examples.
  9. Differentiate between entry-controlled and exit-controlled loops with examples.
  10. Demonstrate the various control statements available in C.

10-Mark Questions

3
  1. Write a C program to find the roots of a quadratic equation using the if statement.
  2. Write a C program to determine whether an entered character is a vowel using a multiway selection statement (switch).
  3. Write a C program to print a given pattern using loops.
Unit II

Functions, Pointers & Modular Programming

Array

1-Mark Questions

14
  1. What is top-down design?
  2. What is a structure chart?
  3. What is a function in C?
  4. What is a library function?
  5. What is a function with input arguments?
  6. What is a pointer?
  7. What is the indirection operator?
  8. What is an output parameter?
  9. What is modular programming?
  10. What is the scope of a name?
  11. What is meant by passing an argument to a function?
  12. What are input/output parameters?
  13. What is the difference between actual and formal parameters?
  14. Why are functions used in program development?

5-Mark Questions

9
  1. Explain top-down design with a suitable example.
  2. Explain library functions in C with examples.
  3. Explain pointers in C with suitable examples.
  4. Explain how pointers are passed to a function in C.
  5. Explain call-by-value and call-by-reference methods with suitable examples.
  6. Explain how to declare and define a function in C with an example.
  7. Explain the different ways of passing parameters to functions.
  8. Explain function prototype, function call and returning from a function.
  9. Explain the advantages of pointers in C.

10-Mark Questions

3
  1. Write a C program to swap two numbers using call by reference.
  2. Write a C program to illustrate call by value and call by reference methods.
  3. Write a C program using pointers in functions to perform arithmetic operations on two integers.
Unit III

Arrays & Strings

Array

1-Mark Questions

15
  1. What is an array?
  2. How is a one-dimensional array declared in C?
  3. What is an array subscript?
  4. How are array elements accessed sequentially?
  5. How can an array element be passed to a function?
  6. What is an array argument?
  7. What is a parallel array?
  8. What is an enumerated type?
  9. What is a multidimensional array?
  10. What is a string in C?
  11. How is a string represented in C?
  12. What is string concatenation?
  13. What is string comparison?
  14. Name any four string library functions.
  15. What is an array of pointers?

5-Mark Questions

10
  1. Explain declaration and referencing of arrays with examples.
  2. Explain array subscripts and sequential access using for loops.
  3. Explain how array elements can be passed to functions.
  4. Explain array arguments with a suitable C program.
  5. Explain the enumeration data type with an example.
  6. Explain how to create and access elements of multidimensional arrays in C.
  7. Explain multidimensional arrays with an example.
  8. Explain string basics and string representation in C.
  9. Explain built-in string-handling functions with suitable examples.
  10. Explain arrays of pointers.

10-Mark Questions

7
  1. Write a C program to find whether a given string is a palindrome.
  2. Write a C program to reverse the contents of an integer array without using another array.
  3. Write a C program to multiply two matrices of order m × n, covering all necessary conditions.
  4. Write a C program to transpose a 3 × 3 matrix.
  5. Write a C program to find the maximum element in a given array.
  6. Write a C program to perform addition of two matrices.
  7. Develop a C program to perform searching and sorting operations on an array.
Unit IV

Recursion, Structures & Unions

Array

1-Mark Questions

15
  1. What is recursion?
  2. What is a recursive function?
  3. What is the base condition in recursion?
  4. What is meant by tracing a recursive function?
  5. Give two examples of recursive mathematical functions.
  6. What are recursive array functions?
  7. What are recursive string functions?
  8. What is a structure in C?
  9. What is a user-defined structure type?
  10. How is structure data passed to a function?
  11. What is a structured result value?
  12. What is a union?
  13. What is the difference between a structure and a union?
  14. Why are user-defined data types useful?
  15. What is a structure type data parameter?

5-Mark Questions

9
  1. Explain the nature of recursion with an example.
  2. Explain how a recursive function is traced.
  3. Explain recursive mathematical functions with examples.
  4. Explain recursive functions with array parameters.
  5. Explain recursive functions with string parameters.
  6. Define structure and explain the general format for declaring and accessing structure members with an example.
  7. Explain functions with structured result values.
  8. Explain union types in C.
  9. Differentiate between structures and unions.

10-Mark Questions

7
  1. Write a C program to print the Fibonacci series using recursion.
  2. Write recursive and non-recursive functions to print the Fibonacci series.
  3. Write a recursive function in C to find the sum of array elements.
  4. write a recursive function to find the factorial of a given number.
  5. Write a recursive C program to find the GCD of two numbers.
  6. Write a recursive function to solve the Tower of Hanoi problem.
  7. Write a C program to read, display and add two complex numbers using structures.
Unit V

Files, Searching & Sorting

Array

1-Mark Questions

13
  1. What is a file in C?
  2. What is a file pointer?
  3. What is file input/output?
  4. What is a text file?
  5. What is a binary file?
  6. What is the purpose of a file pointer?
  7. What is meant by searching a database?
  8. What is sorting?
  9. What is bubble sort?
  10. What is insertion sort?
  11. What is selection sort?
  12. What is the basic idea of linear search?
  13. What is the basic idea of binary search?

5-Mark Questions

12
  1. Explain text files in C.
  2. List and explain various operations performed on text files using file I/O functions in C.
  3. Explain the purpose of fseek(), ftell() and rewind() functions.
  4. Discuss random access using fseek(). Give a brief note on ftell() and rewind().
  5. Explain the different types of files and file-handling functions used in C.
  6. Explain the difference between text and binary streams.
  7. Explain binary search with a suitable example.
  8. Explain the binary search algorithm with an example.
  9. Write an algorithm to sort an array using Bubble Sort and trace the algorithm with an example at each phase.
  10. Explain the Bubble Sort method with a suitable example.
  11. Explain which searching technique is best among linear search and binary search. Justify your answer.
  12. What are the limitations of the linear search algorithm?

10-Mark Questions

2
  1. Write a C program to count the number of words in a text file.
  2. Write a C program to merge the contents of two existing files into a new file.
💡

Exam Preparation Tip

Begin with the 1-mark questions to revise important definitions and concepts. Then practice the 5-mark questions for conceptual understanding and use the 10-mark questions to prepare detailed answers and programming-based questions.