Abstract Class

Abstract Class

University - Professional Development

9 Qs

quiz-placeholder

Similar activities

Day 15 Assessment -Encapsulation & Abstraction, Exception-28June

Day 15 Assessment -Encapsulation & Abstraction, Exception-28June

University

10 Qs

Black History Month

Black History Month

Professional Development

10 Qs

C String Array MCQs

C String Array MCQs

Professional Development

10 Qs

Information Technology & Business Canvas Model

Information Technology & Business Canvas Model

University

13 Qs

Dayton New Teacher Meeting

Dayton New Teacher Meeting

University

12 Qs

Prevent 2019-20

Prevent 2019-20

Professional Development

11 Qs

Got Apps?

Got Apps?

University

10 Qs

Azure Cloud computing

Azure Cloud computing

Professional Development

10 Qs

Abstract Class

Abstract Class

Assessment

Quiz

Professional Development, Computers

University - Professional Development

Practice Problem

Medium

Created by

Muhd Lutfir

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development