Log in
Sign up for FREE
arrow_back
Library
Abstract Quiz
By Mickey Arnold
star
star
star
star
star
Share
share
Last updated almost 2 years ago
10 questions
Add this activity
1
1
1
1
1
1
1
1
1
1
Question 1
1.
A abstract class can extend another _________________ .
a.
abstract class
b.
class
c.
interface
A and B
A, B, and C
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();
}
0
1
2
3
4
Question 3
3.
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 "--";
}
}
0
1
2
3
4
Question 4
4.
Which of the following could be placed in Box?
public abstract class Box {
}
a.
public Box() { }
b.
private Box() { }
c.
public abstract Box() { }
A and B
A and C
Question 5
5.
Which of the following could be placed in Demo?
public abstract class Demo {
}
a.
public abstract void fun() { }
b.
protected abstract void fun();
c.
void fun();
d.
public void fun() { }
A,B, and C
Question 6
6.
Which of the following could be placed in Bison?
public abstract class Bison
{
}
a.
private int a;
b.
public int b;
c.
protected int c;
A and B
A,B, and C
Question 7
7.
Which of the following could be placed in Eagle?
public abstract class Eagle
{
}
a.
private final static int a;
b.
private final static int b=5;
c.
private final static c=7;
A and B
A,B, and C
Question 8
8.
Which of the following could be placed in Smasher?
public abstract class Smasher
{
}
a.
public final static int a=9;
b.
public final static int b;
c.
public final static c=9;
A and B
A,B, and C
Question 9
9.
Which of the following could be placed in Grill?
public abstract class Grill
{
}
a.
private static double a = 1;
b.
private static int b=3;
c.
private static c=8;
A and B
A,B, and C
Question 10
10.
Which of the following could be placed in Socks?
public abstract class Socks
{
}
a.
private final int a;
b.
private final int b=2;
c.
private final c=5;
A and B
A,B, and C