7
AssignmentMultiple Choice

Introduction to the For Loop

Question 7 • ASC Programming, Games, Apps and Society

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

Answer
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.
Previous
Next