Python 2
Quiz
•
Computers
•
7th - 9th Grade
•
Practice Problem
•
Medium
Louise Russell
Used 12+ times
FREE Resource
Enhance your content in a minute
22 questions
Show all answers
1.
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"]
nameList = [John, Harry, Jesse, John, Harry, Harry]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List items have an index number. In the following list, which item has the index number of 3?
["John", "Harry", "Jesse", "John", "Harry", "Harry"]
"John"
"Harry"
"Jesse"
"John"
3.
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)
nameList["4"]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The list needs one more name added to the end - "Felipe". Which piece of code below would do this?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList.append(Felipe)
append(nameList,"Felipe")
nameList.append["Felipe",7]
nameList.append("Felipe")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the position of the name "Robert" in the following list:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output will this code produce?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To insert an the string "strawberries" in the first position of a list we use
fruit.append("strawberries, 1")
fruit.insert("strawberries",0)
fruit.insert(1, "strawberries")
fruit.insert(0, "strawberries")
Create a free account and access millions of resources
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
20 questions
Jaringan Komputer dan Analisis Data
Quiz
•
7th Grade
20 questions
ICT
Quiz
•
7th - 12th Grade
18 questions
BJC Unit 4 Review (AP CSP - Internet)
Quiz
•
9th - 12th Grade
20 questions
Python Quiz 2
Quiz
•
9th Grade
17 questions
Big Data
Quiz
•
6th - 8th Grade
18 questions
MS Word: Module 1
Quiz
•
9th - 12th Grade
20 questions
HTML5 Basics
Quiz
•
7th - 10th Grade
20 questions
Quiz
•
7th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
40 questions
TSDE Semester Final Review
Quiz
•
8th Grade
18 questions
Company Logos
Quiz
•
6th - 8th Grade
13 questions
Computer/ Internet Company Trademark Logos
Quiz
•
7th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
20 questions
Logos
Quiz
•
2nd - 8th Grade
40 questions
Unit 2: Typing Test Review
Quiz
•
7th Grade
