placeholder image to represent content

Y8:Lesson1:Python AFL

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
10 questions
Show answers
  • Q1
    What function is used in Python to display output on the screen?
    show()
    display()
    echo()
    print()
    30s
  • Q2
    Which of the following methods would correctly print the message 'Hello, World!' in Python?
    print('Hello, World!')
    display('Hello, World!')
    show('Hello, World!')
    echo('Hello, World!')
    30s
  • Q3
    What will the following code print? print(5 + 3)
    8
    Error
    53
    5 + 3
    30s
  • Q4
    Which of the following will correctly print a number and a string together in one line in Python?
    print('The number is' 7)
    print('The number is' + 7)
    print('The number is', 7)
    print('The number is' - 7)
    30s
  • Q5
    What will happen if you run this code: print('Hello'; 'World')?
    It will cause a syntax error.
    It will print HelloWorld
    It will print 'Hello' and then 'World' separately
    It will print Hello World
    30s
  • Q6
    What will happen if you forget to close a parenthesis in Python?
    The code will run normally
    It will print an error message
    The code will execute partially
    You'll get a syntax error
    30s
  • Q7
    What will happen if you try to use a string without quotes in Python?
    You'll get a syntax error
    It will return None
    The string will be treated as a number
    The code will run successfully
    30s
  • Q8
    What does HTML stand for?
    HyperText Multiple Language
    HighText Markup Language
    HyperText Markup Language
    HyperTool Markup Language
    30s
  • Q9
    Which programming language is known for its use in data science and machine learning?
    Ruby
    HTML
    Python
    Java
    30s
  • Q10
    Which programming language is known for teaching programming concepts to beginners due to its simplicity?
    Python
    Pascal
    Cobol
    Assembly
    30s

Teachers give this quiz to your class