Exam 2: Introduction to Java Applications; Inputoutput and Operators

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

Which of the following escape sequences represents a carriage return?

Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
Verified

B

Which of the following statements does not alter the value stored in a memory location?

Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
Verified

A

Which of the following cannot cause a syntax error to be reported by the Java compiler?

Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
Verified

D

method printf requires multiple arguments, the arguments are separated with ________.

(Multiple Choice)
4.9/5
(46)

Programs remember numbers and other data in the computer's memory and access that data through program elements called

(Multiple Choice)
4.8/5
(30)

Which of the following statements is true?

(Multiple Choice)
4.7/5
(44)

Which of the following is not an arithmetic operator?

(Multiple Choice)
4.8/5
(39)

Optional parentheses in expressions are said to be

(Multiple Choice)
4.9/5
(41)

Which of the following statements will print a single line containing "hello there"?

(Multiple Choice)
4.7/5
(40)

Which of the following is the escape character?

(Multiple Choice)
4.9/5
(30)

is the value of result after the following Java statements execute (assume all variables are of type int)? a = 4; B = 12; C = 37; D = 51; Result = d % a * c + a % b + a;

(Multiple Choice)
4.7/5
(28)

________ enables a program to read data from the user.

(Multiple Choice)
4.9/5
(32)

Which of the following is not a valid Java identifier?

(Multiple Choice)
4.8/5
(36)

Given the Java statement int number1 = input.nextInt(); In which input is a Scanner, which of the following occurs if the user does not enter a valid int value?

(Multiple Choice)
4.8/5
(30)

Which of the following statement displays Hello World?

(Multiple Choice)
4.8/5
(26)

Portions of statements that contain calculations are called

(Multiple Choice)
5.0/5
(28)

import declarations must be placed

(Multiple Choice)
4.8/5
(43)

Which command executes the Java class file Welcome.class?

(Multiple Choice)
4.9/5
(34)

Which of the following does not contain a syntax error?

(Multiple Choice)
4.8/5
(35)

will be output after the following Java statements have been executed (assume all variables are of type int)? a = 4; B = 12; C = 37; D = 51; If (a < b) { System.out.println("a < b"); } If (a > b) { System.out.println("a > b"); } If (d <= c) { System.out.println("d <= c"); } If (c != d) { System.out.println("c != d"); }

(Multiple Choice)
4.8/5
(31)
Showing 1 - 20 of 33
close modal

Filters

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