Home › AKTU PYQ › Programming for Problem Solving › PYQ Questions › Unit 2

Programming for Problem Solving Unit 2 – Operators Expressions and Conditional Branching: AKTU previous year questions

8 AKTU questions from Unit 2 (Operators Expressions and Conditional Branching) asked in 2026, tagged by marks, year and topic. In short: about 26 marks of every paper come from this unit; the most asked topic is Operators and Expressions (28 times); 4 questions came back in a later year. The latest ones are listed below; on the page you can filter them by 2-mark or long questions, topic and repeats.

Unit 2 previous year questions

  • What are logical operators? (2 marks, 2026, Operators and Expressions)
  • Differentiate between implicit and explicit type conversion in C. (2 marks, 2026, Type Conversion Mixed Operands)
  • Define Explicit type conversion with suitable code. (2 marks, 2026, Type Conversion Mixed Operands)
  • Give the difference between else if and switch case statement. Also convert the following program by switch statement #include <stdio.h> int main() { int i ; scanf(“%d”,&i) if (i == 10) printf("Not Eligible"); else if (i == 15) printf("wait for three years"); else if (i == 20) printf("You can vote"); else printf("Not a valid age"); return 0; } (7 marks, 2026, Conditional Branching)
  • Write a program to discuss the use of break in a switch case statement. (7 marks, 2026, Conditional Branching)
  • Explain the different types of operators in C. Write a C program that checks whether an entered character is a vowel or a consonant using a switch-case statement. (7 marks, 2026, Conditional Branching)
  • What do you mean by operator precedence and associativity in C. Explain with suitable example. (7 marks, 2026, Operators and Expressions)
  • What is meant by operator precedence and associativity? Evaluate the following expression step by step, clearly showing the order of operations: x = 5 * 2 - 8 / 4 + 3 > 6 && 1 (7 marks, 2026, Operators and Expressions)

Most asked Unit 2 topics

  • Operators and Expressions – asked 28 times
  • Conditional Branching – asked 23 times
  • Type Conversion Mixed Operands – asked 10 times

Unit 2 question pattern

  • 2-mark questions: 3 asked in 2026
  • 7-mark questions: 5 asked in 2026
  • About 26 marks from Unit 2 in every paper
  • 4 questions were asked again in a later year

Unit 2 questions year by year

  • 2026: 8 Unit 2 questions asked (41 marks across that year's papers)