PHP OOP Quiz I

PHP OOP Quiz I

University

20 Qs

quiz-placeholder

Similar activities

Review PBO

Review PBO

University

20 Qs

PRE-TEST JAVA GUI (A)

PRE-TEST JAVA GUI (A)

University

20 Qs

Event Handling Quiz

Event Handling Quiz

University

15 Qs

WAD SI-46-08

WAD SI-46-08

University

20 Qs

Python pavangal

Python pavangal

University

20 Qs

Design-Interface and Dialogue

Design-Interface and Dialogue

University

15 Qs

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

11th Grade - University

16 Qs

Pyhton Debugging Questions

Pyhton Debugging Questions

University

25 Qs

PHP OOP Quiz I

PHP OOP Quiz I

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Aymane Benhima

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does OOP stand for in PHP?

Object-Oriented Programming

Object-Option Programming

Operational Object Programming

Oriented Object Protocol

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to create a class in PHP?

class

new

object

create

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to instantiate an object in PHP?

$obj = new ClassName;

$obj = ClassName->new();

$obj = create ClassName;

$obj = ClassName::create();

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to access object properties and methods in PHP?

->

=>

.

::

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the $this keyword in PHP OOP?

Refers to the current object

Refers to the parent class

Creates a new instance

Refers to a static method

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a public property in a PHP class?

public $propertyName;

var $propertyName;

$propertyName;

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which visibility modifier restricts access to only the current class?

private

protected

public

internal

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?