programming exam 2

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

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:30 PM on 10/6/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

Expression

A sequence of operators that reduce or result in a single value

2
New cards

Pre-increment (++x)

Increments the variable x first then evaluates its updated value in the surrounding expression

3
New cards

Post-increment (x++)

Evaluates the current value of x in the expression first the increments

4
New cards

Increment operator

++1

5
New cards

Decrement operator

—1

6
New cards

Selection/branching

The process of directing program execution down different statement paths based on Boolean condition evaluates to true (any none 0 value) or false (0)

7
New cards

Selection

The decision making mechanism. Uses Boolean evaluation (0=false, non-zero=true) to test values

8
New cards

Branching

The code path executed as a result of the decision

9
New cards

Break

A control statement used inside a switch block to immediately exit the construct and prevent “fall-through” execution into subsequent cases

10
New cards

Default

The optional fallback label within a switch statement that executes when none of the explicit case values match the expression

11
New cards

Mathematical hierarchy

(), unary operations(square root/absolute value/ect), */%, +-

12
New cards

Modulo operator

% returns the remainder

Does not use float point integers: reads syntax/completion error

13
New cards

Divide by 0

Runtime error

Division returns the quotient

14
New cards

Boolean condition

Operator used to evaluate is an expression is true (any non-zero number) or false (0)

15
New cards

Multi-way switch statement

Switch(a) {

Case 0:

(…)

Break;

Case 1:

(…)

Break;

Default:

(…)

Break;

}

Used for discrete variables (a finite set)

16
New cards

Multi-way if statement

If(choice == 1) {

(…) }

Else if(choice == 2) {

(…) }

Else {

(…) }

Value ranges

17
New cards

Epsilon

Float-point numbers are equal

==