
15. Java Abstract Classes
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
A Vijay Kumar
Used 83+ times
FREE Resource
Enhance your content in a minute
22 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Abstract class can have
Abstract methods
Methods with code implementation
Used to create objects
Used to create subclasses
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an abstract method?
An abstract method is any method in an abstract class.
An abstract method is a method which cannot be inherited.
An abstract method is one without a body that is declared with the reserved word abstract.
n abstract method is a method in the child class that overrids a parent method.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can an abstract class define both abstract methods and non-abstract methods?
No—it must have all one or the other.
No—it must have all abstract methods.
Yes—but the child classes do not inherit the abstract methods.
Yes—the child classes inherit both.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these class relies upon its subclasses for complete implementation of its methods?
Object class
abstract class
ArrayList class
None of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these keywords are used to define an abstract class?
Abstract
abstract
abstract class
abst
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is FALSE about abstract classes in Java
If we derive an abstract class and do not implement all the abstract methods, then the derived class should also be marked as abstract using 'abstract' keyword
Abstract classes can have constructors
A class can be made abstract without any abstract method
A class can inherit from multiple abstract classes.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement(s) with regard to an abstract class in JAVA is/are TRUE ? I. An abstract class is one that is not used to create objects. II. An abstract class is designed only to act as a base class to be inherited by other classes.
Only I
Only II
Neither I nor II
Both I & II
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
Soal AIJ bulan Agustus 2019 kls xii
Quiz
•
University
20 questions
DBMS Quiz
Quiz
•
University
20 questions
Digital Forensics Professional
Quiz
•
University
20 questions
Algoritma Pemrograman
Quiz
•
University
20 questions
Compiler Review
Quiz
•
University
17 questions
Day-I (Summary Quiz) for ICT Skill Share
Quiz
•
KG - Professional Dev...
20 questions
OP2 MIDTERM EXAM P2
Quiz
•
University
20 questions
Digital and Analog transmission
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
