
Java MCQ Quiz
Quiz
•
Information Technology (IT)
•
University
•
Hard
vin vin
Used 1+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Number of primitive data types in Java are?
8
7
6
9
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of float and double in java?
32 and 64
64 and 64
32 and 32
64 and 32
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Automatic type conversion is possible in which of the possible cases?
Short to int
Long to int
Int to long
Byte to int
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the following code: int Integer = 24; char String = 'I'; System.out.print(Integer); System.out.print(String);
Throws exception
I
24 I
Compile error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the following program: public class Solution{ public static void main(String[] args){ short x = 10; x = x * 5; System.out.print(x); }}
50
10
Exception
Compile error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select the valid statement to declare and initialize an array.
char[] ch = new char()
char[] ch = new char[]
char[] ch = new char[5]
char[] ch = new char(5)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When an array is passed to a method, what does the method receive?
Copy of first element
Length of the array
A copy of the array
The reference of the array
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
35 questions
SQL Server Quiz
Quiz
•
University
35 questions
Mastering JavaScript and the DOM
Quiz
•
University
40 questions
TI-3202
Quiz
•
University
40 questions
Cloud Computing and IoT Quiz
Quiz
•
University
40 questions
BSOA 3rd Year Final Exam
Quiz
•
University
40 questions
Long Quiz # 2 SDL and Project Management
Quiz
•
University
35 questions
PENSAMIENTO ALGORÍTMICO
Quiz
•
University
40 questions
Grade 11 Week 2 Quiz
Quiz
•
11th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
