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.
Year – 2025
- What is a variable? (VCE–2025) 2M
- Why are comments used in C programs? (VCE–2025) 2M
- The __________ statement is used to skip a part of statements in a loop. (VCE–2025) 2M
- List out the precedence rules while evaluating expressions. (CBIT–2025) 2M
- Discuss the characteristics of an algorithm. (VCE–2025) 5M
- Develop an algorithm to check whether a given number is an Armstrong number or not. (CBIT–2025, VCE–2024) 5M
- What are the symbols used in flowcharts? Draw the flowchart for the above problem. (CBIT–2025) 5M
- Distinguish between operator precedence and associativity with an example. (CBIT–2025, VCE–2024) 5M
- Explain the ternary operator with an example to find the largest among three numbers. (CBIT–2025, VCE–2024) 5M
- Develop a C program using switch to print day of the week. (VCE–2025) 5M
Year – 2024
- List at least two rules for naming a variable. (CBIT–2023, VCE–2024) 2M
-
Is the following word a valid variable in C? Justify your answer:
i) 1stnum ii) stri123
(VCE–2024) 2M
- List the symbols used in flowcharts with their purposes. (VCE–2024) 3M
-
Identify the final value of x when the following code is executed:
for(x = 0; x < 10; x++) {}
(CBIT–2023, VCE–2024) 2M
- Write any two conditional constructs in C. (VCE–2024) 2M
- What is the purpose of type conversion? (JNTUH–Jan/Feb-2024) 1M
- List bitwise operators in C. (JNTUH–Jan/Feb-2024) 1M
- Write algorithm for roots of quadratic equation. (JNTUH–Jan/Feb-2024) 5M
- Explain enumeration data type. (JNTUH–Jan/Feb-2024) 4M
- Discuss flowchart and pseudocode importance. (JNTUH–Jan/Feb-2024) 5M
- Describe storage classes in C. (JNTUH–Jan/Feb-2024) 5M
- Explain errors in C with examples. (JNTUH–Jan/Feb-2024) 5M
- Write a C program and draw a flowchart to calculate the area and circumference of a circle. (VCE–2024) 5M
- Discuss different types of operators in C with examples. (CBIT–2022, VCE–2024) 5M
- Illustrate arithmetic operators with an example. (VCE–2024) 2M
- Explain relational and logical operators in C with examples. (CBIT–2022, VCE–2024) 5M
- Write a C program to demonstrate logical operators with suitable examples. (VCE–2024) 5M
- Write a C program to find the largest and smallest numbers among three using nested if. (VCE–2024) 5M
- Write a C program to print the multiplication table using for loop. (VCE–2024) 5M
- Write a C program to check whether a number is prime using while loop. (CBIT–2022, VCE–2024) 5M
- Explain the syntax of switch statement with example. (CBIT–2022, VCE–2024) 5M
- What is the significance of switch statement in C? Write its syntax. (VASAVI–2024) 3M
Year – 2023
- Define Algorithm. (JNTUH–Mar/Apr-2023 & Sep-2023) 1M
- What is Compiler? (JNTUH–Mar/Apr-2023) 1M
- Write about self referential structures. (JNTUH–Mar/Apr-2023) 1M
- Give one example for syntax error. (JNTUH–Sep-2023) 1M
- Define the enumeration data type in C. (JNTUH–Sep-2023) 1M
- What is meant by entry control loop and exit control loop? (CBIT–2023) 2M
- What is the significance of
strcmp() function in C? What is its return value? (VASAVI–2023) 2M
- Explain bitwise operators in detail. (JNTUH–Mar/Apr-2023) 5M
- What is a flowchart? Give the symbols used. (JNTUH–Mar/Apr-2023) 5M
- Explain loop control statements in C. (JNTUH–Mar/Apr-2023) 5M
- Distinguish between formatted and unformatted statements. (JNTUH–Mar/Apr-2023) 5M
- Differentiate between object code and executable code. (JNTUH–Sep-2023) 5M
- Discuss storage classes in C. (JNTUH–Sep-2023) 5M
- Discuss different types of loops in C. (JNTUH–Sep-2023) 5M
- Explain command line arguments. (JNTUH–Sep-2023) 5M
-
State the order of evaluation of operators and find the value of x:
x = 7 + 3 * 6 / 2 - 1;
(CBIT–2023) 5M
- Differentiate between left shift and right shift operators with examples. (VASAVI–2023) 5M
- When is a do-while loop used in C? Write its syntax and example. (VASAVI–2023) 5M
Year – 2022
- Explain the significance of function prototype. (CBIT–2022) 3M
- Discuss various control structures available in C. (CBIT–2022) 5M