placeholder image to represent content

Year 9 Homework 5 Python

Quiz by KS3 IT

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

Correct quiz answers unlock more play!

New Quizalize solo game modes
29 questions
Show answers
  • Q1
    What is the output of the following Python code snippet: print(5 + 3 * 2)
    11
    16
    4
    10
    30s
  • Q2
    What does the 'print()' function do in Python?
    Imports external libraries
    Performs mathematical calculations
    Displays output to the screen
    Defines a new variable
    30s
  • Q3
    What python function accepts an input from a user?
    input()
    variable
    print()
    data-type
    30s
  • Q4
    What is a variable in programming?
    A data-type
    A function
    Permanent storage on the hard drive.
    A location in memory where a value can be stored while the program runs.
    30s
  • Q5
    What would be the output of print("This is a test")
    print("This is a test")
    "This is a test"
    This is a test
    Error
    30s
  • Q6
    What is the mistake in this line of code: answer = Input ("What is the capital of England?")
    There is a missing speech mark
    There is a missing bracket.
    There is not a variable.
    There should not be a capital I for input()
    30s
  • Q7
    Which of the following will produce an error?
    print(It is a nice day")
    print("I love Mondays!")
    print("Python is fun")
    print("Hello Year 7")
    30s
  • Q8
    What is an algorithm?
    A Dance?
    Something that grows in a pond?
    A mathematical formula
    A list of instructions for a digital device.
    30s
  • Q9
    What data type is used to represent decimal numbers in Python?
    Integer
    List
    String
    Float
    30s
  • Q10
    Which of the following is an example of a string in Python?
    True
    "Hello, World!"
    [1, 2, 3]
    123
    30s
  • Q11
    What data type represents whole numbers in Python?
    String
    Integer
    Boolean
    Float
    30s
  • Q12
    What is the result of casting the integer 5 to a string in Python?
    Five
    5
    5.0
    Error
    30s
  • Q13
    What is the result of converting the float 7.5 to an integer in Python?
    8
    7.0
    Error
    7
    30s
  • Q14
    What will happen if you try to cast the string 'Hello' to an integer in Python?
    Hello
    Error
    0
    None
    30s
  • Q15
    What is the result of using the int() function on the float 9.99 in Python?
    10
    9.0
    9
    Error
    30s

Teachers give this quiz to your class