Home › Olympiad (Class 10) › Computer Science › Booleans and Decisions › A login screen checks whether user equals admin.…
A login screen checks whether user equals admin. The comparison returns:
AOpen or Shut
BTrue or False
CText or Digit
DName or Email
Answer & Solution
Correct answer: B. True or False
1. Comparison operators test a relationship.
2. The answer is always one of two values.
3. So it returns True or False.
_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: