Abstract Class

Abstract Class

University - Professional Development

9 Qs

quiz-placeholder

Similar activities

EC335 - Quiz 1

EC335 - Quiz 1

University

10 Qs

Cycle 4: Session 8 Review.

Cycle 4: Session 8 Review.

Professional Development

12 Qs

Types of AfL Assessment Challenge/Review

Types of AfL Assessment Challenge/Review

Professional Development

13 Qs

Examen de Admisión a HPD FASE 1 serie A

Examen de Admisión a HPD FASE 1 serie A

6th Grade - Professional Development

13 Qs

Cloud computing

Cloud computing

Professional Development

10 Qs

aXQtMjktMTEtMjAyMg==

aXQtMjktMTEtMjAyMg==

Professional Development

10 Qs

Tipos de visibilidade e encapsulamento

Tipos de visibilidade e encapsulamento

Professional Development

10 Qs

Node.js

Node.js

University

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