Unit 5 Lists, Loops, & Traversals
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Medium
Kaitlin McKiernan
Used 202+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following will result in ONLY all the items in list being printed to the console if placed where the program reads <INSERT CODE> and the program is run?
i < list[list.length]
i < list.length
i < list[0]
i < list[1]
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
wordList is a list of words that currently contains the values ["tree", "rock", "air"]
Which of the following lines will result in the list containing the values ["air", "rock", "air"] ?
wordList[0] = wordList[2]
wordList[2] = wordList[0]
insertItem(wordList, 0, "air")
removeItem(wordList, 0)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be displayed in the console when this program runs?
2
3
20
30
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be displayed when this program finishes running?
3
6
7
5
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be displayed in the console when the following program runs?
0 2 4 6
0 2 4
2 4 6
The program will result in an infinite loop.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following program display in the console?
0 1 2 3
0 1 2 3 4
1 2 3
1 2 3 4
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following program display in the console?
0
5
10
15
Access all questions and much more by creating a free account
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
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Basic Parts of Speech EPS
Quiz
•
9th - 10th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
SHORTCUT PADA KEYBOARD
Quiz
•
10th - 12th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
10 questions
Binary Subtraction
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
