Python Quiz
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
MARYA AMEEN
Used 75+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to output "Hello World" in Python?
Print("Hello World")
P "Hello World"
p ("Hello World")
Print["Hello World"]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lists are used to store single item in a single variable.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List items are indexed, the first item has index [1], the second item has index [2] etc.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you add new items to a list, the new items will be placed at the end of the list.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct code for creating a list of names?
nameList = John, Harry, Jesse, John, Harry, Harry
nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these pieces of code would return the name "Harry" from the following list?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList()
nameList[1]
nameList["4"]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of “grape” in the list
[“apple”, “grape”, “orange”, “watermelon”]?
0
1
2
3
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Word Processing & Advanced Business Documents
Quiz
•
6th - 8th Grade
16 questions
Google Slide Quiz
Quiz
•
8th Grade
20 questions
PLTW DM Lesson 1
Quiz
•
6th - 8th Grade
15 questions
Microbit (python)
Quiz
•
8th - 10th Grade
15 questions
Mảng 1 chiều
Quiz
•
8th - 11th Grade
20 questions
Kelas 8-Dampak Sosial Informatika
Quiz
•
8th Grade
19 questions
Code.org Express Course -> Lesson 10
Quiz
•
5th - 8th Grade
16 questions
Display
Quiz
•
8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
