placeholder image to represent content

Y8 Day3 - Python variables and user inputs

Quiz by Teran Subasinghe

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

Correct quiz answers unlock more play!

New Quizalize solo game modes
12 questions
Show answers
  • Q1
    Which of the following is NOT a valid Python variable name?
    my_Var
    _myVar
    myVar2
    2myVar
    30s
  • Q2
    How can you get user input in Python?
    getInput()
    read_input()
    input() function
    user_input()
    30s
  • Q3
    What data type is used to store text in Python?
    boolean
    integer
    string
    float
    30s
  • Q4
    Which symbol is used to assign a value to a variable in Python?
    ->
    ==
    =
    :
    30s
  • Q5
    Which of the following is a valid Python variable name?
    2myVariable
    _myVariable
    my_variable
    my variable
    30s
  • Q6
    What function is used to convert user input to an integer in Python?
    float() function
    str() function
    bool() function
    int() function
    30s
  • Q7
    What data type is used to store whole numbers in Python?
    boolean
    integer
    string
    float
    30s
  • Q8
    What is the result of the following Python expression: 5 * 3 + 2?
    15
    11
    17
    20
    30s
  • Q9
    What is the value of x after the following Python code executes: x = 10 % 3?
    2
    1
    4
    3
    30s
  • Q10
    What is the result of the following Python expression: 4 ** 3?
    81
    16
    64
    12
    30s
  • Q11
    What will be the value of y after the following Python code is executed: y = (20 // 3) + (5 ** 2)?
    15
    31
    25
    50
    30s
  • Q12
    What is the output of the following Python code snippet: x = 15\ny = 4\nprint(x // y)
    3
    4
    3.75
    3.5
    30s

Teachers give this quiz to your class