C++
Frontend
Data Structures
Math & Other Engineering
Random
100

What is the output? 

void greet() {

    cout << "Hello, World!";

}


int main() {

    greet();

    return 0;

}

What is Hello World? 

100

What is the output?
<style>

    h1 { color: pink; }

</style>


<h1>Hello</h1>

What is a pink 'Hello'? 

100

What is the output? 

int main() {

    int arr[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

    cout << arr[4];

    return 0;

}

What is 5? 

100

The chemical name for water.

What is H2O?

100

One of the meetings GWC has held. (That is NOT study tables) 

What is Valentine's Card, Cupcake Decorating, Women's History Month presentation, Bingo, LinkedIn, Github, Cookie Decorating, Debugging... ? 

200

What is the output? 

int main() {

    int x = 2 * 3 + 4;

    cout << x;

    return 0;

}

What is 10? 

200

What is the shape made? 

<style>

  .box { width: 100px; height: 100px; background-color: red; }

</style>


<div class="box"></div>

What is a red square? 

200

The data structure that follows First In, First Out.

What is a queue? 

200

The derivative of ex.

What is ex

200

The full name of the main professor who teaches CptS 121 and 122.

Who is Andy/Andrew O'fallon? 

300

What is the output? 

int main() {

    int x = 10;

    int y = 3;

    cout << x % y;

    return 0;

}

What is 1? 

300

What is the output?

let x = 15;

x += 37;

console.log(x);

What is 52? 

300

The order that a stack uses. 

What is LIFO (Last In, First Out)?

300

The formula for force.

What is F = ma (Force = mass x acceleration)? 

300

The platform meant for professional networking.

What is LinkedIn? 

400

This is a blueprint for creating objects, providing initial values for state, and implementations of behavior.

What is a class? 

400

<img src="dog.jpg" alt="A cute dog">
What happens if the image file is missing?

What is "The text 'A cute dog' is displayed"? 

400

Solve:

int main() {

    stack<int> s;

    s.push(2);

    s.push(4);

    s.push(6);

    s.pop();

    s.push(8);

    s.pop();

    cout << s.top();

    return 0;

}

What is 4? 

400

Solve: f(x) = x2 + 3x, find f'(2). 

What is 7? 

400

The process of identifying and removing errors in software.

What is debugging? 

500

What is the output? 

void func(int a, int b = 5, int c = 10) {

    cout << a + b + c;

}

int main() {

    func(3, 7);

    return 0;

}

What is 20? 

500

What is the output? 

<script>

    console.log(2 + "2");

</script>

What is "22"? 

500

What is the output? 

map<int, string> m;

m[1] = "one";

m[2] = "two";

m.erase(1);

cout << m.size();


What is 1? 

500

Formula of Ohm's Law.

What is V = IR (Voltage = Current x Resistance)? 

500

What are all our officers' names? 

Who is Sierra, Skyllar, Molly, Caitlin, Alexis? Bonus: Guneet