placeholder image to represent content

Beginning Python coding

Quiz by Terri Koehler

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
44 questions
Show answers
  • Q1
    What is the symbol used for comments in Python?
    #
    <!--
    /*
    //
    30s
  • Q2
    What is the command to print 'Hello, World!' in Python?
    echo('Hello, World!')
    printLine('Hello, World!')
    display('Hello, World!')
    print('Hello, World!')
    30s
  • Q3
    What does the 'len()' function do?
    Converts a string to lowercase
    Reverses a string or list
    Returns the maximum value in a list
    Returns the length of a string or list
    30s
  • Q4
    What is the syntax for a 'for' loop in Python?
    while i < 10:
    for i in range(10):
    for i in range(1, 10):
    for i in (1, 10):
    30s
  • Q5
    Which keyword is used to define a function in Python?
    func
    function
    def
    define
    30s
  • Q6
    Which data structure is ordered and changeable in Python?
    list
    dictionary
    tuple
    set
    30s
  • Q7
    What is the command used to print output in Python?
    output()
    print[]
    disp()
    print()
    30s
  • Q8
    Which of the following is NOT a control structure in Python?
    for-each
    for
    if-else
    while
    30s
  • Q9
    What is a variable in Python?
    A named location in memory used to store data
    A type of function
    A way to execute code repeatedly
    A way to import modules
    30s
  • Q10
    What is a function in Python?
    A way to represent text
    A block of reusable code that performs a specific task
    A keyword used to declare variables
    A way to declare conditions
    30s
  • Q11
    What is a list in Python?
    A way to declare conditions
    A collection of ordered, changeable, and indexed elements
    A named location in memory used to store data
    A type of function
    30s
  • Q12
    What is a string in Python?
    A block of reusable code that performs a specific task
    A way to declare conditions
    A type of loop
    A sequence of characters
    30s
  • Q13
    What is a boolean in Python?
    A keyword used to declare variables
    A data type that can have either True or False values
    A type of function
    A way to represent text
    30s
  • Q14
    What is a module in Python?
    A way to import functions

    something at the end of the code

    A type of loop
    A file containing Python definitions and statements
    30s
  • Q15
    What is an if statement in Python?
    A way to execute code only if a certain condition is met
    A type of function
    A way to import modules
    A keyword used to declare variables
    30s

Teachers give this quiz to your class