
Python Exercise

Quiz
•
Computers
•
8th Grade
•
Medium
Manik Kusuma
Used 7+ times
FREE Resource
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")
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
File Management G8

Quiz
•
8th Grade
50 questions
Basic Final Quiz

Quiz
•
6th - 8th Grade
50 questions
soal ujian tik kelas 2 tahun 2024/2025

Quiz
•
8th Grade
44 questions
Python Test 2

Quiz
•
7th - 12th Grade
50 questions
Computer basics

Quiz
•
5th - 9th Grade
50 questions
8A Sumatif TIK kelas 8 Semester 2

Quiz
•
8th Grade
45 questions
MS WORD 2ND QUARTER SUMMATIVE TEST

Quiz
•
8th Grade
50 questions
Y9 Written Summer Assessment

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade