Programming Basics
Language Showdown
Data Structures & Algorithms
Behind the Scenes
Fun Facts
100

What does a semicolon ; do in Java or JavaScript?

It ends a statement

100

Which is loosely typed — Java or JavaScript?

JavaScript

100

What’s a boolean expression?

A statement that evaluates to true or false

100

What does a compiler do?

Translates source code into machine code

100

Which programming language has a logo with a coffee cup?

Java

200

What keyword is used to define a function in Python?

def 

200

Between Python and Java, which one usually requires declaring variable types?

Java

200

What’s a common structure for storing key-value pairs?

Dictionary or Object

200

What’s the difference between compiling and interpreting?

Compiling runs all at once, interpreting runs line by line

200

What does HTML stand for?

HyperText Markup Language

300

Why does true == "true" return false in most languages?

"true" is a string, not a Boolean

300

Which language is most commonly used for data science?

Python

300

You want to store 100 student scores. What data structure is best?

List or array

300

What’s the difference between a syntax error and a runtime error?

A syntax error happens when code breaks language rules and won’t compile/run. A runtime error occurs during execution, like dividing by zero.

300

What tool helps you collaborate and track code changes with your team?

Git or GitHub

400

What do you call code inside {} in C-based languages?

A code block or scope

400

In Java, which keyword is used to define a constant value, and how does it differ from a regular variable?

final — a constant cannot be reassigned once initialized, unlike regular variables.

400

What’s the difference between an array and a list?

Arrays are often fixed-size, lists are flexible

400

What happens when a program has a stack overflow? 

Too many nested function calls overflow memory — usually due to infinite recursion

400

What’s a “Rubber Duck Debugging” method?

Explaining your code out loud to something to find bugs (a rubber duck)

500

What’s recursion, and how does it differ from iteration?

Recursion is a function calling itself to solve smaller instances of a problem; iteration uses loops. Recursion uses the call stack and can be less efficient if not handled properly.

500

Explain how garbage collection differs in Python and C++.

Python uses automatic garbage collection (via reference counting and a garbage collector), while C++ requires manual memory management with new and delete.

500

What sorting algorithm is known for its "divide and conquer" approach?

QuickSort or MergeSort

500

What is the stack used for in program execution?

To keep track of function calls and local variables — it grows with each call and shrinks when functions return.

500

What was the first computer bug — and where did it come from?

A moth found in a Harvard Mark II computer in 1947 — literally causing a hardware malfunction. Grace Hopper popularized the term "debugging" from this event.