Input Test
By Mickey Arnold
starstarstarstarstarstarstarstarstarstar
Last updated 10 months ago
25 Questions
4 points
4
Question 1
1.
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 65535 ?
4 points
4
Question 2
2.
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 a line of words?
4 points
4
Question 3
3.
Which of the following Scanner methods can be used to read in the value “apluscompsciisthebest” ?
Which of the following Scanner methods can be used to read in the value “apluscompsciisthebest” ?
4 points
4
Question 4
4.
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.nextFloat();
4 points
4
Question 5
5.
Given the following statement, var must be defined as which of the following types?var=keyboard.nextLine();
Given the following statement, var must be defined as which of the following types?
var=keyboard.nextLine();
4 points
4
Question 6
6.
Which of the following Scanner methods can be used to read in a double?
Which of the following Scanner methods can be used to read in a double?
4 points
4
Question 7
7.
Given the following statement, var must be defined as which of the following types?var=keyboard.nextLong();
Given the following statement, var must be defined as which of the following types?
var=keyboard.nextLong();
4 points
4
Question 8
8.
Which of the following Scanner methods can be used to read in a short?
Which of the following Scanner methods can be used to read in a short?
4 points
4
Question 9
9.
Which of the following is the Java class used for input?
Which of the following is the Java class used for input?
4 points
4
Question 10
10.
Which of the following is used in the Scanner constructor to connect to the keyboard?
Which of the following is used in the Scanner constructor to connect to the keyboard?
4 points
4
Question 11
11.
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 a String?
4 points
4
Question 12
12.
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 an integer?
4 points
4
Question 13
13.
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 a byte?
4 points
4
Question 14
14.
Which of the following Scanner methods can be used to read in the value”apluscompsci is the best” ?
Which of the following Scanner methods can be used to read in the value
”apluscompsci is the best” ?
4 points
4
Question 15
15.
Which of the following would correctly define and instantiate a Scanner?
Which of the following would correctly define and instantiate a Scanner?
4 points
4
Question 16
16.
Which of the following Scanner methods can be used to read in a long?
Which of the following Scanner methods can be used to read in a long?
4 points
4
Question 17
17.
Given the following statement, var must be defined as which of the following types?var=keyboard.next();
Given the following statement, var must be defined as which of the following types?
var=keyboard.next();
4 points
4
Question 18
18.
Which of the following Scanner methods can be used to read in 511.278 ?
Which of the following Scanner methods can be used to read in 511.278 ?
4 points
4
Question 19
19.
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.nextByte();
4 points
4
Question 20
20.
Given the following statement, var must be defined as which of the following types?var=keyboard.nextDouble();
Given the following statement, var must be defined as which of the following types?
var=keyboard.nextDouble();
4 points
4
Question 21
21.
Which of the following Scanner methods can be used to read in 45 ?
Which of the following Scanner methods can be used to read in 45 ?
4 points
4
Question 22
22.
Given the following statement, var must be defined as which of the following types?var=keyboard.nextShort();
Given the following statement, var must be defined as which of the following types?
var=keyboard.nextShort();
4 points
4
Question 23
23.
Which of the following Scanner methods can be used to read in 32760 ?
Which of the following Scanner methods can be used to read in 32760 ?
4 points
4
Question 24
24.
Given the following statement, var must be defined as which of the following types?var=keyboard.nextInt();
Given the following statement, var must be defined as which of the following types?
var=keyboard.nextInt();
4 points
4
Question 25
25.
Which of the following Scanner methods can be used to read in a float?
Which of the following Scanner methods can be used to read in a float?