Vocab
Mo Cab/Mind Your Test
Mind Your Test
Study harder!
Lingo Mr. A Shouldn't Be Using at His Age
100

the process of accessing each item in a list one at a time.

Traversal:

100

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]

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

Cringe means: 

A. Curl up in a ball because I didn't Study
B. Type of arm exercise
C. A response to embarrassment or social awkwardness
D. When someone's personality=eating Takis chips

C. A response to embarrassment or social awkwardness

200

an ordered collection of elements

List:

200

A 2-sided coin has an equal likelihood of landing on each side. One side is called "heads" and the other is called "tails". The program below simulates randomly flipping that coin many times.

var heads = 0; 
var tails = 0; 
var rolls = 100; 
for(var i = 0; i < rolls; i++){  if(randomNumber(0,1) == 0)
{    
heads++   
else   
tails++  }

Which of the following is NOT a possible combination of values of the variables in this program when it finishes running?

 A.   tails has a value of 0 and heads has a value of 100

 B.   tails has a value of 100 and heads has a value of 0

 C.   tails has a value of 20 and heads has a value of 20

 D.   tails has a value of 50 and heads has a value of 50 

C.   tails has a value of 20 and heads has a value of 20

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

Vibe check is:

A. To check the rate of movement one engine.

B. To master the spiritual side of yoga.

C. To check one's personality or attitude.

D. A vibrating Checkmark

C. To check one's personality or attitude.

300

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

Index:

300

A 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 proces 

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.

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

Based means:

A. You're safe in a game of tag if you touch the base.

B. Sliding home after an in fielder

C. The act fort building

D. Indicate an opinion or something that someone agrees with.

D. Indicate an opinion or something that someone agrees with.

400

occurs when the ending condition will never evaluate to true.

Infinite loop:

400

an individual value in a list that is assigned a unique index

Element

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

ageList and gradeList contain information about students in a classroom. A programmer has already written the following code with that information.

var ages = [16,17,18, 17]; var names = [“Beni”, “Analise”, “Ricardo”, “Tanya”]; 
var filteredNames = []; var age;

Which of the following programs will result in filteredNames only containing the names of students who are 17 or older?

 A.  

 B.  

 C.  

 D.  

D

400

Ghosting means:

A. To make pottery with the ghost of Patrick Swayze.

B. Not talking to a person you were previously speaking too.

C. Act of playing Luigi's Mansion

D. Passing gas aka farting the ghost of the protein you eat.

B. Not talking to a person you were previously speaking too.

500

manage complexity in programs by giving a collection of data a name without referencing




Data abstraction:

500

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

Iteration:

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

var words = [“apple”, ”bug”, ”car”, ”dream”, ”ear”, “food”]; var filteredWords = []; for (var i = 0; i < words.length; i++) {  var word = words[i];  if (word.length < 4) {    appendItem(filteredWords,word);  } }
console.log(filteredWords);

If the program above is run, what will be displayed in the console?

 A.   [apple, dream]

B.   [bug, car, ear]

 C.   [bug, car, ear, food]

 D.   [apple, dream, food] 

B.   [bug, car, ear]

500

Let him cook, means:

A. A callout to give someone the space to plot, strategize or hone their craft

B. A line in Ratatouille

C. A line from Breaking Bad

D. When you're interrupted while cooking a beautiful meal

A. A callout to give someone the space to plot, strategize or hone their craft.

M
e
n
u