Exam 2: Console Input and Output

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

What is whitespace and why is it import when reading input from the keyboard using the Scanner class?

(Essay)
4.9/5
(42)

Why is echoing user input a good programming practice?

(Essay)
5.0/5
(25)

Write a Java statement to create and initialize a Scanner object named input.

(Essay)
4.7/5
(32)

Write a Java statement to display your name in the console window.

(Essay)
4.8/5
(43)

The Scanner class has a method next that allows an entire line of string text to be read.

(True/False)
4.9/5
(36)

What does it mean to prompt the user?

(Essay)
4.8/5
(36)

The new line character is represented as '\n'.

(True/False)
4.8/5
(41)

Write a complete Java console application that prompts the user for two numbers,multiplies the numbers,and then displays the result to the user.

(Essay)
4.7/5
(34)

Echoing input is good programming practice because it can reveal problems in the input.

(True/False)
4.8/5
(40)
Showing 21 - 29 of 29
close modal

Filters

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