
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
What is the purpose of the Scanner class?
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 Wayground
20 questions
UTS Teori PJR 2024

Quiz
•
University
20 questions
Programming Concepts in C

Quiz
•
University
12 questions
HTML, JAVASCRIPT,XML

Quiz
•
University
17 questions
Java Programming Quiz

Quiz
•
University
20 questions
Input and Output Devices

Quiz
•
7th Grade - University
12 questions
Computers

Quiz
•
KG - University
15 questions
ICTLecture#2

Quiz
•
University
14 questions
Unit 6 Microcontrollers Intro 2022

Quiz
•
11th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade