Unit 5 -- Lists, Loops, Traversals

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Jake Voss
Used 251+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the definition of a List?
An ordered collection of elements
Where information is stored in a variable
The number that identifies each individual element
Where information is written in Java
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following creates a list in the code?
var aList( )
aList{ }
var aList[ ]
aList: ;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands adds an element to the end of the list?
append.list(element)
append.Item(list, element)
list.append()
(element)append
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An Element is an individual value in a list that is assigned a unique index
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The length of a list is how many elements it contains. Lists can grow or shrink as elements are added or removed, but the length of the list does not change.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value at index 1
74
53
22
favNums
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do code do we use to up the "counter" variable by 1 each time we traverse through a "for" loop?
Var i = i + 1
i = 0
i ++
i +
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We use a for loop to traverse a list, visiting each element one at a time.
True
False
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output be?
[1,4,12,8,6,9,4]
[2,5,13,9,7,10,5]
[4,7,15,11,9,12,7]
[4,7,15,11,6,9,4]
Similar Resources on Wayground
12 questions
Code.org Unit 6 - Lists

Quiz
•
9th - 12th Grade
10 questions
JS Practice: ITS Certification

Quiz
•
12th Grade
12 questions
Javascript Arrays

Quiz
•
9th - 12th Grade
11 questions
Python Arrays

Quiz
•
9th - 10th Grade
13 questions
Dojo - Type Inference

Quiz
•
1st - 12th Grade
10 questions
Python - List

Quiz
•
9th - 12th Grade
11 questions
AP CSP MCQ Review Session 2 Quiz

Quiz
•
10th Grade
11 questions
JS Certification

Quiz
•
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
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade