Unit 4 Lesson 1 While Loops

Unit 4 Lesson 1 While Loops

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Sonia Paulino

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

While Loops

Back

A control flow statement that repeatedly executes a block of code as long as the condition is true.

2.

FLASHCARD QUESTION

Front

Condition

Back

The boolean expression that must evaluate to true for the loop to continue executing. If it evaluates to false, the loop stops.

3.

FLASHCARD QUESTION

Front

Infinite Loops

Back

A loop that never ends; the condition always evaluates to true.

4.

FLASHCARD QUESTION

Front

Loop Body

Back

The block of code inside the loop.

5.

FLASHCARD QUESTION

Front

Iteration

Back

One complete execution of the loop body.

6.

FLASHCARD QUESTION

Front

Variable Scope

Back

Refers to the part of the program where a variable is accessible. Variables declared inside a loop are local to that loop and cannot be accessed outside of it.

7.

FLASHCARD QUESTION

Front

Nested Loops

Back

A loop inside another loop. The inner loop completes all its iterations for each iteration of the outer loop.

8.

FLASHCARD QUESTION

Front

Runtime Error

Back

An error that occurs during the execution of a program, which can cause the program to crash or behave unexpectedly.

9.

FLASHCARD QUESTION

Front

Loop Control Variable

Back

A variable that controls the execution of the loop, typically by changing its value during each iteration of the loop to eventually fail the loop condition.