
Basic Python Concepts Quiz
Quiz
•
English
•
12th Grade
•
Hard
Leo undefined
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Python code snippet? ```python print(2 ** 3) ```
6
8
9
12
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
2nd_variable
variable-2
variable_2
variable 2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression in Python: `5 + 3 * 2`?
11
16
13
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types is immutable in Python?
List
Dictionary
Set
Tuple
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```python print("Hello, World!"[7]) ```
H
W
o
r
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to define a block of code in Python?
Curly braces `{ }`
Parentheses `( )`
Indentation
Square brackets `[ ]`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```python print(len("Python")) ```
5
6
7
8
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Present simple - positive
Quiz
•
1st - 12th Grade
20 questions
UNIT 3 - LESSONS 1+2
Quiz
•
5th Grade - University
20 questions
3.24 Cause - Effect
Quiz
•
12th Grade
20 questions
Paragraph Challenge
Quiz
•
10th Grade - University
10 questions
Procedure Text
Quiz
•
9th - 12th Grade
20 questions
So that such that, adjective clause, noun modifiers
Quiz
•
12th Grade
15 questions
Personal Traits and Attitudes
Quiz
•
10th - 12th Grade
15 questions
關係詞 which, when and where
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for English
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
15 questions
Ethos, Pathos, Logos Practice
Quiz
•
12th Grade
47 questions
The Tell Tale Heart
Quiz
•
8th - 12th Grade
21 questions
ACT English Practice
Quiz
•
9th - 12th Grade
25 questions
The Black Cat by Edgar Allan Poe
Quiz
•
9th - 12th Grade
20 questions
The Landlady
Quiz
•
7th - 12th Grade
25 questions
ACT Commas
Quiz
•
9th - 12th Grade
