Interfaces Quiz
By Mickey Arnold
starstarstarstarstarstarstarstarstarstar
Last updated 10 months ago
10 Questions
1 point
1
Question 1
1.
A class that implements Comparable must implement how many methods at minimum?public interface Comparable{ public abstract int compareTo();}
A class that implements Comparable must implement how many methods at minimum?
public interface Comparable
{
public abstract int compareTo();
}
1 point
1
Question 2
2.
A class that implements Wile must implement how many methods at minimum?public interface Wile{ public abstract int go(); public abstract double stop( int x );}
A class that implements Wile must implement how many methods at minimum?
public interface Wile
{
public abstract int go();
public abstract double stop( int x );
}
1 point
1
Question 3
3.
All methods located inside of an interface are automatically set with what access?
All methods located inside of an interface are automatically set with what access?
1 point
1
Question 4
4.
Which of the following could fill <blank 1>?public interface Quiz{ <blank 1>}
Which of the following could fill <blank 1>?
public interface Quiz
{
<blank 1>
}
1 point
1
Question 5
5.
Which of the following could NOT fill <blank 1>?public interface Quiz{ <blank 1>}
Which of the following could NOT fill <blank 1>?
public interface Quiz
{
<blank 1>
}
1 point
1
Question 6
6.
All variables located inside of an interface are automatically set with what access?
All variables located inside of an interface are automatically set with what access?
1 point
1
Question 7
7.
All variables located inside of an interface are automatically labeled with which of the following modifiers?
All variables located inside of an interface are automatically labeled with which of the following modifiers?
1 point
1
Question 8
8.
Which of the following could fill <blank 1>?public interface Bucket{ <blank 1>}
Which of the following could fill <blank 1>?
public interface Bucket
{
<blank 1>
}
1 point
1
Question 9
9.
Which of the following could fill <blank 1>?public interface Plane{ <blank 1>}
Which of the following could fill <blank 1>?
public interface Plane
{
<blank 1>
}
1 point
1
Question 10
10.
Which of the following can implement an interface?
Which of the following can implement an interface?