PHP class and object

PHP class and object

10th Grade

8 Qs

quiz-placeholder

Similar activities

Space exploration

Space exploration

6th Grade - Professional Development

6 Qs

Programación Orientada a Objetos

Programación Orientada a Objetos

9th - 12th Grade

10 Qs

AP CSA Unit 9 Inheritance - Polymorphism

AP CSA Unit 9 Inheritance - Polymorphism

10th - 12th Grade

8 Qs

APCSA Inheritance

APCSA Inheritance

10th - 12th Grade

8 Qs

Function evaluation

Function evaluation

10th - 12th Grade

10 Qs

OCR Computer Science GCSE - Secondary Storage quickfire

OCR Computer Science GCSE - Secondary Storage quickfire

9th - 11th Grade

10 Qs

quiz_base_fill_in _blank

quiz_base_fill_in _blank

9th - 10th Grade

10 Qs

Flowcharts and algorithms

Flowcharts and algorithms

8th - 10th Grade

8 Qs

PHP class and object

PHP class and object

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Suyog Dhoot

Used 4+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Following is not access specifier in php

public

friend

protected

private