Search Header Logo

PHP - Prelim Exam Part 1

Authored by Wendell Cabalhin

Computers

University

PHP - Prelim Exam Part 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 3 pts

Identify the access modifier. Select all that applies

Static

Public

Protected

Private

Class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

we need to use what keyword in order to approach the class's own properties and methods from within the class

$this

$var

object

self

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is automatically called when an object is created from a class?

__construct

__build

__create

__init

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which visibility keyword allows access to class members from anywhere?

public

private

protected

internal

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following?

<?php echo; "My first PHP script!"; ?>

warning

error

My first PHP script!

(blank)

6.

MULTIPLE SELECT QUESTION

45 sec • 2 pts

A _________ parse and execute PHP code, and return the results to the Web server. Select all that applies.

PHP server

PHP compiler

PHP Interpreter

PHP Component

PHP script

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chaining methods and properties possible?

TRUE

FALSE

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?