Python Quiz for Grade 8

Python Quiz for Grade 8

8th Grade

24 Qs

quiz-placeholder

Similar activities

Forensic Science - Fingerprints

Forensic Science - Fingerprints

11th - 12th Grade

20 Qs

Fingerprinting Review

Fingerprinting Review

9th - 12th Grade

20 Qs

Basic 3 Python

Basic 3 Python

12th Grade - Professional Development

21 Qs

Fingerprinting Before Quiz

Fingerprinting Before Quiz

6th - 12th Grade

22 Qs

Chemical Bonds pt 2

Chemical Bonds pt 2

University

20 Qs

Informatika

Informatika

10th Grade

20 Qs

PYTHON

PYTHON

University

22 Qs

Python for Data Professional Beginner

Python for Data Professional Beginner

University - Professional Development

23 Qs

Python Quiz for Grade 8

Python Quiz for Grade 8

Assessment

Quiz

Science

8th Grade

Hard

Created by

Levy Roni.Aharon

FREE Resource

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output?
st = "Python"

print(st[2])

P

y

t

h

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does len('Hello World') return?

10

11

12

9

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of
print ("Hello" + " World")?

Hello World

HelloWorld

Error

Hello

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will this loop run?
for i in range(3):
print(i)

2

3

4

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of:
for i in range(2, 5):

print(i)

2, 3, 4

2, 3, 4, 5

3, 4, 5

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does range(5, 10, 2) produce?

5, 6, 7, 8, 9

5, 7, 9

6, 8, 10

5, 10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following function?
def greet():
print('Hello')

greet()

Hello

Error

None

greet

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?