Search Header Logo

PHP class and object

Authored by Suyog Dhoot

Computers

10th Grade

Used 4+ times

PHP class and object
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Object is instance of

Methods

Members

Class

Construcor

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class tyif

{

public $a;

}

in the above code $a is

Member

Property

Method

Destructor

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A class can have minimum ___ property and ___ methods

1,1

1,0

0,1

0,0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify correct syntax to create object of class tyif

t1=new tyif()

$t1=new tyif

$1t=new tyif()

$t1=new tyif()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Constructor name starts with

_

__

construct

destruct

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify incorrect statement

__construct($p)

__construct()

__destruct($p)

__destruct()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Destructor get executed when ___ get exited

class

object

method

constructor

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?