Access Modifiers, Inheritance & Polymorphism

Quiz
•
Computers
•
University
•
Hard
SrinivasaRao SrinivasaRao
Used 310+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
MLQMB school quizz

Quiz
•
University
40 questions
BMCS1033 SDF

Quiz
•
University
40 questions
Java Quiz

Quiz
•
University
38 questions
IT Basic Assesment

Quiz
•
7th Grade - Professio...
37 questions
IM1_Integrative Programming_LQ2

Quiz
•
University
40 questions
quiz based on web design

Quiz
•
University
40 questions
Test - Principles of programming with C++

Quiz
•
University
35 questions
Attainment 4 - Classroom Activity (Grade 10)

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University