Computer Science LISTS
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Steve Rich
Used 61+ times
FREE Resource
Enhance your content in a minute
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
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
สอบกลางภาค PLC
Quiz
•
12th Grade
20 questions
Conceitos Básicos de Multimédia
Quiz
•
12th Grade
20 questions
Processing- The CPU Quiz
Quiz
•
10th Grade - University
15 questions
quiz Pertama XII
Quiz
•
9th - 12th Grade
20 questions
Sjmit-Q2-[Workshop-MAR-25]
Quiz
•
12th Grade - University
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
20 questions
TN +2 -LESSON1 FUNCTIONS
Quiz
•
12th Grade
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
