Programming-Chapter 3(2) Flashcards
Processing data
Formatting
Displaying text in a convenient way
String Format
O means there is a single number to be formatted
D means the number must be formatted as an int
F2 means floating point formatting with two digits after the decimal point
C means currency
P is percentage
Exception
Is an unexpected error that happens while a program is running
Overflow
Occurs when a number is too large or too small to be accommodated
Example of an exception that can occur
Exception handler
Handles exceptions so that a program does not crash
Instance variable
Is a variable that is declared at class level(outside of all methods)
Private key
Panel vs GroupBox
Panel cannot display a title
A panels border can be specified by its border style property but a group box cannot be
What do debuggers allow you to do
Pause a program
Execute statements one at a time
Examine variable contents and property values
Logic error
A mistake that causes a running program to produce incorrect results(difficult to find)
Autos window
Displays a list of the variables, their types and values in and near the current statement
Locals window
Displays a list of the variables, their types and values in the current method
Watch window
Allows you to add names of the variables you want to watch