Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

To compile a program named, First, use the following command

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

java-source 1.5 First.java

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

javac-source 1.5 First

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

javac First.java

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

compile First.javac

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

2)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A Java program must have at least one

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Class definition

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Variable

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Comment

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

System.out.println(); statement

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

3)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

All Java lines of code end with semicolons.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

True

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis


1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

False

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

4)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The ______is normally considered the standard output and standard input devices, and usually refer to the monitor and keyboard.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

CRT

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

CPU

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

secondary storage devices

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

console

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

5)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

If the following Java statements are executed, what will be displayed?

System.out.println("The top three winners are\n");

System.out.print("Jody, the Giant\n");

System.out.print("Buffy, the Dwarf");

System.out.println("Adelle, the Albino");

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The top three winners are

Jody, the Giant

Buffy, the Dwarf

Adelle, the Albino

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The top three winners are

Jody, the Giant\nBuffy, the DwarfAdelle, the Albino

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The top three winners are Jody, the Giant\nBuffy, the DwarfAdelle, and the Albino

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The top three winners are

Jody, the Giant

Buffy, the DwarfAdelle, the Albino

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

6)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A(n) ______is a value that is written into the code of a program.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

literal

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

assignment statement

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

variable

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

operator

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis


7)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

What would be printed out as a result of the following code?

System.out.println("The quick brown fox"

+ "jumped over the \n"

"slow moving hen.");

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The quick brown fox jumped over the \nslow moving hen.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The quick brown fox jumped over the

slow moving hen.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The quick brown fox

jumped over the

slow moving hen.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Nothing. This is an error.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

8)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Which of the following is not a rule that must be followed when naming identifiers?

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The first character must be one of the letters a-z, A-Z, and underscore or a dollar sign.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Identifiers can contain spaces.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Uppercase and lowercase characters are distinct.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

After the first character, you may use the letters a-z, A-Z, the underscore, a dollar sign, or digits 0-9.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

9)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Although the dollar sign, $, is a legal identifier character, you should not use it because it is normally used for special purposes.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis


1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

True

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

False

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

10)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Which of the following is not a primitive data type?

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

short

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

long

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

float

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

String

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

11)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Which of the following is valid?

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

float y;

y = 54.9;

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

float y;

double z;

z = 934.21;

y = z;

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

float w;

w = 1.0f;

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

double v;

v = 1.0f;

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

12)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Assuming that pay has been declared a double, double pay, the following statement is valid.

pay = 2,583.44;

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

True

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis


1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

False

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis


13)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The boolean data type may contain values in the following range of values

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

True/False

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

-128 to +127

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

-2,147,483,648 to +2,147,483,647

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

-32,768 to +32,767

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

14)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Character literals are enclosed in ______; string literals are enclosed in ______.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

single quotes; single quotes

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

double quotes; double quotes

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

single quotes; double quotes

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

double quotes; single quotes

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

15)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

What is the result of the following statement?

10 + 5 * 3 - 20

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

-5

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

5

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

25

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

-50

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

16)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

What is the result of the following statement?

25/4 + 4 * 10 % 3

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

19

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

5.25

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

3

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

7

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

17)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Which of the following will correctly convert the data type, if x is an integer and y is a double?

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = <int>y;

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = int y;

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = (int)y;

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = y;

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

18)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

What will be displayed as a result of executing the following code?

int x = 5, y = 20;

x *= y;

y% =x;

System.out.println("x = " + x + ", y = " + y);

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = 5, y = 20

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = 25, y = 4

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = 100, y = 0

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = 100, y = 20

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

19)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Named constants are initialized with a value, that value cannot be changed during the execution of the program.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis


1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

True

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

False

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis


20)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

What will be the displayed when the following code is executed?

final int x = 22, y = 4;

y + = x;

System.out.println("x = " + x + ", y = " + y);

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = 22, y = 4

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = 22, y = 26

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

x = 22, y = 88

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Nothing, this is an error

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

21)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

In the following Java statement what is the value of the variable, name?

String name = "John Doe";

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

John Doe

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The memory address where "John Doe" is located

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

name

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

D)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

The memory address where name is located

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

Answer:

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

22)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

What will be displayed as a result of executing the following code?

int x = 6;

String msg = "I am enjoying this class.";

String msg1 = msg.toUpperCase();

String msg2 = msg.toLowerCase();

char ltr = msg.charAt(x);

int strSize = msg.length();

System.out.println(msg);

System.out.println(msg1);

System.out.println(msg2);

System.out.println("Character at index x = " + ltr);

System.out.println("msg has " + strSize + "characters.");

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

A)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

I am enjoying this class.

I AM ENJOYING THIS CLASS.

i am enjoying this class.

Character at index x = e

msg has 24 characters.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

B)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

I am enjoying this class.

I AM ENJOYING THIS CLASS.

i am enjoying this class.

Character at index x = e

msg has 25 characters.

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis

C)

1

Full file at http://testbank360.eu/test-bank-starting-out-with-java-1st-edition-gaddis