Exam 4: Fundamental Data Types

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

Which one of the following statements can be used to extract the last 10 characters from the string variable str?

(Multiple Choice)
4.8/5
(34)

What is wrong with the following code? int count = 2000 * 3000 * 4000;

(Multiple Choice)
4.7/5
(34)

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

(Multiple Choice)
4.8/5
(36)

What will be printed by the statements below? What will be printed by the statements below?

(Multiple Choice)
4.9/5
(38)

What is result of evaluating the following expression? What is result of evaluating the following expression?

(Multiple Choice)
4.9/5
(28)

Which of the following statements will assign the largest value of three integer variables a, b, and c to the integer variable maximum?

(Multiple Choice)
4.7/5
(31)

What is the value of the following expression? 1 % 12

(Multiple Choice)
4.9/5
(35)

What will be printed by the statements below? What will be printed by the statements below?

(Multiple Choice)
4.9/5
(34)

What (if any) type of error occurs with the following code if the user input is ABC? What (if any) type of error occurs with the following code if the user input is ABC?

(Multiple Choice)
4.8/5
(40)

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

(Multiple Choice)
4.7/5
(40)

What output is produced by these statements? What output is produced by these statements?

(Multiple Choice)
4.8/5
(42)

What is the output of the following code snippet? final String str = "Java"; str += " is powerful"; System.out.println(str);

(Multiple Choice)
4.9/5
(31)

Which of the following guidelines will make code more explanatory for others?

(Multiple Choice)
4.9/5
(41)

Which of the following statements places input into the variable value given this line of code? Scanner in = new Scanner(System.in);

(Multiple Choice)
4.9/5
(33)

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

(Multiple Choice)
4.8/5
(35)

What is the output of the following code snippet? System.out.printf("%5.3f", 20.0);

(Multiple Choice)
4.8/5
(35)

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

(Multiple Choice)
4.7/5
(32)

Which operator is used to concatenate two or more strings?

(Multiple Choice)
4.8/5
(36)

What will be the value of the variables a and b after the given set of assignments? What will be the value of the variables a and b after the given set of assignments?

(Multiple Choice)
4.9/5
(34)

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

(Multiple Choice)
4.9/5
(45)
Showing 81 - 100 of 124
close modal

Filters

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