Variables
Bools & Conditionals
Iterations
Lists
Algorithms/Efficiency
100

Define variable

An abstraction that holds the value of a piece of data.

100

Define what a boolean expression is.

Statement where answer is either true or false. 

100

What is iteration? 

Repeating a set of instructions. 

100

Define a list

Data structure that stores elements together

100

What is an algorithm? 

Step by step instructions to solve a problem. 

200

What dozes the assignment operator (<-) do?  

Sets a value to a variable.

200

Define conditional statements. 

Statements that use boolean expressions to decide which part of a code to execute. 

200

Difference between fixed loop and a conditional loop?

Fixed - set number of times
Conditional - runs until a condition is met

200

What are indexes used for?

To access or change elements at a specific location in a list.

200
What happens if an inefficient algorithm is used with a lot of data? 

System can become slow/unresponsive.

300

What is output of this code:

x <- 5 

x <- x + 2

DISPLAY(x)

300

What make an output of true for an AND operator?

True and true 

300

Why is using loops useful?

Eliminate repetitive code.

300

Which number will be displayed? 

nums <- [1,3,5]
DISPLAY nums[2]

300

How can one algorithm solve multiple different problems? 

Algorithms can be used in different programs to execute a specific task. 

400

Why are variables used? 

They let programs store, update, and reuse data.

400
When will OR operator evaluate to true?
Atleast one condition needs to be true.
400

What is a nested loop? 

When one loop is placed inside of another.

400

What does appending to a list do?

Adds an element to the end.

400

Why is efficiency important in algorithms? 

Using more efficient algorithms save time. 

500

T or F: When b <- a and the value of a changes later on, the value of b also changes.

False

500
What does the NOT operator do?

Returns the opposite. If condition is true, then false is returned. If condition is false, then true is returned.

500

What are nested loops used for? 

Repeating instructions when each repetition needs more actions to be done. 

500

How to get the last element of a list?

Use the same index as the length of the list.

500

Why is using an algorithm more efficient than individual code segments?

Less repetition, and code can be reused.

M
e
n
u