Start learning →

Run the decision gates

Exercise and reference answers

Questions
  1. Correct
    and
    Choices
    1. and
    2. or
    3. not
  2. Correct
    or
    Choices
    1. and
    2. or
    3. not
  3. Correct
    not
    Choices
    1. and
    2. or
    3. not
  4. Correct
    7
    Choices
    1. 7
    2. 9
    3. 5
  5. Correct
    9
    Choices
    1. 7
    2. 9
    3. 5
  6. Correct
    elif
    Choices
    1. if
    2. elif
    3. else
Instructions
Pick the operator or value that fits at every gate.

Explanation

_Source: OpenStax Introduction to Python Programming, Chapter 4._
Continue learning with Quill →

Browse more CS Olympiad questions and exercises →