Search Header Logo

CLASES Y OBJETIVOS

Authored by SARA TUBERQUIA

Information Technology (IT)

11th Grade

Used 3+ times

CLASES Y OBJETIVOS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

¿Qué palabra clave se utiliza para definir una clase en PHP?

a) class

b) define

c) object

2.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

¿Cómo se llama al método que se ejecuta automáticamente al crear una instancia de una clase en PHP?

a) __construct()

b) __initialize()

c) __start()

3.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

¿Cuál es la visibilidad predeterminada de las propiedades y métodos en una clase PHP si no se especifica?

a) public

b) private

c) protected

4.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

¿Qué palabra clave se utiliza para heredar una clase en PHP?

a) inherit

b) extends

c) implements

5.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

¿Cuál es la forma correcta de acceder a una propiedad estática en una clase PHP?

a) $this->property

b) self::$property

c) this::$property

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?