
Java Unit 1

Quiz
•
Computers
•
University
•
Medium
POOMANI M
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many bits is the long data type in Java?
16
32
64
128
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an integer in Java Programming?
1 byte
2 bytes
4 bytes
8 bytes
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the smallest primitive data type in Java?
short
int
long
byte
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a char in Java?
0
'\0'
' '
null
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a primitive data type in Java?
void
float
char
short
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the expression true || false?
true
false
null
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop construct in Java is best suited when the number of iterations is known?
while
Do... while
for
for each
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
PYTHON BOOTCAMP

Quiz
•
University
10 questions
Java Quiz 2 based on loop and if else

Quiz
•
University
10 questions
Website Design

Quiz
•
KG - University
10 questions
Conditional and Iterative Statements

Quiz
•
University
9 questions
Java Iteration

Quiz
•
University
10 questions
Java MCQ Test on Control Statements

Quiz
•
University
15 questions
while loop

Quiz
•
University
10 questions
Quiz de Java

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade