MCQ
What is the value of X after these statements: X = 5; X = X + 2; X = X * 2?
Unit-2 Computational Thinking and Algorithms
A
7
B
10
C
14
D
5
Explanation
X becomes 5, then 5+2=7, then 7*2=14.
Related MCQs
Which of the following is an example of a constant?
Unit-2 Computational Thinking and Algorithms
View
In computing, IPO stands for:
Unit-2 Computational Thinking and Algorithms
View
Which of the following is TRUE about pseudocode?
Unit-2 Computational Thinking and Algorithms
View
A decision box in a flowchart usually contains:
Unit-2 Computational Thinking and Algorithms
View
Tracing an algorithm on paper helps to detect:
Unit-2 Computational Thinking and Algorithms
View
In the statement PI = 3.14159, PI is best described as a:
Unit-2 Computational Thinking and Algorithms
View