Lecture 11 Flashcards
What is a root?
The top in a tree or hierarchical structure.
What is the branching ratio?
The average number of children to parent nodes
What are leaf nodes?
Nodes without any children
What is a debugger?
A debugger is a tool that makes debugging easier.
A debugger is typically part of an IDE
What is debug mode?
The mode a program needs to be coded in to use the debugger.
What is release mode?
The mode a program is typically compiled into when debugging is done.
What is the continue button?
A button that allows you to run the code until the next break
What are the five debugging tools that are used 90% of the time?
- Break points
- Step over
- Step into
- Operations
- Variable values
What are break points?
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.
What is step over?
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.
What is step into?
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.
What are variable values?
They allow you to see the values of the variables at a point in the code.
What is top down design in coding?
Breaking the code into smaller and smaller steps starting from the big picture and working down.
What is typically used to break down a program in top down design?
A tree
What is the depth of a tree?
The number of levels in a tree.