PROLOGI LE2

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

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:40 AM on 3/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

39 Terms

1
New cards

Decision Structure (Selection Structure)

allows a program to perform actions only under certain conditions.

2
New cards

Control Structure

a logical design that controls the order in which a set of statements executes

3
New cards

If condition Then

statement

statement

etc.

End If

How do you write a decision structure in pseudocode?

4
New cards

George Boole

which are Boolean expressions named after?

5
New cards

Relational Operator (<, >, etc.)

determines whether a specific relationship exists between two values.

6
New cards

Dual alternative decision structure

This structure will execute one group of statements if its Boolean expression is true, or another group if its Boolean expression is false.

7
New cards

Single alternative decision structure

This structure only provides one alternative path of execution.

8
New cards

Nested (Nested Decision Structures)

To test more than one condition, a decision structure can be ___________ another decision structure.

9
New cards

Case Structure

This structure lets the value of a variable or an expression determine which path of execution the program will take.

10
New cards

Multiple Alternative Decision Structure

What type of decision structure is a case structure?

11
New cards

Case Structure

This structure allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute.

12
New cards

AND, OR logical operators

These logical operators allow you to connect multiple Boolean expressions to create a compound expression.

13
New cards

Logical Operators

can be used to create complex Boolean expressions.

14
New cards

NOT operator

This logical operator reverses the truth of a Boolean expression.

15
New cards

Boolean variable

This type of variable can hold one of two values: true or false.

16
New cards

flags

Boolean variables are commonly used as _____, which indicate whether specific conditions exist.

17
New cards

Flag

is a variable that signals when some condition exists in the program.

18
New cards

Repetition Structure

This structure causes a statement or set of statements to execute repeatedly.

19
New cards

- Condition-controlled loop

- Count-controlled loop

Two categories of loops:

20
New cards

Condition-controlled loop

This loop uses a true/false condition to control the number of times that it repeats.

21
New cards

Count-controlled loop

this loop repeats a specific number of § times.

22
New cards

While and Do-While loops

These loops cause a statement or set of statements to repeat as long as a condition is true.

23
New cards

Do-until loop

This loop causes a statement or set of statements to repeat until a condition is true.

24
New cards

Boolean expression (its condition is)

what expression is a while loop?

25
New cards

Body of the loop

these are the statements that appear on the lines between the While and the End While clauses

26
New cards

Infinite Loop

continues to repeat until the program is interrupted.

- usually occur when the programmer forgets to write code inside the loop that makes the test condition false.

27
New cards

Do-while loop

This loop performs an iteration before testing its condition.

28
New cards

Do-until loop

iterates until a condition is true

- a loop that iterates as long as a condition is false, and then stops when the condition becomes true.

29
New cards

Count-controlled loop

This loop iterates a specific number of times. Although you can write the logic of a condition controlled loop so it iterates a specific number of times

30
New cards

For loop

most languages provide a loop known as the ____ loop, which is specifically designed as a count-controlled loop.

31
New cards

counter

A count-controlled loop uses a variable known as a __________ variable, or simply ___________, to store the number of iterations that it has performed.

32
New cards

counterVariable

is the name of a variable that is used as a counter

33
New cards

startingValue

is the value that the counter will be initially set to

34
New cards

maxValue

is the maximum value that the counter can contain.

35
New cards

step amount

The amount by which the counter variable is incremented in a For loop is known as the?

36
New cards

Sentinel

is a special value that marks the end of a list of values. When a program reads the sentinel value, it knows it has reached the end of the list, so the loop terminates.

37
New cards

Nested Loop

A loop that is inside another loop is called?

38
New cards

Running Total

is a sum of numbers that accumulates with each iteration of a loop

39
New cards

Accumulator

the variable used to keep the running total is called an?

Explore top notes

note
Ammine
Updated 354d ago
0.0(0)
note
Vergil, Aeneid, Book 1 (AP)
Updated 433d ago
0.0(0)
note
week 1
Updated 779d ago
0.0(0)
note
HAP 355 Midterm
Updated 693d ago
0.0(0)
note
Ammine
Updated 354d ago
0.0(0)
note
Vergil, Aeneid, Book 1 (AP)
Updated 433d ago
0.0(0)
note
week 1
Updated 779d ago
0.0(0)
note
HAP 355 Midterm
Updated 693d ago
0.0(0)

Explore top flashcards

flashcards
Roots List 13
25
Updated 157d ago
0.0(0)
flashcards
science 8 finals :scream:
105
Updated 1023d ago
0.0(0)
flashcards
List A page 3
33
Updated 1230d ago
0.0(0)
flashcards
Unit 2 vocab 62-106
46
Updated 509d ago
0.0(0)
flashcards
Latin Chapter 20
22
Updated 1077d ago
0.0(0)
flashcards
AP Calc Mem Quiz (1-3)
122
Updated 39d ago
0.0(0)
flashcards
Othello Test
63
Updated 1067d ago
0.0(0)
flashcards
Unit 1: The Chemistry of Life
50
Updated 428d ago
0.0(0)
flashcards
Roots List 13
25
Updated 157d ago
0.0(0)
flashcards
science 8 finals :scream:
105
Updated 1023d ago
0.0(0)
flashcards
List A page 3
33
Updated 1230d ago
0.0(0)
flashcards
Unit 2 vocab 62-106
46
Updated 509d ago
0.0(0)
flashcards
Latin Chapter 20
22
Updated 1077d ago
0.0(0)
flashcards
AP Calc Mem Quiz (1-3)
122
Updated 39d ago
0.0(0)
flashcards
Othello Test
63
Updated 1067d ago
0.0(0)
flashcards
Unit 1: The Chemistry of Life
50
Updated 428d ago
0.0(0)