Exam 2: Java Fundamentals

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Every Java application program must have

(Multiple Choice)
4.8/5
(29)

In Java, __________ must be declared before they can be used.

(Multiple Choice)
4.8/5
(28)

What would be displayed as a result of executing the following code? int x = 15, y = 20, z = 32; X += 12; Y /= 6; Z -= 14; System.out.println("x = " + x + ", y = " + y + ", z = " + z);

(Multiple Choice)
4.7/5
(35)

To compile a program named First you would use which of the following commands?

(Multiple Choice)
4.9/5
(33)

Variables are classified according to their

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.8/5
(40)

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 Barbarian"); System.out.println("Adelle, the Alligator");

(Multiple Choice)
4.7/5
(29)

A variable's scope is the part of the program that has access to that variable.

(True/False)
4.9/5
(41)

Java is not case sensitive.

(True/False)
4.9/5
(30)

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

(Multiple Choice)
4.7/5
(30)

Which of the following is a named storage location in the computer's memory?

(Multiple Choice)
4.9/5
(44)

To print "Hello, world" on the monitor, which of the following Java statements should be used?

(Multiple Choice)
4.7/5
(37)
Showing 41 - 52 of 52
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)