Exam-Oriented Previous Year Questions

C Programming Basics – Previous Year Questions (PYQs)

JNTUH • CBIT • VASV • VCE | IPLTS

This page presents a well-structured collection of Previous Year Questions (PYQs) in C Programming compiled from engineering examinations conducted by reputed autonomous colleges such as JNTUH, CBIT, VASV and VCE. The questions are organized topic-wise covering Basics of C, Variables & Identifiers, Algorithms & Flowcharts, Operators & Expressions, and Control Structures including if statements, loops, and switch cases. This resource is designed to help students prepare effectively for semester exams, internal tests, and last-minute revision.

Basics, Algorithms & Loops

Year – 2025


  1. What is a variable? (VCE–2025) 2M
  2. Why are comments used in C programs? (VCE–2025) 2M
  3. The __________ statement is used to skip a part of statements in a loop. (VCE–2025) 2M
  4. List out the precedence rules while evaluating expressions. (CBIT–2025) 2M
  5. Discuss the characteristics of an algorithm. (VCE–2025) 5M
  6. Develop an algorithm to check whether a given number is an Armstrong number or not. (CBIT–2025, VCE–2024) 5M
  7. What are the symbols used in flowcharts? Draw the flowchart for the above problem. (CBIT–2025) 5M
  8. Distinguish between operator precedence and associativity with an example. (CBIT–2025, VCE–2024) 5M
  9. Explain the ternary operator with an example to find the largest among three numbers. (CBIT–2025, VCE–2024) 5M
  10. Develop a C program using switch to print day of the week. (VCE–2025) 5M

Year – 2024


  1. List at least two rules for naming a variable. (CBIT–2023, VCE–2024) 2M
  2. Is the following word a valid variable in C? Justify your answer:
    i) 1stnum    ii) stri123 (VCE–2024) 2M
  3. List the symbols used in flowcharts with their purposes. (VCE–2024) 3M
  4. Identify the final value of x when the following code is executed:
    for(x = 0; x < 10; x++) {} (CBIT–2023, VCE–2024) 2M
  5. Write any two conditional constructs in C. (VCE–2024) 2M
  6. What is the purpose of type conversion? (JNTUH–Jan/Feb-2024) 1M
  7. List bitwise operators in C. (JNTUH–Jan/Feb-2024) 1M
  8. Write algorithm for roots of quadratic equation. (JNTUH–Jan/Feb-2024) 5M
  9. Explain enumeration data type. (JNTUH–Jan/Feb-2024) 4M
  10. Discuss flowchart and pseudocode importance. (JNTUH–Jan/Feb-2024) 5M
  11. Describe storage classes in C. (JNTUH–Jan/Feb-2024) 5M
  12. Explain errors in C with examples. (JNTUH–Jan/Feb-2024) 5M
  13. Write a C program and draw a flowchart to calculate the area and circumference of a circle. (VCE–2024) 5M
  14. Discuss different types of operators in C with examples. (CBIT–2022, VCE–2024) 5M
  15. Illustrate arithmetic operators with an example. (VCE–2024) 2M
  16. Explain relational and logical operators in C with examples. (CBIT–2022, VCE–2024) 5M
  17. Write a C program to demonstrate logical operators with suitable examples. (VCE–2024) 5M
  18. Write a C program to find the largest and smallest numbers among three using nested if. (VCE–2024) 5M
  19. Write a C program to print the multiplication table using for loop. (VCE–2024) 5M
  20. Write a C program to check whether a number is prime using while loop. (CBIT–2022, VCE–2024) 5M
  21. Explain the syntax of switch statement with example. (CBIT–2022, VCE–2024) 5M
  22. What is the significance of switch statement in C? Write its syntax. (VASAVI–2024) 3M

Year – 2023


  1. Define Algorithm. (JNTUH–Mar/Apr-2023 & Sep-2023) 1M
  2. What is Compiler? (JNTUH–Mar/Apr-2023) 1M
  3. Write about self referential structures. (JNTUH–Mar/Apr-2023) 1M
  4. Give one example for syntax error. (JNTUH–Sep-2023) 1M
  5. Define the enumeration data type in C. (JNTUH–Sep-2023) 1M
  6. What is meant by entry control loop and exit control loop? (CBIT–2023) 2M
  7. What is the significance of strcmp() function in C? What is its return value? (VASAVI–2023) 2M
  8. Explain bitwise operators in detail. (JNTUH–Mar/Apr-2023) 5M
  9. What is a flowchart? Give the symbols used. (JNTUH–Mar/Apr-2023) 5M
  10. Explain loop control statements in C. (JNTUH–Mar/Apr-2023) 5M
  11. Distinguish between formatted and unformatted statements. (JNTUH–Mar/Apr-2023) 5M
  12. Differentiate between object code and executable code. (JNTUH–Sep-2023) 5M
  13. Discuss storage classes in C. (JNTUH–Sep-2023) 5M
  14. Discuss different types of loops in C. (JNTUH–Sep-2023) 5M
  15. Explain command line arguments. (JNTUH–Sep-2023) 5M
  16. State the order of evaluation of operators and find the value of x: x = 7 + 3 * 6 / 2 - 1; (CBIT–2023) 5M
  17. Differentiate between left shift and right shift operators with examples. (VASAVI–2023) 5M
  18. When is a do-while loop used in C? Write its syntax and example. (VASAVI–2023) 5M

Year – 2022


  1. Explain the significance of function prototype. (CBIT–2022) 3M
  2. Discuss various control structures available in C. (CBIT–2022) 5M