In which instance would a data abstraction be most helpful?
- The program includes individual variables to store the names of each student rather than a single list of students.
- A program includes multiple comments that could be combined into a single comment.
- A program includes repeated programming statements that could be moved inside a loop.
- A program includes repeated code that could be moved inside a function.
Code.org Unit 6 Assessment Day

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

12 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
The program includes individual variables to store the names of each student rather than a single list of students.
2.
FLASHCARD QUESTION
Front
Which of the following will NOT result in an error if placed where the program reads <INSERT CODE> and the program is run? Options: i < list[list.length], i < list.length, i < list[0], i < list.length - 1
Back
i < list.length
3.
FLASHCARD QUESTION
Front
Which line 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]
4.
FLASHCARD QUESTION
Front
What will be displayed in the console when this program runs?
var numList = [10,20,30];
console.log(numList[numlist.length-1]);
Back
30
5.
FLASHCARD QUESTION
Front
What will be displayed when this program finishes running?
var numbersList = [20, 10, 5]
appendItem(numbersList, 50)
appendItem(numbersList,100)
removeItem(numbersList,1)
insertItem(numbersList, 0, 30)
console.log(numbersList.length)
Back
5
6.
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
7.
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
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
AP CSP Loops Practice

Flashcard
•
9th - 12th Grade
13 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
10 questions
CSP Unit 3 Assessment

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

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

Flashcard
•
9th - 12th Grade
6 questions
Understanding Loops and Lists

Flashcard
•
9th - 12th Grade
15 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
12 questions
Code.org - Unit 6 Lists, Loops, and Traversals

Flashcard
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University