
Activity 7: Quiz
Authored by BHASKAR MAHADEV
Computers
University
Used 24+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these class is super class of every class in Java?
String class
Object class
ArrayList class
Abstract class
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these keywords can be used to prevent inheritance of a class?
super
constant
extends
final
3.
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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
2
0
Compilation Error
Runtime Error
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
What is not type of inheritance?
Single inheritance
Double inheritance
Hierarchical inheritance
Multilevel inheritance
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In order to restrict a variable of a class from inheriting to subclass, how variable should be declared?
Protected
Private
Public
Static
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?