Exam 2: Java Fundamentals

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

Which of the following is not a primitive data type?

(Multiple Choice)
4.8/5
(33)

The primitive data types only allow a(n)_____ to hold a single value.

(Multiple Choice)
4.8/5
(34)

This is a named storage location in the computer's memory.

(Multiple Choice)
4.9/5
(43)

Variables are classified according to their

(Multiple Choice)
4.8/5
(42)

What will be displayed after the following statements have been executed? 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.9/5
(33)

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);

(Multiple Choice)
4.7/5
(40)

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

(Multiple Choice)
4.9/5
(37)

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

(True/False)
4.9/5
(39)

To display the output on the next line,you can use the println method or use this escape sequence in the print method.

(Multiple Choice)
4.7/5
(30)

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

(True/False)
4.8/5
(34)

What is the result of the following expression? 25 - 7 * 3 + 12 / 3

(Multiple Choice)
4.8/5
(27)

Class names and key words are examples of variables.

(True/False)
4.8/5
(29)

This is a variable whose content is read only and cannot be changed during the program's execution.

(Multiple Choice)
4.7/5
(34)
Showing 41 - 53 of 53
close modal

Filters

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