AP Computer Science Principleseasymcq1 pt

The statement x = x + 1

A.increases the value of x by one
B.is always false
C.sets x to 1
D.decreases x by one

Explanation

Core Concept

The new value uses the old value plus one.

Correct Answer

Aincreases the value of x by one

More Unit 3: Algorithms and Programming practice questions

Try a random question →

Practice more AP Computer Science Principles questions with full explanations

Practice Unit 3: Algorithms and Programming Questions →