
Java Programming MCQs
Authored by Mohd. Khan
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a primitive data type in Java?
int
String
float
boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of int in Java?
1
0
null
garbage value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a single character?
char
String
byte
boolean
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of a float in Java?
4 bytes
8 bytes
2 bytes
1 byte
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store true or false values?
byte
char
boolean
float
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a boolean variable?
true
0
null
false
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is smallest in size?
int
short
byte
long
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
50 questions
SKILL QUIZ
Quiz
•
University
45 questions
QUIZ
Quiz
•
University
45 questions
Fundamentos-Programacion
Quiz
•
University
50 questions
LATIHAN SOAL
Quiz
•
10th Grade - University
50 questions
UH.1 - Sistem Komputer
Quiz
•
10th Grade - University
52 questions
Final Exam - Introduction to Computing
Quiz
•
University
50 questions
html css and javascript
Quiz
•
University
50 questions
KISI-KISI PAS KELAS 8 SEM GANJIL 2024-2025
Quiz
•
8th 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