Quiz Space

Programming in C · Quiz 1 · 26 Oct 2025 · September 2025 term

Question 12: Which statement is true about short-circuit evaluation i…

Question 12

+2 marksOne or more correct options

Which statement is true about short-circuit evaluation in C?

Select all that apply.

  1. A

    In expr1 && expr2, if expr1 is false, expr2 is not evaluated.

  2. B

    In expr1 || expr2, if expr1 is true, expr2 is not evaluated.

  3. C

    In expr1 && expr2, if expr1 is true, expr2 is not evaluated.

  4. D

    In expr1 || expr2, if expr1 is false, expr2 is not evaluated.

Show answer

Correct answers

  • A

    In expr1 && expr2, if expr1 is false, expr2 is not evaluated.

  • B

    In expr1 || expr2, if expr1 is true, expr2 is not evaluated.

Question 12 of 17 in the IIT Madras BS Programming in C (Programming in C) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term (IIT M DEGREE AN EXAM QDB2 26 Oct 2025). It carries 2 marks.

More questions from this paper

  1. Q1Which of the following correctly ranks the memory units from fastest to slowest access time?
  2. Q2In an N-bit signed integer representation using 2’s complement, what is the range of values?
  3. Q3Which of the following statements about Boolean conditions in C is true?
  4. Q4The decimal number 2748 is represented in hexadecimal as:
  5. Q5What is the minimum number of bits required to represent all integer values from −120 to +120 in a signed binary repres…
  6. Q6Figure question
  7. Q7Figure question
  8. Q8Figure question
  9. Q9Figure question
  10. Q10Figure question
  11. Q11Which of the following are key functions of the Arithmetic Logic Unit (ALU)?
  12. Q13Figure question
  13. Q14Figure question
  14. Q15Figure question
  15. Q16Figure question
  16. Q17Figure question