Turtle
Recursion and Iteration
Sorting and Searching
Stacks and Queues
Linked Nodes and Trees
100

Turtle command to put the pen up.

What is turtle.up()?

100

The case that stops the recursion.

What is a base case?

100

The complexity of Insertion Sort.

What is O(N^2)? (In the context of Insertion Sort)

100

A FIFO/LILO structure.

What is a Queue?

100

A node that has no parent.

What is a root node?

200

A function used to set the fill color.

What is fillcolor()?

200

A loop that runs until a condition is no longer true.

What is a while loop?

200

The time complexity of the worst case of Merge Sort.

What is O(NLogN)? (In the context of Merge Sort)

200

A FILO/LIFO structure.

What is a Stack?

200

A tree where the value of the left child is always less than the value of the parent and the value of the right child is always greater than the value of the parent. 

What is a Binary Search Tree?

300

Turtle command used to draw a circle of diameter 100.

What is turtle.circle(50)?

300

A type of function where the last thing that happens is the recursive call.

What is a Tail Recursive function?

300

The average time complexity of Quick Sort.

What is O(NLogN)? (In the context of Quick Sort)

300

The fields of a Queue as discussed in class.

What are front, back, and size?

300

A statement that declares an immutable dataclass.

What is @dataclass(frozen=True)?

400

Import statement used to call turtle functions without typing 'turtle.' before the function.

What is 'from turtle import *'?

400

A function used to generate a list of numbers to iterate through.

What is the range function?

400

The time complexity of Selection Sort.

What is O(N^2)? In the context of Selection Sort?

400

The complexity of pushing, popping, peaking and getting the size of a stack.

What is O(1)? (In the context of Stack operation)

400

The tree traversal that visits the parent node last.

What is post-order traversal?

500

The code used to draw a circle with a blue outline and a green infill

import turtle as t

t.pencolor('blue')
t.fillcolor('green')
t.begin_fill()
t.circle(100)
t.end_fill()
t.done()

500

The error you get when you recursive infinitely.

What is 'Maximum Recursion Depth Exceeded'?

500

The time complexity of Binary Search. 

What is O(LogN)? (In the context of Binary Search)

500

The complexity of enqueing a node to a Priority Queue.

What is O(N)? (In the context of Priority Queue operations)

500

The import statement necessary to declare the immutable LinkNode dataclass.

What are the statements:

from dataclasses import dataclass

from typing import Any, Union?

M
e
n
u