Free to use. Edit it, share it and hand it out to your students.
Oak National Academy
12 questions
What will be displayed if the user inputs "Python"?print("Name the best programming language?")language = input()if language == "Python": print("Hi Pythonista")else: print("Wrong!")
What will this program output?number = 13if number < 10: print("small")elif number < 100: print("medium")elif number < 1000: print("large")
What will this program output if the user enters 0?print("Enter a number")number = int(input())if number >= 0: print(f"{number} is positive")else: print(f"{number} is negative")
If a program checks a condition and finds it to be False, what happens next?
Match the term to the description.
What is the name of the shape used to represent a decision in a flow chart?