Exam 2: Introduction to Java Applications

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

Which of the following is the escape character?

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

B

Which of the following is not a valid Java identifier?

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

A

Which command executes the Java class file Welcome.class?

Free
(Multiple Choice)
5.0/5
(26)
Correct Answer:
Verified

C

A(n)________ enables a program to read data from the user.

(Multiple Choice)
4.8/5
(29)

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

(Multiple Choice)
5.0/5
(42)

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

(Multiple Choice)
4.9/5
(35)

Given the Java statement Sum = number1 + number2; Which of the following statements is false?

(Multiple Choice)
4.9/5
(33)

What 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
(28)

The format specifier ________ is a placeholder for an int value.

(Multiple Choice)
4.8/5
(42)

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

(Multiple Choice)
4.9/5
(20)

Which is the output of the following statements? System.out.print( "Hello "); System.out.println( "World" );

(Multiple Choice)
4.9/5
(38)

Each of the following is a relational or equality operator except:

(Multiple Choice)
4.9/5
(38)

Which command compiles the Java source code file Welcome.java?

(Multiple Choice)
4.8/5
(34)

What 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.8/5
(33)

Which of the following statement displays Hello World?

(Multiple Choice)
4.9/5
(27)

End-of-line comments that should be ignored by the compiler are denoted using

(Multiple Choice)
4.8/5
(37)

Java's predefined classes are grouped into

(Multiple Choice)
4.8/5
(34)

Portions of statements that contain calculations are called

(Multiple Choice)
4.9/5
(31)

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

(Multiple Choice)
4.8/5
(29)

Which of the following statements is false?

(Multiple Choice)
4.7/5
(39)
Showing 1 - 20 of 34
close modal

Filters

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