
Basic Operators and Operator Precedence
Quiz
•
Computers
•
Professional Development
•
Medium
Alfred Brian Bautista
Used 7+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the purpose of the Scanner class in Java?
To create graphical user interfaces
To read data from the standard input device
To manage memory allocation
To write data to files
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which statement is used to import the Scanner class?
import Scanner;
import java.Scanner;
import java.util.*;
import java.util.Scanner;
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What does the following statement do? Scanner input = new Scanner(System.in);
Declares a variable of type Scanner
Creates a new input stream
Creates a Scanner object associated with the keyboard
Imports the Scanner class
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which method retrieves input as a double?
nextFloat()
nextInt()
nextDouble()
nextLine()
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What does the next() method return?
The next complete token as a String
The next line of data
A double value
A short value
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
How do you retrieve a single character from the keyboard?
Use nextLine()
Use next().charAt(1)
Use nextChar()
Use next() and charAt(0)
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What does the print() method do?
Formats output
Reads input from the user
Displays output and moves to a new line
Displays output without moving to a new line
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
C Language Quiz-1
Quiz
•
University - Professi...
20 questions
Kuis Pelatihan API Kutim By GIZ
Quiz
•
University - Professi...
20 questions
From Binary To Denary Conversion - IGCSE
Quiz
•
7th Grade - Professio...
20 questions
machineLearning Test
Quiz
•
Professional Development
15 questions
Sains Komputer Tingkatan 5 - 1.3.3 Membina Jadual Kebenaran
Quiz
•
1st Grade - Professio...
20 questions
Simulasi dan komunikasi Digital
Quiz
•
Professional Development
20 questions
DAA
Quiz
•
Professional Development
20 questions
SPARK FIDDLE
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
21 questions
October 25
Quiz
•
Professional Development
10 questions
October Monthly Quiz
Quiz
•
Professional Development
20 questions
There is There are
Quiz
•
Professional Development
5 questions
SSUSH13
Interactive video
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
