Introduction to the For Loop Answers

11 verified answers1 views
4

In Java code, what means doing something more than one time?

A
to continue
B
to decrement
C
to increment
D
to iterate
6

In Java code, what is used to increase by 1?

A
unary operator
B
for loop
C
increment
D
iterate
7

What is the difference between using “x++” and “x==” in a Java program?

A
The first increments the value of x; the second compares x to a value.
B
The first increments the value of x; the second assigns a value to x.
C
The first compares x to a value; the second increments the value of x.
D
The first decreases the value of x; the second assigns a value to x.
8

Which of the following is the correct syntax to begin a for loop?

A
system (int x=1 ; x<=5; x++) loop
B
loop (int x=1 ; x<=5; x++) do
C
for (int x=1 ; x<=5; x++);
D
while (int x=1 ; x<=5; x++)
10

When is a for loop used in a Java program?

A
when you already know how many times to perform an action
B
when you want to define the name of an action
C
when you do not know how many times to perform an action
D
when you want to test how many times to perform an action
11

Match each word to its correct meaning.

Answer not available

Did you find these answers helpful?

Introduction to the For Loop Answers — ASC…