
Java Programming Quiz

Quiz
•
Other
•
University
•
Hard

Niveditha N
Used 1+ times
FREE Resource
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a Java keyword?
static
volatile
unsigned
native
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of Boolean in Java?
0
null
false
true
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will this loop run? for (int i = 0; i < 10; i++) { if (i == 5) break; }
10
5
4
Infinite
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's the output of: int[] arr = new int[5]; System.out.println(arr[2]);
Error
Garbage
0
null
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method can return multiple values?
void
int[]
boolean
char
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is immutable in Java?
StringBuffer
StringBuilder
String
char[]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is true about constructors?
Return type required
Called manually
No return type
Must be static
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
ASAS SAINS KOMPUTER T2 [ULANGKAJI]

Quiz
•
1st Grade - University
40 questions
Câu hỏi về mảng trong lập trình

Quiz
•
University
40 questions
COMP 1010 TEST 1

Quiz
•
University
42 questions
Câu hỏi về Android

Quiz
•
University
40 questions
Latihan Soal Basis Data 1

Quiz
•
University
32 questions
Understanding Strings and Arrays

Quiz
•
University
40 questions
Conquer C

Quiz
•
University
33 questions
Javascript I

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade