Lecture 11 Flashcards

1
Q

What is a root?

A

The top in a tree or hierarchical structure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the branching ratio?

A

The average number of children to parent nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are leaf nodes?

A

Nodes without any children

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a debugger?

A

A debugger is a tool that makes debugging easier.

A debugger is typically part of an IDE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is debug mode?

A

The mode a program needs to be coded in to use the debugger.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is release mode?

A

The mode a program is typically compiled into when debugging is done.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the continue button?

A

A button that allows you to run the code until the next break

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the five debugging tools that are used 90% of the time?

A
  1. Break points
  2. Step over
  3. Step into
  4. Operations
  5. Variable values
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are break points?

A

A point in a program where the program breaks.

A breakpoint is set in the leftmost column by selecting next to the line where you would like to place the break point. The code will break right before this line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is step over?

A

Step over allows you to go through the code and execute it one line at a time.

A yellow arrow marker will show which line you are on. The step over button can be selected to move to the next line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is step into?

A

Step into allows you to go into a function if it is in that line of command.

You can step out of the function using step out when you are done.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are variable values?

A

They allow you to see the values of the variables at a point in the code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is top down design in coding?

A

Breaking the code into smaller and smaller steps starting from the big picture and working down.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is typically used to break down a program in top down design?

A

A tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the depth of a tree?

A

The number of levels in a tree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the rules of thumb for depth and branching ratio of a tree?

A
  1. Don’t use so many tasks that it is difficult to understand how they relate to the parent node.
  2. The depth should be deep enough that each individual node can be understood by an experienced programmer without them seeing the whole project.
17
Q

Where is top down design used in code?

A

As headers where each level is designated.

18
Q

What is incremental development?

A

Writing code piece by piece (or node by node for top down design) and then testing to make sure it works.

19
Q

What are three good steps to writing a large program?

A
  1. Create a top down design (using a tree)
  2. Build the program incrementally
  3. Use a debugger to determine if things are working properly.