When the declaration int y = 5; is followed by the assignment y += 3.3; the value of y is _______________.

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


8 [Note: You might expect a compilation error on the assignment statement. The Java Language Specification says that compound assignment operators perform an implic- it cast on the right-hand expression’s value to match the type of the variable on the operator’s left side. So the calculated value 5 + 3.3 = 8.3 is actually cast to the int value 8.].

Computer Science & Information Technology

You might also like to view...

A web page consists of ____ sections.

A. two B. three C. four D. six

Computer Science & Information Technology

A ____ is a special effect that changes the look of your image or selection by altering the pixels either via their physical location or via a color change.

a. layer b. channel c. filter d. selection

Computer Science & Information Technology

Critical Thinking QuestionsCase 2-2A new colleague of yours has been eyeing your computer skills with envy, as you seem to know all of the shortcuts. He wants to know what your "secret" is. Which of the following keys do you recommend to your colleague for adding a hanging indent? a. CTRL+Hc. ALT+Hb. CTRL+Td. CTRL+SHIFT+I

What will be an ideal response?

Computer Science & Information Technology

The Background layer is located at the ____________________ of the Layers panel.

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

Computer Science & Information Technology