Access Modifiers, Inheritance & Polymorphism
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
SrinivasaRao SrinivasaRao
Used 311+ times
FREE Resource
Enhance your content in a minute
39 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of this keyword must be used to inherit a class?
super
this
extent
extends
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A class member declared protected becomes a member of subclass of which type?
public member
private member
protected member
static member
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is correct way of inheriting class A by class B?
class B + class A {}
class B inherits class A {}
class B extends A {}
class B extends class A {}
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of this program?
0
1
2
Compilation Error
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of this program?
2 2
3 3
2 3
3 2
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of this program?
1 2
2 1
Runtime Error
Compilation Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is not type of inheritance?
Single inheritance
Double inheritance
Hierarchical inheritance
Multiple inheritance
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
43 questions
KELAS XI TKJ_DKV_SOAL AAS PKK _SEMESTER GANJIL 2024-2025
Quiz
•
University
40 questions
PAK
Quiz
•
University
40 questions
Unit 12, 13_ Haifaa_2020
Quiz
•
University
40 questions
Desktop Publishing Quiz 2
Quiz
•
University
35 questions
Midterm Exam
Quiz
•
University
43 questions
VR/AR
Quiz
•
University
38 questions
Ôn Tập Tin Học 10
Quiz
•
10th Grade - University
40 questions
QUIZ APSIA PRA UTS
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
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
