Input Test

Last updated over 1 year ago
25 questions
4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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

4

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