Back to marketplace

Section 2

No description yet. This curated deck is ready for daily study.

Total cards: 15•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (15)

#1
Front (Question)

What is the difference between a static data structure and a dynamic one, and give an example of both

Back (Answer)

static is fixed in size(array) and a dynamic one changes in size (tree, list, stack, queue)

#2
Front (Question)

what advantage is there of a static data structure

Back (Answer)

faster

#3
Front (Question)

What is FIFO and what is LIFO

Back (Answer)

First in first out Last in first out

#4
Front (Question)

What is a data strucutre

Back (Answer)

A way of storing data so that it can be used efficiently

#5
Front (Question)

what is an array

Back (Answer)

a data structure that has numerous elements, usually of the same type, that are identified by an index

#6
Front (Question)

What is a 2D array?

Back (Answer)

An array is an indexed set of elements. If each element is itself an array

#7
Front (Question)

What does the pop operation do in a stack

Back (Answer)

returns the most recent element added to the stack and removes it from the stack

#8
Front (Question)

What does the push operation in a stack

Back (Answer)

adds an element to the top of the stack

#9
Front (Question)

What does the peep operation in a stack

Back (Answer)

returnsreturns the most recent element added to the stack but keeps it on the stack

#10
Front (Question)

what is the difference between a graph and a tree

Back (Answer)

a graph has a loop or a cycle

#11
Front (Question)

what is a dictionary

Back (Answer)

an abstract data type that has key: value pairs.

#12
Front (Question)

What makes a tree a “binary tree”

Back (Answer)

Each node has a maximum or 2 children

#13
Front (Question)

what is a lead of a tree

Back (Answer)

a node that has no children

#14
Front (Question)

what is the root of a tree

Back (Answer)

a node that is considered the root and every element is directed away from it

#15
Front (Question)

what makes a tree an ordered binary tree

Back (Answer)

each item on the left or a node should be lower than the value in that node