
Python Concepts Quiz
Authored by Herr Blank
Computers
11th Grade
DOK Level 2: Skill/Concept covered
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a mutable data type in Python?
Tuple
List
String
Integer
Tags
DOK Level 2: Skill/Concept
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? ```python x = 5 if x > 2: print("Greater") else: print("Smaller") ```
Smaller
Greater
Error
None
Tags
DOK Level 2: Skill/Concept
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a function in Python?
`def function_name:`
`function function_name():`
`def function_name():`
`function_name def():`
Tags
DOK Level 2: Skill/Concept
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to open a file for reading in Python?
`open('file.txt', 'r')`
`open('file.txt', 'w')`
`open('file.txt', 'a')`
`open('file.txt', 'x')`
Tags
DOK Level 2: Skill/Concept
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python for i in range(3): print(i) ```
0 1 2
1 2 3
0 1 2 3
1 2 3 4
Tags
DOK Level 2: Skill/Concept
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the third element in a list named `my_list`?
`my_list[2]`
`my_list[3]`
`my_list[1]`
`my_list[-1]`
Tags
DOK Level 2: Skill/Concept
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a characteristic of a tuple in Python?
Mutable
Immutable
Dynamic
None of the above
Tags
DOK Level 2: Skill/Concept
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
18 questions
Linked List
Quiz
•
KG - University
16 questions
Kod Arahan
Quiz
•
9th - 11th Grade
18 questions
Python (Objects)
Quiz
•
6th - 12th Grade
20 questions
Web 101 Assessment
Quiz
•
9th - 12th Grade
20 questions
Online Job Search
Quiz
•
7th - 12th Grade
18 questions
HTML & CSS
Quiz
•
9th - 12th Grade
20 questions
Key Applications 3
Quiz
•
9th - 12th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade