MCQ
Which of the following is an example of a constant?
Unit-2 Computational Thinking and Algorithms
A
A user's age
B
The value of pi (3.14159)
C
A student's marks
D
Today's temperature
Explanation
Pi is a fixed value that does not change, unlike user-entered values.
Related MCQs
Which of the following is TRUE about pseudocode?
Unit-2 Computational Thinking and Algorithms
View
What will be printed after this dry run? X = 2; X = X + 3; PRINT X.
Unit-2 Computational Thinking and Algorithms
View
For a program that converts temperature from Celsius to Fahrenheit, which of the following is a correct IPO description?
Unit-2 Computational Thinking and Algorithms
View
Evaluate the expression: (10 == 10) OR (3 > 5).
Unit-2 Computational Thinking and Algorithms
View
Which relational operator checks whether two values are equal?
Unit-2 Computational Thinking and Algorithms
View
A flowchart is mainly used to:
Unit-2 Computational Thinking and Algorithms
View