
Python Basics Test
Computers
12th Grade
Used 11+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
a) A keyword
b) A function
c) A container to store data
d) A loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a control flow construct in Python?
a) To create functions
b) if
c) elif
d) else
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? print("x is greater than 3") else: print("x is not greater than 3")
a) x is greater than 3
b) x is not greater than 3
c) Error
d) Nothing is printed
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a function in Python?
a) To assign values to variables
b) To create data structures
c) To perform specific tasks and reuse code
d) To compare values
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of an immutable data structure in Python?
a) List
b) Tuple
c) Dictionary
d) Set
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the key feature of a set in Python?
a) It allows duplicate elements
b) It is an ordered collection
c) It only stores integers
d) It contains unique elements
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is exception handling implemented in Python?
a) Using try-except blocks
b) Using if-else statements
c) Using for loops
d) Using dictionaries
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
12 questions
Tecnología Digital
Quiz
•
12th Grade
15 questions
PRUEBA CORTA I - SISTEMA E INSTALACIÓN DE SOFTWARE I - U4
Quiz
•
9th - 12th Grade
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU
Quiz
•
1st - 12th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
12 questions
Quizz Internet
Quiz
•
KG - Professional Dev...
15 questions
tik kelas 7
Quiz
•
1st Grade - University
15 questions
Dasar Desain Grafis
Quiz
•
12th Grade - University
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