
OOPs Quiz - Advanced
Quiz
•
Other
•
University
•
Practice Problem
•
Easy
Crackify Crackify
Used 2+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code? class Test { int x; Test(int x) { this.x = x; } void print() { System.out.println(x); } } Test t = new Test(5); t.print();
5
0
Error
null
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to call a superclass constructor?
this
super
extends
base
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code? class A { A() { System.out.println("A's Constructor"); } } class B extends A { B() { System.out.println("B's Constructor"); } } new B();
B's Constructor
A's Constructor
A's Constructor B's Constructor
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following can be overloaded?
Constructors
Static methods
Main method
All of the above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the role of a constructor in Java?
Initialize objects
Destroy objects
Create classes
Run threads
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these is NOT true about abstract classes?
Can have abstract and non-abstract methods
Can be instantiated
Can have constructors
Can have static methods
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to prevent inheritance?
private
static
final
const
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
Chapter 17 Diagnostic Electrocardiography
Quiz
•
3rd Grade - University
20 questions
Philosophical and Social Perspective of the Self
Quiz
•
University
20 questions
second gathering
Quiz
•
University
20 questions
THE TIME VALUE OF MONEY & INVESTMENT ANALYSIS
Quiz
•
University
20 questions
how to trian your dragon
Quiz
•
4th Grade - Professio...
20 questions
IMC Quiz
Quiz
•
University
20 questions
CDS 526 Quiz Chapters 2-4
Quiz
•
University
20 questions
income tax quiz
Quiz
•
University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Other
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
