Computer Science LISTS

Quiz
•
Computers
•
12th Grade
•
Hard
Steve Rich
Used 58+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Correct code to define a list in Python?
scores = [15, 29, 4, 50]
scores = {15, 29, 4, 50}
Int[] scores = {15, 29, 4, 50};
scores = (15, 29, 4, 50)
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Choose all the ways in which a Python list is different from an array ...
Arrays have fixed length: Lists have dynamic length
Arrays only contain one data type; Lists can contain many data types
Arrays are indexed from 1; Lists are indexed from 0
Arrays can not be empty; Lists can be empty
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output is ...?
mango
pear
kiwi
['apple','banana','pear']
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Choose three valid methods that may be applied to lists in Python ...
list.append(x)
list.count(x)
list.sort()
list.format()
list.isNumeric()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
colours = ['red', 'blue', 'yellow', 'green', 'purple']
Which instruction illustrates mutability?
colours[2] = 'pink'
colours.append('pink')
colours.insert(2, 'pink')
colours.remove('pink')
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output is ... ?
Index out of range
29
34
89
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Correct code to access the second 'Terry' in this list ... ?
montyPython[5]
montyPython[6]
montyPython[-1]
montyPython[3]
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Revision Tour - I

Quiz
•
12th Grade
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
16 questions
Python basics

Quiz
•
9th - 12th Grade
20 questions
ความรู้พื้นฐาน Python

Quiz
•
10th Grade - University
15 questions
PCEP Section 3E: Operate with strings

Quiz
•
12th Grade
15 questions
Unit 2 Test Review

Quiz
•
9th - 12th Grade
15 questions
CPM9.1-9.3 Quiz Review

Quiz
•
9th - 12th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade