
Python_Exam
Authored by Yiwen Mok
Computers
6th - 10th Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
15 mins • 5 pts
Which of the following statements are correct?
The variable names cannot start with a digit.
Variables names in Python are case-sensitive.
Variable names cannot start with the underscore _.
Variable names can be reserved keywords.
2.
MULTIPLE CHOICE QUESTION
15 mins • 5 pts
What is the data type of print(type(10))
string
int
integer
float
3.
MULTIPLE CHOICE QUESTION
15 mins • 5 pts
var1 = 1
var2 = 2
var3 = "3"
print(var1 + var2 + var3)
6
33
123
Error. Mixing operators between numbers and strings are not supported
4.
MATCH QUESTION
15 mins • 5 pts
To display the data type
print(type(name))
To display the number of data in the list
print(name[index])
To display the order of data in the list
print(len(name))
5.
MULTIPLE CHOICE QUESTION
15 mins • 5 pts
What is the output of the following code?
listOne = [20, 40, 60, 80]
listTwo = [20, 40, 60, 80]
print(listOne == listTwo)
print(listOne > listTwo)
True
True
True
False
False
True
False
False
6.
OPEN ENDED QUESTION
15 mins • 10 pts
Create a star shape using the turtle package in Python.
Evaluate responses using AI:
OFF
7.
MULTIPLE CHOICE QUESTION
15 mins • 5 pts
What is the output of the following code?
str = "python"
print (str[1:3])
tho
py
pyt
yth
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
14 questions
Computing figures
Quiz
•
4th - 12th Grade
10 questions
Internet
Quiz
•
7th - 10th Grade
10 questions
Quick Revision Term3
Quiz
•
7th Grade
15 questions
ÔN TẬP HKII-02
Quiz
•
8th Grade
20 questions
CSS 10 - QUIZ
Quiz
•
10th Grade
10 questions
File Management 3 Quiz
Quiz
•
8th Grade
16 questions
Robotic /coding exam
Quiz
•
6th - 8th Grade
20 questions
CSS GRADE 9 - QUIZ PECs and EM
Quiz
•
9th Grade
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