Exam 4: Fundamental Data Types

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

Which statement about number literals in Java is false?

(Multiple Choice)
4.9/5
(41)

What is the value of the following expression? -18 % 5

(Multiple Choice)
4.9/5
(31)

What is the upper limit on the size of an integer represented by the BigInteger object in Java?

(Multiple Choice)
4.8/5
(42)

Which of the following statements with comments is(are) valid? Which of the following statements with comments is(are) valid?

(Multiple Choice)
4.9/5
(40)

Given the definition final double PI = 3.14159; which of the following is the Java equivalent of the mathematical expression Given the definition final double PI = 3.14159; which of the following is the Java equivalent of the mathematical expression    A)c = PI * (radius * 2); B)c = PI * Math.pow(2, radius); C)c = PI * Math.pow(radius, 2); D)c = Math.pow(PI * radius, 2); A)c = PI * (radius * 2); B)c = PI * Math.pow(2, radius); C)c = PI * Math.pow(radius, 2); D)c = Math.pow(PI * radius, 2);

(Not Answered)
This question doesn't have any answer yet
Ask our community

Assuming that the user inputs a value of 25000 for the pay and 10 for the bonus rate in the following code snippet, what is the output? Assuming that the user inputs a value of 25000 for the pay and 10 for the bonus rate in the following code snippet, what is the output?

(Multiple Choice)
5.0/5
(39)

The typical ranges for integers may seem strange but are derived from

(Multiple Choice)
4.8/5
(46)

Assuming price contains the value 20.0, which of the following statements displays price =20.00

(Multiple Choice)
4.9/5
(38)

Which one of the following statements displays the output as 54321.00?

(Multiple Choice)
4.8/5
(39)

Which one of the following statements gives the absolute value of the floating-point number x = -25.50?

(Multiple Choice)
4.8/5
(31)

Which one of the following variables is assigned with valid literals?

(Multiple Choice)
4.8/5
(34)

Which one of the following statements displays the output as -1.23e+02?

(Multiple Choice)
4.9/5
(33)

Which one of the following statements displays the output as +000321.00?

(Multiple Choice)
4.8/5
(39)

The assignment operator

(Multiple Choice)
4.8/5
(41)

Which statement is true?

(Multiple Choice)
5.0/5
(38)

Which one of the following statements defines a constant with the value 123?

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.9/5
(29)

Which one of the following expressions can be used to extract the last five characters from any string variable str?

(Multiple Choice)
4.9/5
(35)

What are the values of num1 and num2 after this snippet executes? What are the values of num1 and num2 after this snippet executes?

(Multiple Choice)
4.9/5
(43)

Which of the given System.out.print statements generates the following output? ABCDE"\

(Multiple Choice)
4.8/5
(34)
Showing 41 - 60 of 124
close modal

Filters

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