PHP

PHP

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Shajeel Afzal

Used 13+ times

FREE Resource

Student preview

quiz-placeholder

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

PHP is a...

Markup language

Website

Home page

Server side programming language

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Can you run PHP on Linux?

Yes

No

In certain condition

None of above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is correct when using PHP with the script tag?

<script type="application/ecmascript">

<script type="text/javascript">

<script language="php">

All of these

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is the most widely recommended way to use PHP tags?

<?

<php

<?php

None of these

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following characters indicates comments in PHP?

<!----

//

***

None

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct syntax?

echo "(<p> Hello.</p>);

echo "<p> Hello.</p>";

echo (<p>' Hello.'</p>);

All are correct

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In the example, why did we get a PHP error?

The variable was not defined within the function

The PHP tag was not opened

A syntax error

None of above

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?