Exam 2: Introduction to Java Applications

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

Which of the following statements is false?

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

D

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

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

A

Which of the following is a variable declaration statement?

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

A

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

(Multiple Choice)
4.9/5
(33)

Which of the following is not an arithmetic operator?

(Multiple Choice)
4.9/5
(42)

Which of the following is not a compilation error?

(Multiple Choice)
4.8/5
(36)

Portions of statements that contain calculations are called

(Multiple Choice)
4.7/5
(43)

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

(Multiple Choice)
4.9/5
(44)

Which of the following statement displays Hello World?

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
4.7/5
(42)

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

(Multiple Choice)
4.9/5
(38)

Which of the following statements is true?

(Multiple Choice)
4.7/5
(44)

All import declarations must be placed

(Multiple Choice)
4.8/5
(24)

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

(Multiple Choice)
4.7/5
(35)

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

(Multiple Choice)
4.9/5
(35)

The filename for the public class that begins with public class Addition must be

(Multiple Choice)
4.8/5
(43)

Which command executes the Java class file Welcome.class?

(Multiple Choice)
4.8/5
(35)

Which of the following does not contain a syntax error?

(Multiple Choice)
4.7/5
(37)

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)
5.0/5
(37)

Which of the following is not a Java primitive type?

(Multiple Choice)
5.0/5
(37)
Showing 1 - 20 of 34
close modal

Filters

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