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

a) Comments cause the computer to display the text after the // on the screen when the
program executes.
b) All variables must be given a type when they’re declared.
c) Java considers the variables number and NuMbEr to be identical.
d) The remainder operator (%) can be used only with integer operands.
e) The arithmetic operators *, /, %, + and - all have the same level of precedence.
f) The identifier _ (underscore) is valid in Java 9.


a) False. Comments do not cause any action to be performed when the program exe- cutes. They’re used to document programs and improve their readability.
b) True.
c) False. Java is case sensitive, so these variables are distinct.
d) False. The remainder operator can also be used with noninteger operands in Java.
e) False. The operators *, / and % have higher precedence than operators + and -.
f) False. As of Java 9, _ (underscore) by itself is no longer a valid identifier.

Computer Science & Information Technology

You might also like to view...

A Java class can have which of the following methods?

A. void foo(int a) B. void foo(int a, int b) C. void foo(double a) D. void foo(double a, double b) E. void foo(int b) a. All of the above. b. A, B, D, E. c. A, B, C, D. d. A, C, D, E.

Computer Science & Information Technology

Which storage size can hold approximately one billion bytes?

A) byte B) megabyte C) gigabyte D) kilobyte

Computer Science & Information Technology

Before an installation of an Oracle database server, administrators need to verify the hardware, software, and ____ compatibility on which the Oracle Server will be running.

A. browser B. language C. memory D. network

Computer Science & Information Technology

What smartphone feature allows a user to turn her phone to change from portrait view to landscape view when she is watching a video?

A. Accelerometer B. Wi-Fi connection C. Internet browser D. GPS

Computer Science & Information Technology