
Lists and Loops Review-Code.org

Flashcard
•
Computers
•
10th Grade - University
•
Hard
Quizizz Content
FREE Resource
Student preview

5 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What will be displayed in the console when the following program runs?
var numList = [10,20,30];
console.log ( numList [numList.length-1]);
Back
30
2.
FLASHCARD QUESTION
Front
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"] ? Options: wordList[0] = wordList[2], wordList[2] = wordList[0], insertItem(wordList, 0, "air"), removeItem(wordList,0)
Back
wordList[0] = wordList[2]
3.
FLASHCARD QUESTION
Front
What will be displayed in the console when the following program runs?
var count = 0 while (count != 5){ console.log(count); count = count + 2; }
Back
The program will result in an infinite loop.
4.
FLASHCARD QUESTION
Front
What will the following program display in the console?
for(var i = 0; i < 4; i++){ console.log(i); }
Back
0 1 2 3
5.
FLASHCARD QUESTION
Front
What will the following program display in the console?
var sum = 0; for(var i = 0; i < 5; i++){ sum = sum + i; } console.log(sum);
Back
10
Similar Resources on Wayground
9 questions
AP CSP List Review

Flashcard
•
9th - 12th Grade
12 questions
Code.org Unit 6 Assessment Day

Flashcard
•
9th - 12th Grade
9 questions
Unit 5 -- Lists, Loops, Traversals

Flashcard
•
9th - 12th Grade
3 questions
Python Lists

Flashcard
•
9th - 12th Grade
10 questions
Code.org CSP Unit 5 Lists

Flashcard
•
9th - 12th Grade
5 questions
Review Lists in Python (before Lab 8)

Flashcard
•
9th - 12th Grade
7 questions
Skip Counting

Flashcard
•
KG
6 questions
Xbox vs Playstation

Flashcard
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade