Test 2 Study Terms (CPE 211)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

26 Terms

1
New cards

Iteration Counter

A variable that is incremented with each iteration of a loop.

2
New cards

Event Counter

A variable that is incremented each time a particular event occurs.

3
New cards

Relational Expression

An expression involving two expressions and a relational operator, such as x > 5.

4
New cards

Switch Expression

The expression whose value determines which switch label is selected.

5
New cards

Function Prototype

A function declaration without the body of the function.

6
New cards

Reference Parameter

A parameter that provides access to the original argument, allowing the function to modify it.

7
New cards

Value Parameter

A parameter that receives a copy of the value of the corresponding argument.

8
New cards

Function Call

A statement or expression that transfers control to a function.

9
New cards

Logical Expression

An expression made up of logical values and operations that evaluates to true or false.

10
New cards

Event-Controlled Loop

A loop that terminates when something happens inside the loop body to signal that it should exit.

11
New cards

Count-Controlled Loop

A loop that executes a specified number of times.

12
New cards

Static Variable

A variable that retains its value between function calls and exists for the entire program execution.

13
New cards

Local Variable

A variable declared within a block and not accessible outside that block.

14
New cards

Lifetime

The period of time during program execution when an identifier has memory allocated to it.

15
New cards

Scope

The region of program code where it is legal to reference or use an identifier.

16
New cards

Local Identifier Precedence

The rule that a local identifier takes precedence over a global identifier with the same name within its scope.

17
New cards

Loop

A control structure that causes a statement or block to be executed repeatedly.

18
New cards

Function Definition

A function declaration that includes the body of the function.

19
New cards

Control Flow

The order in which the computer executes statements in a program.

20
New cards

Control Statement

A statement used to alter the normally sequential flow of control.

21
New cards

How do you do pass-by-value for an integer for variable x?

int x

22
New cards

How do you do pass-by-reference for an integer for variable x?

int& x

23
New cards

A switch expression can be which of the following?

Boolean, char, and integer

24
New cards

A function that returns a function value is known as what kind of function?

Value returning function

25
New cards

Reference parameters are used if a parameter’s data flow is:

Two-way, into and out of the function

26
New cards

Value parameters are used if a parameter’s data flow is:

One-way, into the function