
Basic Operators and Operator Precedence
Authored by Alfred Brian Bautista
Computers
Professional Development
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
15 questions
Web Technology - Web Essentials
Quiz
•
Professional Development
20 questions
Installing and Configuring Computer Systems 2
Quiz
•
Professional Development
21 questions
CÂU LỆNH WHILE
Quiz
•
Professional Development
18 questions
Database Management System
Quiz
•
12th Grade - Professi...
16 questions
E-Commerce
Quiz
•
University - Professi...
20 questions
Mobile Device
Quiz
•
Professional Development
18 questions
Git-it?
Quiz
•
Professional Development
18 questions
CYBER SECURITY
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development