Programming (Leetcode)
Artificial Intelligence (Broadly)
History of Computer Technology
Machine Learning (Technical)
Mathematics
400

Return sum of all even numbers in a list

Fill in the blank: 

def sum_of_evens(numbers):
    return __

sum(num for num in numbers if num % 2 == 0)

400

What term describes AI systems that improve on performance through learning from data? 

Machine Learning

400

Name any web browser created in the 1990s that had contemporary mass-market success. 

Double points for answering with the first mass-market browser.

Double point answer: Mosaic 

Other answers: Lynx, Netscape Navigator, Opera, Internet Explorer, Netscape Communicator

400

Input, hidden, output are examples of something that makes up neural networks. What is it called? 

Layers, 

 Gates is also a close answer (in LSTM) but not entirely correct due to forget gate instead of hidden layer.

400

What is the definition of a Set in mathematics? 


A collection of distinct objects 

Alt: A collection of different things

800

Reverse a string 

Fill in the blank

def reverse_string(s):
    return __

s[::-1]

800

This test determines if a machine can mimic human conversation well enough to fool a human judge. 

The Turing Test

800

Which three computer models comprised the first generation of mass-market personal computers? 

They were referred to as the Holy Trinity, and were from three different companies. Normal points for getting 1, double points for getting 2

Apple II, the Commodore PET, and the TRS-80

800

This iterative method updates model parameters by moving in the direction opposite to the gradient of the loss.

Gradient Descent.

800

What is it called when a compound statement is always true no matter what the individual parts consist of? 

A tautology.
1200

Write a Python function that takes a list of integers and returns a new list containing only the unique elements (no duplicates).

Fill in the blank:

def unique_elements(numbers):
    return __

list(set(numbers))

1200

When an AI system makes hard-to-explain decisions, what quality is it lacking? 

Interpretability or transparency.

1200

What does HTTP stand for? 

Hypertext Transfer Protocol

1200

What is the term for the process that adjusts the weights of a neural network based on the error of the output compared to the expected result?

Backpropagation

1200

What is the probability of rolling at least one 6 (six) with 5 (five) dice rolls of a fair die? Calculators allowed.

1 - (5/6)

= 0.59812242799 

1600

Write a Python function to implement the quicksort algorithm, which sorts an array of integers in ascending order.

Fill in the blank:

def quicksort(arr):
    if len(arr) <= 1:
        return arr
    pivot = arr[len(arr) // 2]
    left = [x for x in arr if x < pivot]
    middle = [x for x in arr if x == pivot]
    right = [x for x in arr if x > pivot]
    return __

quicksort(left) + middle + quicksort(right)

1600

This technique allows a model trained on cats to be reused for hamster recognition, for example. 

Transfer Learning

1600

What was the name of the first artificial neural network, developed in 1958 by Frank Rosenblatt, that was designed to recognize patterns?

Perceptron

1600

This ensemble method combines multiple decision trees using bootstrapped samples and averaging.

Double Jeopardy! Double the points if you answer correct, but also double the incorrect penalty. 

Random Forest

1600

How many edges are in a bipartite graph K3,4 

12 edges.

2000

Write a Python function that implements a binary search algorithm on a sorted array, returning the index of the target value if found, or -1 if not found.

Fill in the blank: 

def binary_search(arr, target):
    left, right = 0, len(arr) - 1
    while left <= right:
       __
        if arr[mid] == target:
            return mid
        elif arr[mid] < target:
            left = mid + 1
        else:
            right = mid - 1
    return -1

mid = left + (right - left) // 2

2000

What is the paradox that hypothesizes that human tasks requiring intuition (such as walking) are harder for AI than abstracted tasks such as calculus? 

Moravec's Paradox 

Explanation: Sensorimotor skills (e.g., navigating a room) demand immense computational power, while abstract reasoning (e.g., chess) is relatively easier to replicate. It underscores why robotics and embodied AI lag behind symbolic AI systems.


2000
In 1983 and 1984 respectively, which two computers were released which paved the wave for the personal computing revolution? 


Half points for one, full points for both

Apple Lisa (1983), Apple Macintosh (1984)

2000

What is the tradeoff between a model's ability to fit training data versus generalizing to new data? 

The bias-variance tradeoff

2000

In a dataset with 100 points, a linear regression model has 5 features. How many degrees of freedom for the residuals in this model? 

95

M
e
n
u