Exam 2: Introduction to Java Applications

arrow

11,309 students have unlocked this exam

  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following is not a compilation error?

Free
(Multiple Choice)
4.7/5
(43)
Correct Answer:
Verified

B

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

Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
Verified

B

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

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

A

Which of the following is not a Java primitive type?

(Multiple Choice)
4.8/5
(32)

Which of the following is not an arithmetic operator?

(Multiple Choice)
4.9/5
(40)

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

(Multiple Choice)
4.9/5
(31)

What is the value of result after the following Java statements execute? int a,b,c,d,result; A = 4; B = 12; C = 37; D = 51; Result = d % a * c + a % b + a;

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(42)

Which of the following escape sequences represents a carriage return?

(Multiple Choice)
4.7/5
(39)

What will be output after the following Java statements have been executed? int a,b,c,d; 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
(32)

Which of the following statement displays Hello World?

(Multiple Choice)
4.9/5
(35)

Which of the following is a variable declaration statement?

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.9/5
(39)

Which of the following does not contain a syntax error?

(Multiple Choice)
4.9/5
(34)

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

(Multiple Choice)
4.7/5
(39)

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

(Multiple Choice)
4.8/5
(34)

Which of the following is the escape character?

(Multiple Choice)
4.9/5
(33)

Which command executes the Java class file Welcome.class?

(Multiple Choice)
4.9/5
(31)

Which of the following statements would display the phase Java is fun?

(Multiple Choice)
4.9/5
(29)

All import declarations must be placed

(Multiple Choice)
4.8/5
(36)
Showing 1 - 20 of 23
close modal

Filters

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