
Beginning Python coding
Quiz by Terri Koehler
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
44 questions
Show answers
- Q1What is the symbol used for comments in Python?#<!--/*//30s
- Q2What is the command to print 'Hello, World!' in Python?echo('Hello, World!')printLine('Hello, World!')display('Hello, World!')print('Hello, World!')30s
- Q3What does the 'len()' function do?Converts a string to lowercaseReverses a string or listReturns the maximum value in a listReturns the length of a string or list30s
- Q4What is the syntax for a 'for' loop in Python?while i < 10:for i in range(10):for i in range(1, 10):for i in (1, 10):30s
- Q5Which keyword is used to define a function in Python?funcfunctiondefdefine30s
- Q6Which data structure is ordered and changeable in Python?listdictionarytupleset30s
- Q7What is the command used to print output in Python?output()print[]disp()print()30s
- Q8Which of the following is NOT a control structure in Python?for-eachforif-elsewhile30s
- Q9What is a variable in Python?A named location in memory used to store dataA type of functionA way to execute code repeatedlyA way to import modules30s
- Q10What is a function in Python?A way to represent textA block of reusable code that performs a specific taskA keyword used to declare variablesA way to declare conditions30s
- Q11What is a list in Python?A way to declare conditionsA collection of ordered, changeable, and indexed elementsA named location in memory used to store dataA type of function30s
- Q12What is a string in Python?A block of reusable code that performs a specific taskA way to declare conditionsA type of loopA sequence of characters30s
- Q13What is a boolean in Python?A keyword used to declare variablesA data type that can have either True or False valuesA type of functionA way to represent text30s
- Q14What is a module in Python?A way to import functions
something at the end of the code
A type of loopA file containing Python definitions and statements30s - Q15What is an if statement in Python?A way to execute code only if a certain condition is metA type of functionA way to import modulesA keyword used to declare variables30s