
Python Exercise
Authored by Manik Kusuma
Computers
8th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
46 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct way to declare a Python variable?
var x = 5
#x = 5
$x = 5
x = 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False:
You can declare string variables with single or double quotes.
x = "John"
# is the same as
x = 'John'
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False:
Variable names are not case-sensitive.
a = 5
# is the same as
A = 5
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for Python files?
.pp
.pt
.py
.pn
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to exit the Python command line interface?
exit()
stop()
end()
X
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False:
Indentation in Python is for readability only.
True
False
7.
DRAG AND DROP QUESTION
1 min • 1 pt
Insert the missing part of the code below to output "Hello World".
(a) ("Hello World")
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
50 questions
ICT KS3 ERC End of Year Quiz
Quiz
•
4th - 10th Grade
50 questions
Quiz Latihan Soal-Soal UTS Keamanan Jaringan
Quiz
•
KG - University
45 questions
GCSE Python Legends
Quiz
•
1st - 12th Grade
48 questions
Adobe InDesign Review
Quiz
•
8th Grade
51 questions
Yr 8 (IT3) - Hardware & Software
Quiz
•
5th - 9th Grade
50 questions
Computer Hardware
Quiz
•
8th - 9th Grade
50 questions
Jonathan Grant High School - Grade 8 - Information Technology - Midterm Exam
Quiz
•
8th Grade
45 questions
Microsoft Excel - Basics
Quiz
•
7th 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