
Java 1 (with bitwise and shift)
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Det Det
Used 1+ times
FREE Resource
Enhance your content in a minute
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two main types of data types in Java?
Answer explanation
Java has primitive data types (e.g., int, boolean) and reference data types (e.g., objects, arrays).
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a primitive data type in Java?
Answer explanation
String is a reference type, not a primitive.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a reference variable in Java?
Answer explanation
Reference variables default to null, meaning they do not reference an object until initialized.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an int in Java?
Answer explanation
Java int is always 32-bit signed.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will System.out.println(10 / 4); print?
Answer explanation
Integer division truncates the decimal, so 10 / 4 results in 2.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will System.out.println(5 & 3); print?
Answer explanation
5 in binary = 0101, 3 in binary = 0011. 0101 & 0011 = 0001 (which is 1).
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will System.out.println(true || false && false); print?
Answer explanation
&& has higher precedence than ||, so it evaluates as true || (false && false) → true || false → true.
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
30 questions
HCI-Chapter 8
Quiz
•
University
27 questions
EE08 - vol 2
Quiz
•
University
27 questions
IEEE Coding Cybersecurity
Quiz
•
University
35 questions
Unit 9.1 - Textual Programming
Quiz
•
8th Grade - University
30 questions
[QUIZ] Chapter 1 - Chapter 3
Quiz
•
University
30 questions
Generation of programming languages and language processors
Quiz
•
University
27 questions
Software Engineering
Quiz
•
University
30 questions
Latihan soal Akhir Semester satu
Quiz
•
9th 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
