placeholder image to represent content

Year 9 Homework 5 Python 1

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
14 questions
Show answers
  • Q1
    What does the 'print()' function do in Python?
    Imports external libraries
    Performs mathematical calculations
    Displays output to the screen
    Defines a new variable
    30s
  • Q2
    What python function accepts an input from a user?
    input()
    variable
    print()
    data-type
    30s
  • Q3
    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
  • Q4
    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
  • Q5
    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
  • Q6
    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
  • Q7
    What is an algorithm?
    A Dance?
    Something that grows in a pond?
    A mathematical formula
    A list of instructions for a digital device.
    30s
  • Q8
    What data type is used to represent decimal numbers in Python?
    Integer
    List
    String
    Float
    30s
  • Q9
    Which of the following is an example of a string in Python?
    True
    'Hello, World!'
    [1, 2, 3]
    123
    30s
  • Q10
    What data type represents whole numbers in Python?
    String
    Integer
    Boolean
    Float
    30s
  • Q11
    What is the result of using the int() function on the float 9.99 in Python?
    10
    9.0
    9
    Error
    30s
  • Q12
    What is the result of concatenating 'Hello' and 'World'?
    HelloWorld
    Hello, World!
    Hello-World
    Hello World
    30s
  • Q13
    What does it mean to concatenate two strings in programming?
    To count their length
    To split them apart
    To join them together
    To change their case
    30s
  • Q14
    Which of the following is an example of an input device?
    Monitor
    Keyboard
    Printer
    Speaker
    30s

Teachers give this quiz to your class