
Java User Input
Flashcard
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Dina Sharawy
Used 1+ times
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the purpose of the Scanner class in Java?
Back
The Scanner class is used to take input from the user.
2.
FLASHCARD QUESTION
Front
How do you import the Scanner class in Java?
Back
You import the Scanner class using: import java.util.Scanner;
3.
FLASHCARD QUESTION
Front
How do you create a Scanner object to read input from the keyboard?
Back
You create a Scanner object with: Scanner input = new Scanner(System.in);
4.
FLASHCARD QUESTION
Front
What method is used to read an integer value using Scanner?
Back
The method nextInt() is used to read an integer value.
5.
FLASHCARD QUESTION
Front
What method is used to read a double value using Scanner?
Back
The method nextDouble() is used to read a double value.
6.
FLASHCARD QUESTION
Front
How do you read a line of text using Scanner?
Back
You use the method nextLine() to read a line of text.
7.
FLASHCARD QUESTION
Front
What method is used to read a single word using Scanner?
Back
The method next() is used to read a single word.
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
12 questions
Like to vs Would like to - course 6 (2H)
Flashcard
•
9th - 12th Grade
9 questions
Special Places
Flashcard
•
KG - University
10 questions
Smart Online Shopper
Flashcard
•
KG - University
10 questions
I Wandered Lonely As A Cloud By William Wordsworth
Flashcard
•
12th Grade
10 questions
English 10 (Final Round)
Flashcard
•
10th Grade
12 questions
Legal Writing Memo Flashcard
Flashcard
•
KG - University
10 questions
Basic Input Devices for Kids
Flashcard
•
KG
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade