
Java MCQ Quiz
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
vin vin
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Already have an account?
Similar Resources on Wayground
40 questions
Berpikir komputasi dan pemograman
Quiz
•
11th Grade - University
38 questions
7-20
Quiz
•
7th Grade - University
39 questions
Trắc nghiệm Microsoft Access
Quiz
•
11th Grade - University
35 questions
Uji Pengetahuan Komputer
Quiz
•
10th Grade - University
35 questions
Câu hỏi về hàm Excel
Quiz
•
University
40 questions
Internet of Things
Quiz
•
9th Grade - University
40 questions
Quiztronic
Quiz
•
University
35 questions
ASTS TIK 4 GENAP
Quiz
•
4th Grade - University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
