You Got Class?
Contain Yourselves
And I OOP-!
String Cheese
Recipe
100

This is a function that belongs to a class and can access its private data.

What is a member function?

100

A variable designed to store a memory address. 

What is a pointer?

100

2 Cool 4 School! This is a data type defined by the programmer.

Class

100

When a loop prints characters in a C-string, it will stop at this character.

What is the null terminator ('\0')? 

(Also acceptable: null character)

100

A technique where a function solves a problem by calling itself on smaller inputs until reaching a base case.

What is recursion?

200

A keyword used to distinguish between parameter and instance variables.

What is "this"? 

200

Maps do not allow duplicate elements, but they aren't the only ones. This container is designed to have unique elements! 

What is a set?

200

Don't cry! This kind of class inherits data members and member functions from a parent class.

What is a child class (or subclass)?

200

cin >> reads one token up to whitespace. This reads the full line up to '\n'.

What is getline?

200

This algorithm splits the list of elements into halves, recursively sorts, and merges the results. 

What is MergeSort?

300

Class declarations with function prototypes should be placed in this type of file. 

What is an .h (header) file?

300

If you need efficient insertions and deletions (especially in the middle), you would likely choose this data structure over an array.

What is a linked list?

300

"Same interface, different behavior" is the tagline for this type of object-oriented programming principle.

What is polymorphism?

300

Using fixed and setprecision(3) will get you this many digits after the decimal place.

What is 3?

300

Given int arr[] ={1, 2, 3, 5, 16, 24}; you perform a binary search for 1 — this index is checked first. 

What is index 2?

400

This variable is available to code that is written outside the class. 

What is x?

400

A local variable declared inside a function like int x = 10; is most directly associated with this memory region.

What is the stack?

400

A child class defining its own version of a parent class member function demonstrates this concept.

What is overriding?

400

This is the length of char word[] = "CAB"; (in terms of array size).

What is 4?

400

This diagram demonstrates how this algorithm performs sorting.

What is Quicksort?

500

This is the output of the code below.

What is 3?

500

After running this code, this element appears at the top.

What is 2?

500

When running this code, the output will be this.

What is 4 4 7?

500

The code will output this value.

What is 15?

500

An algorithm repeatedly divides the problem size in half until it reaches 1. This is its time complexity.

What is O(log n)?

M
e
n
u