Lists in Python

Quiz
•
Computers
•
11th - 12th Grade
•
Medium
Vivekta Singh
Used 98+ times
FREE Resource
20 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
20 sec • 1 pt
What is a list in python?
A collection of variables
A collection of items assigned to a single variable
A statement that cant be changed
A Christmas list
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the index number for 'Spain'?
['England','Brazil','Spain','France']
0
1
2
3
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which code would i use to add an item to a list?
variable.add()
variable.append()
append.variable()
add.variable()
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Why is using lists beneficial?
Shorter Code
More Accurate
It takes less time for the program to run
Its not beneficial
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What sort of loop is this?
Count Controlled
Condition Controlled
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
ONE 6th FORM strings n things 2

Quiz
•
11th Grade
16 questions
Subroutines

Quiz
•
9th - 11th Grade
20 questions
Python

Quiz
•
12th Grade
15 questions
Word Lesson 6

Quiz
•
9th - 12th Grade
20 questions
iGCSE Computer Science: Problem Solving

Quiz
•
9th - 12th Grade
15 questions
IT105 Review - Lists

Quiz
•
4th Grade - University
16 questions
Day 2

Quiz
•
9th - 12th Grade
21 questions
Repaso Python V2

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade