Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

Input Test

star
star
star
star
star
Posljednje ažuriranje about 2 years ago
25
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
Pitanje 1
1.

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

Pitanje 2
2.

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

Pitanje 3
3.

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

Pitanje 4
4.

Given the following statement, var must be defined as which of the following types?

var=keyboard.nextFloat();

Pitanje 5
5.

Given the following statement, var must be defined as which of the following types?

var=keyboard.nextLine();

Pitanje 6
6.

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

Pitanje 7
7.

Given the following statement, var must be defined as which of the following types?

var=keyboard.nextLong();

Pitanje 8
8.

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

Pitanje 9
9.

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

Pitanje 10
10.

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

Pitanje 11
11.

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

Pitanje 12
12.

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

Pitanje 13
13.

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

Pitanje 14
14.

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

”apluscompsci is the best” ?

Pitanje 15
15.

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

Pitanje 16
16.

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

Pitanje 17
17.

Given the following statement, var must be defined as which of the following types?

var=keyboard.next();

Pitanje 18
18.

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

Pitanje 19
19.

Given the following statement, var must be defined as which of the following types?

var=keyboard.nextByte();

Pitanje 20
20.

Given the following statement, var must be defined as which of the following types?

var=keyboard.nextDouble();

Pitanje 21
21.

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

Pitanje 22
22.

Given the following statement, var must be defined as which of the following types?

var=keyboard.nextShort();

Pitanje 23
23.

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

Pitanje 24
24.

Given the following statement, var must be defined as which of the following types?

var=keyboard.nextInt();

Pitanje 25
25.

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