
Java_2
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
lawrance r
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of an int in Java?
0.0
null
0
Undefined
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a primitive data type in Java?
float
boolean
String
char
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of a double data type in Java?
4 bytes
8 bytes
2 bytes
16 bytes
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a constant variable in Java?
final
constant
static
var
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 5 / 2 if both operands are integers?
2.5
2
3
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if there is no else block after an if statement?
Compilation error
Program terminates
Only the if block executes if the condition is true
The next if block executes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a switch statement does not contain a break?
Compilation error
Only the matching case executes
Fall-through occurs (subsequent cases execute until a break)
None of the above
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
10 questions
CSE205-DCN-QUIZ-UNIT-5
Quiz
•
University
10 questions
El Paradigma Orientado a Objetos: Una Introducción Mediante Java
Quiz
•
University
15 questions
Algoritma dan Pemrograman Bab 1
Quiz
•
University
15 questions
java básico y pilas
Quiz
•
University
13 questions
Principles of Programming
Quiz
•
KG - University
15 questions
Coding club Summit Online Quiz
Quiz
•
University
10 questions
Quizz_Algoritma, Pemrograman, dan RPL_Accifence
Quiz
•
University
10 questions
JSPS Competition Hackathon - HTML Language Grade 4 & 5
Quiz
•
4th Grade - University
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
