
Python Basics Quiz
Authored by Odin Thor
Fun
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a list in Python?
{}
[]
()
||
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list?
1
-1
0
first
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add an item to the end of a list?
insert
append
add
push
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you remove an item from a list?
remove
pop
discard
delete
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a function in Python?
function
def
define
subroutine
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you call a function named greet?
greet()
call greet()
run greet()
invoke greet()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to return a value from a function?
output
return
yield
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?