CIS150 C# Ch 3 Core C# Programming Constructs, Part 1

CIS150 C# Ch 3 Core C# Programming Constructs, Part 1

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

automatic garbage collection

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (51)

Section 1

(50 cards)

automatic garbage collection

Front

when a variable is out of scope, its space is automatically released back to the operating system for reuse

Back

empty bodied loop

Front

a loop that has no statements; can be created by placing a semicolon on the end of the conditional expression

Back

simple sequence

Front

one of the three basic constructs where execution begins with the first statement and continues sequentially one statement after the next until the end of the method is encountered

Back

two-way if statement

Front

an if statement that includes an else statement

Back

iteration

Front

one of the three basic constructs that enables you to write instructions that can be repeated

Back

short-circuiting logical operators

Front

operators (&&, ||) that enable doing as little as is needed to produce the final result through short-circuit evaluation

Back

loop condition

Front

logical condition to be tested that appears in the conditional expression of a loop

Back

if selection statement

Front

used in combination with a conditional expression to facilitate specifying alternate paths based on the result of the conditional expression

Back

sentinel-controlled loop

Front

loop used for inputting data when the exact number of values to be entered is not known; when the loop should terminate, an extreme or dummy value is entered; also called indefinite loop

Back

logical operators

Front

used to combine conditional expressions (&&, ||)

Back

right-associative

Front

operations are performed from right to left

Back

loop control variable

Front

variable simulating a counter used in a counter-controlled loop to keep track of the number of iterations

Back

short-circuit evaluation

Front

stopping the evaluation as soon as the value of the entire expression is known

Back

overloaded operators

Front

operators defined to perform differently based on their operands

Back

lining up

Front

for matching elses with if statements, the else goes with the closest previous if that does not have its own else

Back

nested if...else statement

Front

when you place an if statement inside another if statement

Back

precedence of the operators

Front

the order in which the individual operators are evaluated

Back

relational operators

Front

operators used to test variables to see if one is greater or less than another variable or value (>,<, >=, <=)

Back

test condition

Front

an expression enclosed inside parentheses that produces a Boolean result

Back

event-driven model

Front

repetition is handled in Windows and Web applications using this model; once the program is launched, the interaction between the user and the GUI is handled by responding to events

Back

counter-controlled loop

Front

loop that uses a variable simulating a counter to keep track of the number of iterations

Back

switch statement

Front

multiple selection structure; also called case statement

Back

assignment operator

Front

single equal symbol (=)

Back

conditional operator

Front

provides another way to express a simple if...else selection statement (?

Back

one-way selection statement

Front

an if statement without an else

Back

ternary operator

Front

provides another way to express a simple if...else selection statement (?

Back

NOT equal

Front

relational operator denoted by combining exclamation point and equal symbol without a space (!=)

Back

state-controlled loop

Front

loop used when the exact number iterations is not known; loops stop when a certain state is reached—value of a variable changed; also called a flag-controlled loop

Back

iteration

Front

structure that enables you to identify and block together one or more statements to be repeated based on a predetermined condition; also called repetition

Back

case statement

Front

multiple selection structure; also called switch statement

Back

array

Front

data structure that allows multiple values to be stored under a single identifier

Back

fall through

Front

executing code from more than one case

Back

logical negation operator

Front

operator (!) that negates its operand; also called the NOT operator

Back

null (empty) statement body

Front

placing a semicolon onto the end of the conditional expression

Back

pretest loop

Front

loop where the conditional expression is tested before any of the statements in the body of the loop are performed

Back

equality operator

Front

two equal symbols together (==)

Back

NOT operator

Front

operator (!) that negates its operand; also called the logical negation operator

Back

flag-controlled loop

Front

loop used when the exact number of iterations is not known; loops stop when a certain state is reached—value of a variable changed; also called a state-controlled loop

Back

jump statement

Front

statement used to transfer control to a different portion in the program; examples include the break statements used with switch statements

Back

selector

Front

the expression used with the switch statement to determine which case should be executed

Back

repetition

Front

structure that enables you to identify and block together one or more statements to be repeated based on a predetermined condition; also called iteration

Back

indefinite loop

Front

loop used for inputting data when the exact number of values to be entered is not known; when the loop should terminate, an extreme or dummy value is entered

Back

selection statement

Front

one of the three basic constructs used for decision making that allows you to deviate from the sequential path

Back

the test

Front

an expression enclosed inside parentheses that produces a Boolean result

Back

conditional expression

Front

an expression enclosed inside parentheses that produces a Boolean result

Back

off-by-one error

Front

executing the loop one too many or one too few times

Back

left-associative

Front

operations are performed from left to right

Back

prime the read

Front

input a value before going into the body of the loop

Back

basic programming constructs

Front

three basic general purpose categories of programming statements that include simple sequence, selection, and iteration

Back

infinite loop

Front

loop that has no provisions for termination

Back

Section 2

(1 card)

sentinel value

Front

an extreme or dummy value used with a sentinel-controlled loop

Back