
Java Fundamentals MCQs
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Ms STAFF
Used 3+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a local variable in Java?
0
null
Depends on data type
Compilation error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a valid identifier in Java?
2value
_value
@value
value#
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? int x = 5; int y = 10; System.out.println(x + y + "Hello");
15Hello
Hello15
5Hello10
Compilation error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a constant in Java?
static
final
const
constant
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a primitive data type in Java?
int
boolean
String
double
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? int x = 10; System.out.println(x > 10 ? "Greater" : "Not Greater");
Greater
Not Greater
true
false
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code? char c = 65; System.out.println(c);
A
65
Error
a
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
20 questions
CompTIA ITF+
Quiz
•
Professional Development
20 questions
Data Type
Quiz
•
University - Professi...
20 questions
GCP-FOUND4
Quiz
•
Professional Development
20 questions
Cloud services
Quiz
•
Professional Development
21 questions
CPA MS-Office Hotkeys Quiz
Quiz
•
8th Grade - Professio...
24 questions
DATATYPES - INPUT/OUTPUT - OPERATORS
Quiz
•
Professional Development
20 questions
Introduction to Internet based Programming
Quiz
•
Professional Development
20 questions
General ICT
Quiz
•
Professional Development
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
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
