CAP 6 Reflection

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:29 PM on 9/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

Make <h1> have red text in CSS

h1 {

color: red;

}

2
New cards

Make <h1> have a black background in CSS

h1 {

background-color: black;

}

3
New cards

Tree data structure characteristics

Hierarchical structure

Not directed

Data stored in nodes

Nodes are linked by branches/edges

Has a root node

Each node can have child nodes beneath it

It has nodes without any nodes beneath (leaf nodes)

It has no cycles/loops

4
New cards

How is a leaf node deleted from a binary search tree?

Search tree until target node is found

Set parent node pointer to NULL

Memory is then freed via garbage collection

5
New cards

How is a value searched for in a binary search tree?

  1. Check if root node equals value

  2. If yes, return value

  3. If value less than root, take left subtree

  4. If value more than root, take right subtree

  5. Repeat process with the subtree until either the value is found or no more branches can be travelled


6
New cards

When is the root node searched in post-order traversal?

Last

7
New cards

When is the root node searched in pre-order traversal?

First

8
New cards

When is the root node searched in in-order traversal?

Somewhere near the middle

9
New cards

HTML for submit button in form

<input type=”submit”>

10
New cards

Class example (pseudocode)

class video

private name

private views

private stars


public procedure new(nameInput)

name = nameInput

views = 0

stars = 3

endprocedure

endclass

11
New cards

How do you declare the constructor method in Pseudocode?

public procedure new(var1input, var2input)

12
New cards

Procedures vs Functions

Procedures: Do not return a value, only perform a specific task

Functions: Manipulates data and returns values

13
New cards

Delete record in SQL

DELETE FROM Table

WHERE Column = “Value”

14
New cards

What should you do after normalising a binary number?

Explicitly state that the binary point has moved 4 places left

15
New cards

1NF requirements

All values must be atomic (cannot have multiple values in one record)

No repeated attributes

Identified primary key

Each attribute name is unique

16
New cards

2NF requirements

Must be in 1NF

Must contain no partial dependencies (Every non-key must depend on the entire primary key)

17
New cards

3NF requirements

Must be in 2NF

Must contain no transitive dependencies (non-keys cannot depend on other non-keys)

18
New cards

Address Bus

Transmits the memory address

1-way

19
New cards

Data bus

Transmits data/instructions between CPU and main memory

2-way

20
New cards

Control bus

Transmits control signals to control/coordinate CPU operations

2-way