
Y8:Lesson1:Python AFL
Quiz by Teran Subasinghe
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
10 questions
Show answers
- Q1What function is used in Python to display output on the screen?show()display()echo()print()30s
- Q2Which 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
- Q3What will the following code print? print(5 + 3)8Error535 + 330s
- Q4Which 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
- Q5What will happen if you run this code: print('Hello'; 'World')?It will cause a syntax error.It will print HelloWorldIt will print 'Hello' and then 'World' separatelyIt will print Hello World30s
- Q6What will happen if you forget to close a parenthesis in Python?The code will run normallyIt will print an error messageThe code will execute partiallyYou'll get a syntax error30s
- Q7What will happen if you try to use a string without quotes in Python?You'll get a syntax errorIt will return NoneThe string will be treated as a numberThe code will run successfully30s
- Q8What does HTML stand for?HyperText Multiple LanguageHighText Markup LanguageHyperText Markup LanguageHyperTool Markup Language30s
- Q9Which programming language is known for its use in data science and machine learning?RubyHTMLPythonJava30s
- Q10Which programming language is known for teaching programming concepts to beginners due to its simplicity?PythonPascalCobolAssembly30s