Start learning →

Run the Python gates

Exercise and reference answers

Questions
  1. Correct
    0
    Choices
    1. 0
    2. 1
    3. 2
  2. Correct
    -1
    Choices
    1. -1
    2. -2
    3. -3
  3. Correct
    ord
    Choices
    1. ord
    2. chr
    3. len
  4. Correct
    chr
    Choices
    1. ord
    2. chr
    3. len
  5. Correct
    List
    Choices
    1. List
    2. Tuple
    3. String
  6. Correct
    Tuple
    Choices
    1. List
    2. Tuple
    3. String
Instructions
Pick the correct answer at every gate.

Explanation

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

Browse more CS Olympiad questions and exercises →