Python Quiz for Grade 8

Quiz
•
Science
•
8th Grade
•
Hard
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
Similar Resources on Wayground
22 questions
Quiz 5 Review

Quiz
•
University
20 questions
Les variables en Python

Quiz
•
11th Grade
22 questions
Fingerprint vocabulary

Quiz
•
9th - 12th Grade
25 questions
Elements and Symbols

Quiz
•
9th - 12th Grade
19 questions
pre assessment python

Quiz
•
University
20 questions
Fingerprinting

Quiz
•
11th Grade
20 questions
Fingerprint

Quiz
•
11th Grade
25 questions
Fingerprint Introduction

Quiz
•
5th - 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 Science
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade
10 questions
Exploring the Scientific Method

Interactive video
•
6th - 10th Grade
20 questions
Microscopes

Quiz
•
7th - 8th Grade
10 questions
Law of Conservation of Mass

Quiz
•
8th Grade
10 questions
Exploring Chemical and Physical Changes

Interactive video
•
6th - 10th Grade
30 questions
Newton's Laws of Motion

Quiz
•
8th Grade
21 questions
Balanced and Unbalanced Forces

Quiz
•
8th Grade