Mind your Test
More TEST Q's
Vocab
Mo Vocab
Lingo Mr. Anderson Shouldn't use
100

A school is developing a program to keep track of information about students and their class schedules. In which of the following instances would a data abstraction be most helpful?

A.   The program includes individual variables to store the names of each student rather than a single list of students.

 B.   A program includes multiple comments that could be combined into a single comment

 C.   A program includes repeated programming statements that could be moved inside a loop

 D.   A program includes repeated code that could be moved inside a function.

A.   The program includes individual variables to store the names of each student rather than a single list of students.

100


What will be displayed in the console when the following program runs?

var count = 0 while (count != 5){  console.log(count);  count = count + 2; }


 A.   0 2 4 6

 B.   0 2 4

 C.   2 4 6

D.   The program will result in an infinite loop

D.   The program will result in an infinite loop

100
  • This is an ordered collection of elements 

List:


100
  • a repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met.

Iteration:

100

What does, "NPC" mean?

A. Refers to Notable People of Color

B. Non-playable character, similar to a video game.

C. Means: Not Passing this Class

200

var list = [10, 5, 15];
for(var i = 0; <INSERT CODE>; i++){  console.log(list[i]); }

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?


 A.   i < list[list.length]

B.   i < list.length

 C.   i < list[0]

 D.   i < list[1] 

B.   i < list.length

200


What will the following program display in the console?

for(var i = 0; i < 4; i++){  console.log(i); }


A.   0 1 2 3

B.   0 1 2 3 4

 C.   1 2 3

 D.   1 2 3 4 

A.   0 1 2 3


200
  • a common method for referencing the elements in a list or string using numbers

Index:

200
  • An individual value in a list that is assigned a unique index

  • Element:

200

What does the word, "Main Character" mean?

A. When someone acts if the world revolves around them

B. The next up and coming viral rapper

C. Refers to the protagonist in a story

300


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"]


A.   wordList[0] = wordList[2]

 B.   wordList[2] = wordList[0]

 C.   insertItem(wordList, 0, "air")

 D.   removeItem(wordList,0) 

A.   wordList[0] = wordList[2]

300


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);


 A.   0

 B.   5

C.   10

D.   15 

C.   10


300

occurs when the ending condition will never evaluate to true.

Infinite loop:

300

Two lists that when ordered next to each other, each element will correlate to the matching index of the other list.

Parallel lists

300

What does the term, "Fan" mean?

A. A person is overtly interested, obsessed or paying to much attention to someone.

B. Someone who moves too much air when talking.

C. Referring to something that spins really fast.

400


What will be displayed in the console when this program runs?

var numList = [10,20,30]; console.log(numList[numList.length-1]);


 A.   2

 B.   3

 C.   20

D.   30

D.   30

400


 job placement agency helps match job seekers with potential employers. The agency would like to design a simulation in order to help predict the likely job placement outcomes for job seekers based on historical trends and patterns. Which of the following is most likely to be a benefit of the simulation?


 A.   The computer simulation will be able to include more details and complexity than the real-world job placement process.

B.   The computer simulation could be used to test hypotheses about patterns in the job placement process that are costly or time consuming to observe in reality.

C.   The computer simulation will be able to precisely predict the real-world outcomes for each job seeker.

 D.   The computer simulation will remove the bias that may arise in the real-world job placement process. 

B.   The computer simulation could be used to test hypotheses about patterns in the job placement process that are costly or time consuming to observe in reality.


400
  • This manages complexity in programs by giving a collection of data a name without referencing the specific details of the representation.

Data abstraction:

400

Used to process a list of items to a single value or group of like items together by a choice of the user.

filter

400

What does the term, "slay" mean?

A. the employment skills of a butcher.

B. what those smelly reindeer pull

C. Someones outfit is killing

500


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)


 A.   3

 B.   6

 C.   7

D.   5

D.   5

500


A program is designed to determine the minimum value in a list of positive numbers called numList. The following program was written

var minimum = <MISSING CODE> for(var i = 0; i < numList.length; i++){  if (numList[i] < minimum){    minimum = numList[i];  } }
console.log(“The minimum is” + minimum);

Which of the following can be used to replace <MISSING CODE> so that the program works as intended for every possible list of positive numbers?


 A.   0

 B.   1000000

 C.   numList.length

D.   numList[0]

D.   numList[0]

500
  • This is the process of accessing each item in a list one at a time.

Traversal:

500

To add something to every element in a list.

Map

500

What does the word, "cap" mean?

A. The thing students won't be wearing if they fail my class

B. The thing people take off of their pens to chew on

C. When someone isn't telling the truth

M
e
n
u