
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
Web Authoring (10th)
Quiz
•
8th - 12th Grade
45 questions
6th DA review game
Quiz
•
8th Grade
45 questions
Introduction to Sphero
Quiz
•
6th - 8th Grade
50 questions
Typography TEST REVIEW
Quiz
•
6th - 8th Grade
46 questions
Coding Basics
Quiz
•
8th Grade
50 questions
Keyboarding Techniques & Finger Placement - Test
Quiz
•
6th - 8th Grade
50 questions
Databases
Quiz
•
KG - 12th Grade
50 questions
Email Etiquette
Quiz
•
8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade