Topic 2 APP Quiz

Topic 2 APP Quiz

Professional Development

8 Qs

quiz-placeholder

Similar activities

CDAC - Password Cracking

CDAC - Password Cracking

Professional Development

10 Qs

Digital Competence in Education Quiz

Digital Competence in Education Quiz

Professional Development

10 Qs

Cloud Practitioner Essentials Quiz

Cloud Practitioner Essentials Quiz

Professional Development

10 Qs

Enrutamiento intervlan - clase 3 - CCNA3

Enrutamiento intervlan - clase 3 - CCNA3

Professional Development

6 Qs

Dsquad

Dsquad

Professional Development

10 Qs

Network - EUD

Network - EUD

Professional Development

10 Qs

SysOps Evaluation 2

SysOps Evaluation 2

Professional Development

11 Qs

26.12.2024 | Minigame TeamViewer

26.12.2024 | Minigame TeamViewer

Professional Development

8 Qs

Topic 2 APP Quiz

Topic 2 APP Quiz

Assessment

Quiz

Information Technology (IT)

Professional Development

Medium

Created by

Izzati Safwanah

Used 2+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is encapsulation in Object-Oriented Programming (OOP)

Grouping related methods and variables in a single unit

Allowing access to methods and variables from anywhere in the program

Hiding the internal details of an object and exposing only what is necessary

A technique to define multiple methods with the same name

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which access modifier is typically used to achieve encapsulation?

public

private

protected

final

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the main purpose of inheritance in OOP?

To create private variables

To reuse existing code in new classes

To make variables accessible everywhere

To declare methods with the same name

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Encapsulation helps in improving the maintainability and flexibility of code

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

A subclass automatically inherits private fields from its superclass

True

False

6.

FILL IN THE BLANK QUESTION

1 min • 2 pts

In inheritance, the class that inherits from another class is called the _________________.

7.

FILL IN THE BLANK QUESTION

1 min • 2 pts

Encapsulation is achieved using ___________ fields and providing ______________ methods to access them.

8.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

You are developing a banking application. Which OOP concepts are best suited to restrict direct access to account balance and provide controlled access through methods?

Polymorphism

Inheritance

Encapsulation

Abstraction