Exam 4: Fundamental Data Types

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

What is the value of Math.pow(3, 2)?

(Multiple Choice)
4.9/5
(31)

What is the value of the following expression? 3 * 5 / 2 * 5

(Multiple Choice)
4.8/5
(38)

Which one of the following refers to a number constant that appears in code without explanation?

(Multiple Choice)
4.8/5
(37)

Which is the Java equivalent of the following mathematical expression? Which is the Java equivalent of the following mathematical expression?

(Multiple Choice)
4.9/5
(35)

What is wrong with the following code snippet? What is wrong with the following code snippet?

(Multiple Choice)
4.8/5
(33)

Which of the following options defines an integer variable?

(Multiple Choice)
4.8/5
(44)

What is the result of the following code snippet? What is the result of the following code snippet?

(Multiple Choice)
4.8/5
(39)

What is the value of the value variable at the end of the given code snippet? What is the value of the value variable at the end of the given code snippet?

(Multiple Choice)
4.9/5
(35)

In an airline reservation system, the number of available seats in an airplane is required.Which data type should be used to store this value?

(Multiple Choice)
4.8/5
(22)

What is the output of the following code snippet? What is the output of the following code snippet?

(Multiple Choice)
4.9/5
(38)

What is the output of the following code snippet? What is the output of the following code snippet?

(Multiple Choice)
5.0/5
(44)

Why is the double type not appropriate for financial calculations?

(Multiple Choice)
4.8/5
(38)

What is the value of the var variable at the end of the given code snippet? What is the value of the var variable at the end of the given code snippet?

(Multiple Choice)
4.8/5
(36)

Consider the following division statements: I.22 / 7 II.22.0 / 7 III.22 / 7.0 Which of the following is correct?

(Multiple Choice)
4.7/5
(28)

The first step in problem solving is

(Multiple Choice)
4.8/5
(41)

Assume the following variables have been declared and given values as shown: int i = 2345; double m = 67.8; Which statement will give the output below? Values are 2345 and 67.80

(Multiple Choice)
4.8/5
(37)

Which of the given statements generates the following output? \\\"///

(Multiple Choice)
4.8/5
(37)

Which of the following statements about constants in Java are true? I.Although not required, constants are commonly named using uppercase letters II.Only integer values can appear as constants III.A variable can be defined with an initial value, but the reserved word final prevents it from being changed IV.A named constant makes computations that use it clearer

(Multiple Choice)
4.8/5
(41)

What is the output of the following code snippet? What is the output of the following code snippet?

(Multiple Choice)
4.9/5
(37)

What is the output of the following code snippet? What is the output of the following code snippet?

(Multiple Choice)
4.9/5
(43)
Showing 21 - 40 of 124
close modal

Filters

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