What is the purpose of the Scanner class?

Java Programming - Set 1

Quiz
•
Computers
•
University
•
Hard
Raphael Kenyuri
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To read input from the console
To perform console output
To declare variables
To compute area
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring a constant in Java?
final datatype CONSTANTNAME = value;
datatype variableName;
Scanner input = new Scanner(System.in);
Math.pow(a, b)
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following is a valid identifier in Java?
2A
readDouble
MAX_VALUE
4#R
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 5 / 2 in Java?
2
2.5
2.0
2.25
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of the byte data type in Java?
-128 to 127
-32768 to 32767
-2147483648 to 2147483647
-9223372036854775808 to 9223372036854775807
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the remainder when 20 is divided by 3?
0
1
2
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of Math.pow(2, 3)?
2
3
8
6
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Programming Concepts in C

Quiz
•
University
18 questions
Java Como Programar - Deitel - Cap 1 e 2

Quiz
•
University
10 questions
Input Devices

Quiz
•
University
17 questions
Java Programming Quiz

Quiz
•
University
10 questions
Java quiz 1

Quiz
•
University
20 questions
Input and Output Devices

Quiz
•
7th Grade - University
12 questions
Cuadros de dialogo con JOptionPane

Quiz
•
University
10 questions
G12_Week7

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade