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 code would ask the user for their name?
    USERINPUT
    USERINPUT <-- name
    name <-- USERINPUT
    constant NAME <-- USERINPUT
    45s
    3.2.7
  • Q2
    What line of code would you need to output a message to say they have passed?
    Question Image
    OUTPUT "Well done you've passed"
    USERINPUT "You've passed"
    OUTPUT "Please re-do the test"
    "Well done you've passed"
    45s
    3.2.7
  • Q3
    Which program will ask the user for their Maths score and output it to the screen?
    USERINPUT OUTPUT score
    score <-- USERINPUT OUTPUT score
    USERINPUT <-- score OUTPUT score
    score OUTPUT score
    45s
    3.2.7
  • Q4
    Which line of code will open a text file containing the scores?
    ('scores.txt')
    file <-- ('scores.txt')
    file <-- OPEN()
    file <-- OPEN('scores.txt')
    45s
    3.2.7
  • Q5
    Which line of code will close the file?
    CLOSE.file
    CLOSE()
    CLOSE(file)
    CLOSE(score)
    45s
    3.2.7
  • Q6
    Why do you need to use CLOSE(file)?
    To make sure the user is able to save the current data to file
    To write the data
    To make sure the program is able to access the file
    To make sure the file is closed and other programs or user can access the file if they need to
    45s
    3.2.7
  • Q7
    What type of information from a gaming program would be efficient to store in a file?
    The current players turn
    Current players name
    Any variables used
    Winners scores
    45s
    3.2.7
  • Q8
    Why would storing scores in a file be efficient, compared to in the game its self?
    The file contents is only accessible when the file is active
    It is permanent storage and you can access the information again
    The file will take up less memory
    It it quicker to store information in a file than in an array
    45s
    3.2.7
  • Q9
    What does it mean if a file is read only?
    If you write to it, the contents will be wiped each time
    You can read and write to it
    You can only read and amend, not write to it
    You can not write to or amend its contents
    45s
    3.2.7
  • Q10
    How is the append mode of a file different from the write mode?
    Append wipes the current data
    They are the same thing
    Append adds to the existing content
    The write mode allows you to add to the existing content
    45s
    3.2.7

Teachers give this quiz to your class