
Abstract Class

Quiz
•
Professional Development, Computers
•
University - Professional Development
•
Medium
Muhd Lutfir
Used 3+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an abstract method?
An abstract method is any method in an abstract class.
An abstract method is a method which cannot be inherited.
An abstract method is one without a body that is declared with the reserved word abstract.
n abstract method is a method in the child class that overrids a parent method.
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Abstract class can have all of the below except
Abstract methods
Methods with code implementation
Used to create objects
Used to create subclasses
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should be the code in the blank from the given codes?
public abstract class Person{
public abstract void enroll();
}
public class Student extends Person(
______________________________
{
public void eat(){
}
public void enroll(){
}
public void drop(){
}
public class Person()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill up the correct code in the given program below.
public abstract class BSIT2A{
public _____________ void read();
}
public class Student extends BSIT2A{
public void read(){
}
static
final
abstract
public
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the given code below correct?
public class Person{
public abstract void enroll();
}
Yes
No
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the code below correct?
public abstract class Pet{
public abstract void eat();
}
public class Cat extends Pet{
public void eat(){
}
}
Yes
No
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the given code below correct?
public abstract class Person{
public final abstract void draw();
}
public class Student extends Person{
public void draw(){
}
}
Yes
No
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the program code below correct?
public abstract class Person{
public abstract double computeGrade();
}
public class Student extends Person{
public double computeGrade(){
return 90.0;
}
}
Yes
No
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the right code on the blank in the given program below?
public abstract class Pet{
public abstract int getAge();
}
public class Cat __________ Pet{
public int getAge(){
return 5;
}
}
abstract
final
extends
static
Similar Resources on Wayground
10 questions
Java main() and Scanner

Quiz
•
Professional Development
12 questions
Java

Quiz
•
11th Grade - University
10 questions
Briefing Operator Java

Quiz
•
University
10 questions
Java - Introduction

Quiz
•
University
9 questions
عناوين العمليات بلغة جافا

Quiz
•
10th Grade - University
10 questions
Java Constructors Methods

Quiz
•
University
10 questions
Java Quiz 1

Quiz
•
University
10 questions
CMP128 Java Ch. 05 Methods

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade