Python Quiz for Grade 8

Python Quiz for Grade 8

8th Grade

24 Qs

quiz-placeholder

Similar activities

Python Basics Quiz for Grade 10

Python Basics Quiz for Grade 10

10th Grade

20 Qs

Byte the panel game

Byte the panel game

University

20 Qs

Python Practice Exam - Multiple Choice

Python Practice Exam - Multiple Choice

University

23 Qs

Minggu ke 2

Minggu ke 2

University

21 Qs

PYTHON

PYTHON

University

22 Qs

MIT python questions part1

MIT python questions part1

University

21 Qs

Python for Data Professional Beginner

Python for Data Professional Beginner

University - Professional Development

23 Qs

แบบทดสอบกลางภาคเรียน วิชา วิทยาการคำนวณ ม.2

แบบทดสอบกลางภาคเรียน วิชา วิทยาการคำนวณ ม.2

8th Grade

20 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?