
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
soal TIK kls VIII

Quiz
•
8th Grade
45 questions
Quis Pra Semester Kelas 8

Quiz
•
8th Grade
42 questions
Routery 2024 test dla sigm

Quiz
•
8th - 12th Grade
42 questions
Python Programming Quiz

Quiz
•
8th Grade
50 questions
End of Year 8 - ICT Assessment

Quiz
•
8th Grade
43 questions
Python Operators and Loops Quiz

Quiz
•
8th Grade
50 questions
Basics of Tech and Safety Quiz

Quiz
•
8th Grade
47 questions
ECDL Computer Essentials

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade