Loops
Lists
Traversals
Data Analysis
Blast From the Past
100

What is Iteration?

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

100

What is the difference between an element and an index? 

index- place of value 

element-   data/ information at index

100

What is a Traversal?

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

100

What is big data

Big data refers to the large, diverse sets of information that grow at ever-increasing rates

100

What does concatenating mean?


The word CONCATENATE means to join or combine.

200

What is the difference between a while lop and a for loop?

The major difference between for loop and the while loop is that for loop is used when the number of iterations is known, whereas execution is done in the while loop until the statement in the program is proved wrong.

Additional data is given for a for loop

200

What does .substring do?

The .substring method returns the part of the string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.


substring just requests a section of the string

200

SURPRISE QUESTION:

For the AP CSP Exam, the list index starts at_____

1

200

Being able to add or remove resources to store large data sets is called________

Scalability is adding or removing resources to store and process large datasets.

200

The 3 types of algorithms are

-Sequential

-Selection

-Iterative

300

For every student in the class, if your group is the first to raise ALL your ducks in the air, you win this question.  If not, sorry

CONGRATS!!!

300
var numbersList = [20, 10, 5]
appendItem(numbersList, 50)
appendItem(numbersList,100)
removeItem(numbersList,1)
insertItem(numbersList, 0, 30)

console.log(numbersList.length)

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

5

300

If the variable name has the value "Hannah", what is the value if we take the substring of name starting at position 3 and going to the end?


"Nah"

300

Cleaning Data vs Data Filtering: what is the difference?

Cleaning Data: a process that makes the data uniform without changing its meaning (e.g., replacing all equivalent abbreviations, spellings, and capitalizations with the same word). 

Data filtering: choosing a smaller subset of a data set to use for analysis, for example by eliminating / keeping only certain rows in a table 

300

How do the World Wide Web and the Internet work together?

The internet is the network while the WWW is one service that is made available via the internet.

400

What will the following program display in the console?

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

0 1 2 3

400

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]

400

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

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?

  numList[0]

Explanation: You should set the initial value inside the "minimum" variable to a value that is in the list.

400

What is a the difference between crowdsourcing vs crowdfunding?

Crowdfunding means raising money from a large group of people to fund a specific project or venture, while crowdsourcing involves soliciting ideas, services, or content from a large group of people

400

What is 214 in binary?

1101   0110

500


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> & the program is run

i < list.length

500

Collegeboard Rules

var numList = [10,20,30];

console.log(numList[numList.length-1]);

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

20

500

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

[bug, car, ear]

500

How are procedures a form of abstraction?

Can be used multiple times without exactly knowing how it works

500

A mistake in an algorithm or program that causes it to behave unexpectedly or return the incorrect value

Logic error