You are on page 1of 5

Midterm Quiz 2

Question 1
Correct
Mark 1.00 out of 1.00
Flag question
Abstract method has no body.
Q
Select one:
a.
u
True
eb.
sFalse
t
Question 2
i
Correct
Mark
o 1.00 out of 1.00
Flag
n question
Class that implements any interface must implement all the methods of that interface, else the class should be
Q
declared
t abstract.
Select
ue one:
a.
exFalse
sb.
t
True
t
i
Question 3
Correct
o
Mark 1.00 out of 1.00
n
Flag question
The
t class that implements interface must implement all the methods of that interface.
Q
Select one:
ea.
u
x
True
e
tb.
sFalse
tQuestion 4
i
Correct
Mark
o 1.00 out of 1.00
Q
Flag
nu question
A
e class derived from the abstract class must implement all those methods that are declared as abstract in the
parent
ts class.
Select one:
eta.
xiTrue
b.
ot
False
n
Question 5
Correct
t
e
x
t
Mark 1.00 out of 1.00
Flag question
A class that is declared using abstract keyword.
Q
Select one:
a.
u
Abstract class
eb.
sConcrete class
c.
t
Parent
i class
d.
oChild class
nQuestion 6
Correct
tMark 1.00 out of 1.00
e
Flag
x question
Interface
t provides full abstraction as none of its methods have body.
Q
Select one:
a.
u
True
eb.
sFalse
tQuestion 7
iCorrect
Mark
o 1.00 out of 1.00
Flag
n question
Extending an interface can implement another interface.
Q
Select
t one:
a.
ue
False
exb.
stTrue
tQuestion 8
i
Correct
Mark
o 1.00 out of 1.00
Flag
n question
Q
A class which is not abstract is referred as.
uSelect one:
t
ea.
eParent class
s
x
b.
t
Concrete
t class
ic.
oChild class
d.
n
Abstract class

t
e
x
t
Question 9
Correct
Mark 1.00 out of 1.00
Flag question
An interface can implement another interface
Q
Select one:
a.
u
False
eb.
sTrue
tQuestion 10
i
Correct
Mark
o 1.00 out of 1.00
Flag
n question
The variables declared in an interface are public, static & final by default.
Q
Select
t one:
a.
ue
True
exb.
st
False
tQuestion 11
i
Correct
Mark
o 1.00 out of 1.00
nFlag question
An abstract class can be instantiated.
Q
Select
t one:
a.
ue
True
exb.
st
False
tQuestion 12
i
Correct
Mark
o 1.00 out of 1.00
nFlag question
An abstract class must be extended and in a same way abstract method must be overridden.
Q
Select
t one:
a.
Q
ue
True
uex
b.
esFalse
t
stQuestion 13
ti
Incorrect
Mark
io 0.00 out of 1.00
onFlag question
nIf you declare an abstract method in a class then you don't need to declare the class abstract as well.
Select
t one:
te
ex
xt
t
a.
True
b.
False
Question 14
Correct
Mark 1.00 out of 1.00
Flag question
Interface which is declared inside another interface or class.
Q
Select one:
a.
u
Nested interface
e
b.
sImplementation interface
c.
t
Hierarchical
i interface
d.
oMultiple interface
nQuestion 15
Correct
Mark
t 1.00 out of 1.00
eFlag question
x can instantiate an interface in java.
We
Q
Select
t one:
a.
u
True
e
b.
s
False
tQuestion 16
iCorrect
Mark
o 1.00 out of 1.00
nFlag question
Nested interface are also known as?
Q
Select
t one:
a.
ue
Outer interface
ex
b.
sAbstract
t interface
c.
t
Map
i interface
d.
oInner interface
n
Question 17
Incorrect
tMark 0.00 out of 1.00
eFlag question
x
t
If a child does not implement all the abstract methods of abstract parent class, then the child class must need
Q
to be declared abstract as well.
uSelect one:
a.
e
False
s
b.
True
t
i
Question 18
Correct
o
Mark 1.00 out of 1.00
n
Flag question
Have
t methods and variables just like the class but the methods declared in it are by default abstract.
Q
Select one:
ea.
u
x
Interface
eb.
t
sAbstract method
c.
t
Override
i
d.
oAbstract class
nQuestion 19
Incorrect
Mark
t 0.00 out of 1.00
eFlag question
x can not have abstract method in a concrete class.
You
Q
Select
t one:
a.
u
False
eb.
sTrue
tQuestion 20
iCorrect
Mark
o 1.00 out of 1.00
nFlag question
An abstract class has no use until unless it is extended by some other class.
Q
Select
t one:
a.
ue
False
ex
b.
st
True
t
i
o
n

t
e
x
t

You might also like