Which of the following statements increments the intNum variable's value by 2?

A. intNum = intNum - 2
B. intNum -= 2
C. intNum += 2
D. intNum ++ 2


Answer: C

Computer Science & Information Technology

You might also like to view...

The __________ function returns a string that is part of another string.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What is the value of x after the following code executes?

int x; x = 3 / static_cast(4.5 + 6.4); a. 0.3 b. 0 c. 0.275229 d. 3.3 e. None of these

Computer Science & Information Technology

The use of SaaS to deliver applications over the Internet is sometimes referred to as web apps

Indicate whether the statement is true or false

Computer Science & Information Technology

You can save a document to ________, which is Word's Web-based storage site

A) DropBox B) OneDrive C) Google drive D) iCloud

Computer Science & Information Technology