Search Header Logo

Unit 4 Vocabulary

Authored by Jason King

others

Used 1+ times

Unit 4 Vocabulary
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Body of a Loop

A loop that never ends.
Used to loop through all the elements of a collection (like a list or an array) and each time through the loop set a variable to the next item from the collection
The single statement or a block of statements that can be repeated (a loop may not execute at all if the condition is false to start with). In Java the body of the loop is either the first statement following a while or for loop is the body of the loop or a block of statements enclosed in { and }.
used to print the value of the variable. This is useful in tracing the execution of code and when debugging.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For Loop

Used to loop through all the elements of a collection (like a list or an array) and each time through the loop set a variable to the next item from the collection
A loop that has a header with 3 optional parts: initialization, condition, and change. It does the initialization one time before the body of the loop executes, executes the body of the loop if the condition is true, and executes the change after the body of the loop executes before checking the condition again.
used to start a while loop
used to print the value of the variable. This is useful in tracing the execution of code and when debugging.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For Each Loop

Used to loop through all the elements of a collection (like a list or an array) and each time through the loop set a variable to the next item from the collection
One loop inside of another.
A loop that never ends.
used to start a for loop or a for each loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Infinite Loop

used to start a for loop or a for each loop
One loop inside of another.
A loop that never ends.
used to start a while loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Loop

A way to repeat one or more statements in a program.
used to print the value of the variable. This is useful in tracing the execution of code and when debugging.
Used to loop through all the elements of a collection (like a list or an array) and each time through the loop set a variable to the next item from the collection
The single statement or a block of statements that can be repeated (a loop may not execute at all if the condition is false to start with). In Java the body of the loop is either the first statement following a while or for loop is the body of the loop or a block of statements enclosed in { and }.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Nested Loop

used to start a while loop
Used to loop through all the elements of a collection (like a list or an array) and each time through the loop set a variable to the next item from the collection
One loop inside of another.
Writing down the values of the variables and how they change each time the body of the loop executes.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Out of Bounds error

A run-time error that occurs when you try to access past the end of a string or list in a loop.
The single statement or a block of statements that can be repeated (a loop may not execute at all if the condition is false to start with). In Java the body of the loop is either the first statement following a while or for loop is the body of the loop or a block of statements enclosed in { and }.
A loop that never ends.
used to start a for loop or a for each loop

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?