?Given the following code, what is the final value of the variable gpa?
?
int gpa; 
int numclasses = 3;
int class1 = 4;
int class2 = 2;
int class3 = 3;
gpa = (class1 + class2 + class3)/numclasses;
?

A. ?3.0
B. ?1.0
C. ?2.5
D. ?3.5


Answer: A

Computer Science & Information Technology

You might also like to view...

Which of the following buttons should you use to add and remove border lines inside vertical lines?

A.
B.
C.
D.

Computer Science & Information Technology

Animation can be accomplished with vector images, but not bitmap images.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Because submacros cannot be executed from the ________, you can make the process easier by assigning keys to each submacro so that reports can be printed simply by pressing keys on the keyboard

A) Macro Tools Design tab B) navigation form C) Navigation Pane D) Action Catalog

Computer Science & Information Technology

To open the “Command Prompt” window, open the “____________________” folder, point to “Command Prompt” and click on it.

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

Computer Science & Information Technology