1/46
A complete set of vocabulary flashcards covering logical expressions, flow control, debugging concepts, errors, and loop structures.
Logical Expression
Compares values and produces a boolean true or false result.
Relational Operator
The comparison symbols (
Flow Control
Refers to the order in which your program executes statements.
If()
Allows you to run a certain block of code if a logical expression evaluates to true.
Body
A block of code marked by opening and closing curly braces.
Else If()
Evaluates other logical expressions when prior if() statements are false.
Else
Keyword that marks a block of code that will run when all earlier if() and else if() expressions are false.
Nested
Code that is entirely contained inside an outer block of code. Both inner and outer blocks may use any mixture of flow-control logic.
Switch()
Allows you to test one variable or expression for many possible matching values.
Case
Represents one possible value of the expression in a switch statement.
Break
Keyword that causes program execution to immediately exit the current loop.
Default
Keyword that marks a block of code in a switch statement that will execute if none of the other cases match the test expression.
Compound Expression
An expression that includes both logical and relational operators.
And
The 'and' operator (&&) returns true if the left and right values are both true.
Or
The 'or' operator (||) returns true if the left or right value is true.
Exclusive Or
The 'exclusive or' operator (^) returns true if the right value is false and the left value is true or vice versa.
Not
The 'not' operator (!) returns true if the right value is false or false if the right value is true.
Operator Precedence
The term which describes the priority order in which operations are carried out within a single expression.
Short Circuiting
Skipping the evaluation of part of a logical expression if that part cannot possibly change the overall result.
Commutative Law
States that any finite sum or product is unaltered by reordering its terms or factors.
Associative Law
States that terms or factors may be grouped in any way without changing the result.
Distributive Law
States that multiplying a number by a group of numbers added together is the same as doing each multiplication separately.
Identity Law
States that if you AND or OR a Boolean value with itself, you will get the original value.
Truth Table
Demonstrates the result of a logical expression for all possible combinations of inputs.
Syntax Error
Happens when the compiler finds one or more invalid lines of code that don't follow the rules of the programming language.
Lexical Error
Happens when you try to use a keyword that is not recognized by the language.
Runtime Error
Behavioral (logical) problems or exceptions that appear when you run a program.
Bug
An error or problem with the execution of a program.
Debugging
The process of finding and fixing errors in your program code.
Code Review
A method to find runtime errors by reading through your code to see if you can spot the problem.
Tracing
A technique for finding runtime errors that use very verbose program output to help you follow your program flow while it is running.
Boundary Conditions
Represent the unusual (but valid) data values you should consider when designing and testing your program.
IDE
Integrated Development Environment is a single software package that allows programmers to design, write, run, and test programs in one application.
Running
When a program is executing at full speed and debugging commands are not available.
In Break
When a program is paused at runtime and the debugger allows you to inspect variables or issue debugging commands.
Breakpoint
A place in the code where you want the debugger to stop and put the program in a break state.
Visual Studio IDE
An IDE created by Microsoft and often used to create C# programs.
Iteration
The act of repeating a block of code multiple times.
Loop
A piece of code that executes the same block of statements more than one time.
For()
A loop that is generally used to execute a set of statements repeatedly when you know the number of loop iterations in advance.
Initialization Statement
A statement that identifies a loop index variable and sets it to some initial value.
Test Expression
A logical expression that compares the value of the loop index variable to some end target or terminal value.
Assignment Statement
A C# statement that uses the equals sign (=) to store a value in a variable.
While()
Used to execute a set of statements while a logical expression is true.
Infinite Loop
Occurs when the program flow is stuck inside a loop and can never reach the exit conditions for that loop.
Do While()
Loop used to execute a set of statements while a condition is true, with the condition tested at the end of the loop.
Continue
A statement that immediately skips the remainder of the statements in a loop body and starts the next loop iteration.