Java variables

Quiz
•
Computers
•
University
•
Hard
Twins TR
Used 94+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
0
Garbage value
Compilation error
Runtime error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
0
Garbage value
Compilation error
Runtime error
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The instance variables in b are given the same values as a
The instance variables in a are given the same values as b
a and b are considered to be the same object
None of the mentioned options
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A single class can have
only one instance
two instances
any number of instances
None of the mentioned options
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Static means
Class Level
Object level
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Main method is static because to execute main method without creating object By JVM
Yes
No
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the ouput of the following code?
x=10 x=10
x=10 x=20
x=30 x=30
x=30 x=20
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
AP Computer Science Principles Unit 4 Review

Quiz
•
9th Grade - University
15 questions
Common errors in C programming

Quiz
•
University
13 questions
CSE_A1_QUIZ 6(15-05-23)

Quiz
•
University
9 questions
Java Interface Quiz

Quiz
•
University
5 questions
Java Classes & Objects

Quiz
•
University
10 questions
Java quiz based on inheritance

Quiz
•
University
10 questions
Java Quiz 1

Quiz
•
University
15 questions
Java Programming

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade