Python Basics
Data Structures
Runtime
Machine Learning
stuff we didn't learn and no one is getting correct
100

file ending in ___ is a python file

.py

100

True or False: Lists can change sizes

True

100

Which runtime is better when you list size is really big? O(n) or O(log(n))

O(log(n))

100

Which is the correct statement?

1) AI is a subcategory of machine learning

2) Machine learning is a subcategory of AI

2) Machine Learning is a subcategory of AI

100

Who is generally considered the father of modern computer science

Alan Turing

200

What programming concept uses if, elif, and else statements?

Conditionals

200

What kind of data structure is First-In-First-out (FIFO)?

Queue
200
What is the best runtime you can have?

Constant - O(1)

200

Why might your machine learning model end up outputting biased predictions?

The data set it biased

200

What graph/tree algorithm explores each branch fully before exploring the next branch?

Depth-For-Search(DFS)

300

Which kind of loop might result in an infinite loop

A while loop

300

What kind of data structure follows a Last-In-First-out (LIFO) system?

Stack

300

What is the average runtime for a balanced binary tree?

O(log(n))

300

What kind of machine learning can help with image detection?

Unsupervised Learning

300

A map data structure has what attributes?

Key-Value pairs
400

True or False: A function in Python can take in a data structure for its parameter

True

400

What data structure are lists built on top of

Arrays
400

What is the worst case runtime for removing an element from a list and when does it happen?

O(n) when removing something from index 0

400

What kind of machine learning can optimize a chess bot?

Reinforced Learning

400

When does a stack overflow occur?

When a recursive function has no base/exit case

500

What does a function in Python return if there is no return statement

"None" / null value

500

What condition(s) must a binary Search tree satisfy?

- Each node must have between 0 and 2 children

- Each left child must be less than the parent

- Each right child must be greater than the parent

500

What is the worst case runtime of a binary search tree and when does this happen?

O(n) during a degenerate tree

500

What kind of machine learning can help with anomaly detection?

Unsupervised Learning
500

If the training accuracy of our model is 99% and the testing accuracy is 20%, what does this mean?

The model is overfit
M
e
n
u