Start learning →
Home › Olympiad (Class 11) › Computer Science › Models of Computation › In an if statement, the line runs only when the …

In an if statement, the line runs only when the condition is:

ALong
BShort
CTyped
DTrue
Answer & Solution
Correct answer: D. True
1. A conditional checks something before acting. 2. Only a satisfied condition lets the line run. 3. So the condition must be true. _Source: OpenStax Introduction to Computer Science, Chapter 4, Models of Computation._
Practise this question with Quill — Olympiad (Class 11) →
Related questions