Programming Languages
This is Taking Awhile
Base 10?
I Hate Assembly
General Computer Science
100

C++, Java, and JavaScript are built from this language.

C

100

What is the time complexity of traversing a list of 'n' elements?

O(n)

100

What is (101)2 in base 10?

5

100

What does the assembly instruction "load word" do?

Move a value from RAM to a register

100

What is the most popular programming language?

Python, JavaScript, or C.
200

Name a functional programming language.

Haskell, Lisp, F#

200

What is the time complexity of traversing a matrix with 'n' rows and 'm' columns?

O(n * m)

200

What is (27)10 in binary?

11011

200

When a function call is made, this happens to the stack pointer does this in most architectures.

It is decremented

200

Who was the first computer programmer?

Ada Lovelace

300

This language is based on the motto "write once, run anywhere."

Java

300

What is the average time complexity for bubble sort?

O(n2)
300

What is (7F)16 in decimal?

127

300

What does the program counter register store?

The address of the next line to be executed.

300

What are the two common data structures used for a process in RAM?

Stack and Heap

400

This language is known as a memory-safe alternative to C

Rust

400

What is the time complexity for finding a value in a balanced BST with 'n' nodes?

O(log(n))

400

What is (255)10 in hexadecimal?

FF

400
This type of memory is extremely fast and located close to the CPU (not registers).

Cache

400

What is the main difference between a compiler and an interpreter?

A compiler turns the source code into an object file. An interpreter executes source code line by line.

500

Fortran, Lisp, ALGOL, and Pascal were invented at a similar time. Which came first?

Fortran (1957 commercially)

ALGOL (1958), Lisp (1958), Pascal (1970)

500

What is the average time complexity of quick sort?

O(nlogn)

500

What is (73)10 in octal?

111

500

What assembly code does 'if (x == 0)' correspond to?

Branch if equal (beq) or branch if not equal (bne).

500

What is the negative of having too many registers (ignoring cost)?

Context switches are mores expensive. Opcode instructions have to be longer is also acceptable