Python Exercise

Python Exercise

8th Grade

46 Qs

quiz-placeholder

Similar activities

Soal TIK Kelas 8

Soal TIK Kelas 8

8th Grade

45 Qs

Jupyter - 8. razred (2023)

Jupyter - 8. razred (2023)

8th Grade

50 Qs

Python Assessment Year 8

Python Assessment Year 8

8th - 9th Grade

50 Qs

Python List 2

Python List 2

8th Grade

45 Qs

Python loops

Python loops

8th Grade

43 Qs

python pygame

python pygame

6th - 8th Grade

44 Qs

Python End of Unit Quiz

Python End of Unit Quiz

6th - 8th Grade

44 Qs

Python Exercise

Python Exercise

Assessment

Quiz

Computers

8th Grade

Medium

Created by

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")

print
x =
def =
list :

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?