Log in
Sign up for FREE
arrow_back
Library

Abstract Quiz

star
star
star
star
star
Last updated almost 2 years ago
10 questions
1
1
1
1
1
1
1
1
1
1
Question 1
1.

A abstract class can extend another _________________ .

Question 2
2.

What is the minimum number of methods a class extending abstract class Demo could have?
public abstract class Wile {
public abstract String destroy();
}

Question 3
3.

Question 4
4.

Which of the following could be placed in Box?
public abstract class Box {
}

Question 5
5.

Which of the following could be placed in Demo?
public abstract class Demo {
}

Question 6
6.

Which of the following could be placed in Bison?
public abstract class Bison
{
}

Question 7
7.

Which of the following could be placed in Eagle?
public abstract class Eagle
{
}

Question 8
8.

Which of the following could be placed in Smasher?
public abstract class Smasher
{
}

Question 9
9.

Which of the following could be placed in Grill?
public abstract class Grill
{
}

Question 10
10.

Which of the following could be placed in Socks?
public abstract class Socks
{
}

c.
interface
A and B
A, B, and C
1
2
3
4
What is the number of methods a class extending abstract class SpaceShip should implement?
public abstract class SpaceShip {
public Demo() {
}
public abstract String destroy();
public String toString() {
return "--";
}
}
4
b.
private Box() { }
c.
public abstract Box() { }
A and B
A and C
b.
protected abstract void fun();
c.
void fun();
d.
public void fun() { }
A,B, and C
b.
public int b;
c.
protected int c;
A and B
A,B, and C
b.
private final static int b=5;
c.
private final static c=7;
A and B
A,B, and C
b.
public final static int b;
c.
public final static c=9;
A and B
A,B, and C
b.
private static int b=3;
c.
private static c=8;
A and B
A,B, and C
b.
private final int b=2;
c.
private final c=5;
A and B
A,B, and C