Input Test

By Mickey Arnold
Last updated 10 months ago
25 Questions

Which of the following Scanner methods can be used to read in 65535 ?

Which of the following Scanner methods can be used to read in a line of words?

Which of the following Scanner methods can be used to read in the value “apluscompsciisthebest” ?

Given the following statement, var must be defined as which of the following types?
var=keyboard.nextFloat();

Given the following statement, var must be defined as which of the following types?
var=keyboard.nextLine();

Which of the following Scanner methods can be used to read in a double?

Given the following statement, var must be defined as which of the following types?
var=keyboard.nextLong();

Which of the following Scanner methods can be used to read in a short?

Which of the following is the Java class used for input?

Which of the following is used in the Scanner constructor to connect to the keyboard?

Which of the following Scanner methods can be used to read in a String?

Which of the following Scanner methods can be used to read in an integer?

Which of the following Scanner methods can be used to read in a byte?

Which of the following Scanner methods can be used to read in the value
”apluscompsci is the best” ?

Which of the following would correctly define and instantiate a Scanner?

Which of the following Scanner methods can be used to read in a long?

Given the following statement, var must be defined as which of the following types?
var=keyboard.next();

Which of the following Scanner methods can be used to read in 511.278 ?

Given the following statement, var must be defined as which of the following types?
var=keyboard.nextByte();

Given the following statement, var must be defined as which of the following types?
var=keyboard.nextDouble();

Which of the following Scanner methods can be used to read in 45 ?

Given the following statement, var must be defined as which of the following types?
var=keyboard.nextShort();

Which of the following Scanner methods can be used to read in 32760 ?

Given the following statement, var must be defined as which of the following types?
var=keyboard.nextInt();

Which of the following Scanner methods can be used to read in a float?