General Principles
Computational Thinking
Programming
Arrays & Collections
Surprise
100
Pre condition for binary search is

The array should be sorted.

100

This diagrammatic method represents the step-by-step process of an algorithm, using shapes such as diamonds and rectangles.

What is flowchart?

100

This diagrammatic method represents the step-by-step process of an algorithm, using shapes such as diamonds and rectangles.

What is a while loop?

100

This algorithm traverses through each element of a linear array to find a specific value.

What is linear search?

100

what does the operator MOD do?

returns the remainder

200

What is abstraction?

Abstraction is a technique for managing the complexity of computer systems.

200

This keyword is used in pseudocode to execute a block of code a specific number of times.

What is "for"?

200

This term refers to a storage location in a program that can hold data that may change during execution.

What is a variable?

200

This algorithm is typically suggested for searching a sorted array by repeatedly dividing the search space in half.

What is binary search?

200

loops organized in layers (where one is inside of another)

nested loops

300

GANNT Chart is an example of this type of planning...

Pre-Planning

300

It translates and executes code line by line.

What is interpreter?

300

In pseudocode, this structure is used to handle decision-making by branching the algorithm based on conditions.

What is an 'if-else' statement?

300

What is the loop structure for the collections?

loop while COLLECTION.hasNext()

300

What are the three languages within computer language?

low-level, assembly code, and high-level language.

400

In larger problems, these smaller components can help break down a task into manageable pieces.

What are sub-procedures?

400

This is the efficiency of binary search when applied to a sorted array.

O(log n)

400

These languages are designed to be easier for humans to read and write, abstracting away the complexities of machine code.

What are higher level languages?

400

Which operation adds an element to the end of a collection?

.addItem()
400

What does O(1) time complexity represent in an algorithm's efficiency?

Constant time, where the number of operations does not depend on the input size.

500

This type of processing allows multiple tasks to be executed simultaneously to solve a problem more efficiently.

What is concurrent processing?

500

This term refers to the number of times an algorithm’s operations will be executed relative to input size

What is time complexity?

500

loop I from 0 to N

    loop J from 0 to I

       loop K from 0 to J

What is the time complexity for this code?

Cubic (n3)

500

If n2 algorithm takes 1 minute to sort X elements, how long will it take to sort 2X elements?

4 minutes

500

In pseudocode, how would you swap two values in an array?

TEMP = NUMS[I]

NUMS[I] = NUMS[J]

NUMS[J] = TEMP

M
e
n
u