MCQ
The IF ... ELSE ... structure is used to:
Unit-2 Computational Thinking and Algorithms
A
Execute one set of statements if the condition is true and another if it is false
B
Repeat statements forever
C
Read input from the user
D
Declare constants
Explanation
IF...ELSE provides two branches, one for a true condition and one for a false condition.
Related MCQs
What are the four main techniques involved in computational thinking?
Unit-2 Computational Thinking and Algorithms
View
Which structure begins a pseudocode that must make a choice, such as IF marks >= 40?
Unit-2 Computational Thinking and Algorithms
View
In pseudocode, the statement total = 0 means:
Unit-2 Computational Thinking and Algorithms
View
What should a pseudocode be converted into before a computer can run it?
Unit-2 Computational Thinking and Algorithms
View
A value that does not change during the execution of a program is called a:
Unit-2 Computational Thinking and Algorithms
View
During a dry run, you write down the value of each variable in a:
Unit-2 Computational Thinking and Algorithms
View