cs facts you probably know
slippery slithering snake
see plus plus
wtf is this error pls help me debug pls plsplsplspls I CAN'T STAND THIS ANYMORE
data... structures and algorithms?
100
The number of megabytes in a gigabyte.

What is 1000?

100

Print Python.

What is print("Python")?

100
something is wrong. find it.


cout >> "C++";

What is the incorrect operator, ">>"?

100

ERROR!

/tmp/rOBFypMBDF/main.cpp: In function 'int main()':

/tmp/rOBFypMBDF/main.cpp:7:32: error: expected ';' before 'return'

What is a syntax error? (Or if you want to be more specific, what is missing a semicolon in a line?)

100

The search that checks each element one by one until it finds the value it is looking for.

What is linear search (or sequential search)?

200

The first coder. 

Who is Ada Lovelace?

200

Write a for loop to print out five "cat"s.

What is:

for _ in range(0, 5):

    print("cat")

200

something is wrong. find it.

[header stuff here]

1. int sum (int a, int b):

2. {

3.     cout << "So actually I don't feel like adding..." << endl;

4.    cout << "Fine... :" << a + b << endl;

5. }

What is the colon in line 1?

200

ERROR!

/tmp/3yah2MEvQL/main.cpp: In function 'int main()':

/tmp/3yah2MEvQL/main.cpp:7:13: error: 'a' was not declared in this scope

What is an out-of-scope error?

200

A ____ of pancakes.

What is a stack?

300

The most common language used on Leetcode problems.

What is Python? (:c)

300

The output of:

a = [1, 2, 3]

b = a[-1]

print(b)

What is 3?

300

something is wrong. find it.

[header stuff here]

1. int SIZE = 3;

2. for (int i = 0; i < SIZE; i--){

3.        int y = 1;

4.        int x = y + 5;

5.        cout << y * x << endl;

6.    }

What is "i--" in line 2?

300

  what():  vector::_M_range_check: __n (which is 2) >= this->size() (which is 2)

What is an out-of-range error?

300

The line outside of Nike whenever you go to the Livermore Outlet. 

What is a queue?

400

The default program when you create a new project in C++ using either Visual Studio or Eclipse GIVEN that you want a prewritten program (so not if you create an empty project).

What is:

#include <iostream>


int main()

{

    std::cout << "Hello World!\n";

    return 0;

}

(I will accept any variation of this since it's slightly different depending on which IDE you use.)


400

Add two unsigned integers using recursion in Python.

What is:

def sum(a, b):

     if b == 0:

           return a

     return 1 + sum(a, b - 1)

(If you have a solution that isn't this but you think that it'll work, I'll pull up an online interpreter and we will check live.)

400

something is wrong. find it.

[header stuff here]

1. int arr[3] = {1, 2, 3};

2. cout << "First number: " << arr[0] << endl;

3. cout << "Second number: " << *(arr + 1) << endl;

4. cout << "Third number: " << arr[-1] << endl;

What is "arr[-1]" in line 4?

400

==12345== HEAP SUMMARY: 

==12345==     in use at exit: 4 bytes in 1 blocks 

==12345==   total heap usage: 1 allocs, 0 frees, 4 bytes allocated 

==12345== 

==12345== 4 bytes in 1 blocks are definitely lost in loss record 1 of 1 

==12345==    at 0x4C2A1BB: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so

==12345==    by 0x4005F6: main (example.cpp:3) 

==12345==

What is a memory leak?

400

I go to Boba Bliss and I wait in a line. I wait for a while, and I watch the line move up slowly. The first person gets their Thai tea and I'm next. I look back and smile sadly at the last person.

(Hint: It's an acronym.)

What is FIFO (First In, First Out)?

500

Name of a forum website for developers to share their issues.

Simultaneously, also the name of a type of issue that occurs when the call stack pointer exceeds the stack bound.

What is stack overflow?

500

The output of:

HINT: Think of the data type.

a = 8

b = str(8)

c = float(b)

d = int(c)

f = str(a)

g = int(f)

h = c + g

print(h)

What is 16.0 (a float)?

500

something is wrong. find it.

1. static int fibonacci(int n) {

2.        if (n = 1) {

3.            return n;

4.        }

5.        return fibonacci(n - 1) + fibonacci(n - 2);

6.    }


What is line 2? (Should be "n <= 1")

500

Invalid arguments ' 

Candidates are: 

COVIDTestOrder(const COVIDTestOrder &) 

COVIDTestOrder(const StreetAddress &, int) 

COVIDTestOrder(const std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>> &) ' 

COVIDTestOrder curr = orders->dequeue();

What is an invalid argument exception?

500

"What is the shortest way to travel from Rotterdam to Groningen, in general: from given city to given city. [...] One morning I was shopping in Amsterdam with my young fiancée, and tired, we sat down on the café terrace to drink a cup of coffee and I was just thinking about whether I could do this... As I said, it was a twenty-minute invention. In fact, it was published in '59, three years later. The publication is still readable, it is, in fact, quite nice. One of the reasons that it is so nice was that I designed it without pencil and paper. I learned later that one of the advantages of designing without pencil and paper is that you are almost forced to avoid all avoidable complexities."

What is Dijkstra's algorithm?

M
e
n
u