
Java Scanner Quiz
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
aditya bulchandani
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which package must be imported to use the Scanner class?
java.lang
java.util
java.io
java.scanner
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to create a Scanner object?
Scanner sc = new Scanner;
Scanner sc = new Scanner(System.in);
Scanner sc = Scanner(System.in);
Scanner(System.in) = new Scanner;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to input an integer value?
next()
nextInt()
nextInteger()
readInt()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to input a decimal (floating-point) value?
nextFloat()
nextDecimal()
nextDouble()
both a and c
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to input a single word (string without spaces)?
nextWord()
nextLine()
next()
read()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to input a complete line including spaces?
next()
nextLine()
readLine()
read()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If we type Hello World and use next(), what will be stored?
Hello
World
Hello World
Nothing
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
17 questions
Ergonomics and Keyboard
Quiz
•
9th Grade
10 questions
Berfikir Komputesional
Quiz
•
9th - 12th Grade
20 questions
Pemrograman Dasar 3
Quiz
•
9th - 12th Grade
20 questions
BÀI KTTX SỐ 2
Quiz
•
9th Grade
15 questions
Informatika 9
Quiz
•
9th Grade
20 questions
UH_INFORMATIKA
Quiz
•
9th Grade
16 questions
LA3.C3: Variables
Quiz
•
9th Grade - University
18 questions
Hardware
Quiz
•
5th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
