Start learning →
Home › Olympiad (Class 10) › Computer Science › Booleans and Decisions › A program must test, not change, a variable. The…

A program must test, not change, a variable. The correct operator is:

AMinus equals
BDouble equals
CSingle equals
DPlus equals
Answer & Solution
Correct answer: B. Double equals
1. Assignment modifies the variable. 2. Comparison leaves it untouched and yields a Boolean. 3. So the correct operator is double equals. _Source: OpenStax Introduction to Python Programming, Chapter 4._
Practise this question with Quill — Olympiad (Class 10) →
Related questions