Home › Olympiad (Class 10) › Computer Science › Booleans and Decisions › A quiz app stores whether a player passed. The d…
A quiz app stores whether a player passed. The data type it should use is:
Abool
Blist
Cdict
Dfile
Answer & Solution
Correct answer: A. bool
1. The answer is only yes or no.
2. One data type holds exactly two values.
3. That type is bool.
_Source: OpenStax Introduction to Python Programming, Chapter 4._
Related questions
An elif statement is only legal when it directly follows an if or another:A curve program uses two separate if statements and both run by mistake. The fix is to useMost Python operators are evaluated in which direction?The rule deciding order when two operators share a precedence level is:In Python the expression (1 + 2) * 3 evaluates to:In Python the expression 1 + 2 * 3 evaluates to:A program should act when a computer is switched off. The operator to use is:A concert lets in anyone in band or choir. The operator to use is: