AP Computer Science A Question of the Day

Test your knowledge with a hand-picked multiple-choice question.

Refer to the following line of code:

double d = -4.73;

Which of the following correctly rounds d to the nearest integer?

Select an answer and click Check.