PHP MCQ

PHP MCQ

University

10 Qs

quiz-placeholder

Similar activities

AWD - Midterm Quiz

AWD - Midterm Quiz

University

15 Qs

PHP

PHP

University

10 Qs

Web Dev Midterm Quiz

Web Dev Midterm Quiz

University

15 Qs

Quiz dmi2

Quiz dmi2

12th Grade - University

10 Qs

Functions and Modules

Functions and Modules

University

10 Qs

11 câu trắc nghiệm PHP

11 câu trắc nghiệm PHP

University

11 Qs

PHP PARA NOVATOS

PHP PARA NOVATOS

University

14 Qs

Evaluación de Entrada de Programación II

Evaluación de Entrada de Programación II

University

10 Qs

PHP MCQ

PHP MCQ

Assessment

Quiz

Computers

University

Hard

Created by

Ba Do

Used 13+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does PHP stand for?

Personal Hypertext Processor

Hypertext Preprocessor

Private Home Page

Personal Home Page

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

PHP server scripts are surrounded by delimiters, which?

<&>...</&>

<?php..?>

<?php> ..</?>

<script>...</script>

3.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

How do you write "Hello World" in PHP?

echo "Hello World";

echo("Hello World");

document.write("Hello World");

print "Hello World";

4.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which statement below is correct?

XSS enables attackers to inject client-side script into Web pages viewed by other users.

htmlspecialchars() function is used to avoid hacker-defined scripts

Both GET and POST create an array that holds key/value pairs from the user's input.

$_SERVER["PHP_SELF"] sends the submitted form data to the page itself, instead of jumping to a different page

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings?

True

False

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which superglobal variable holds information about headers, paths, and script locations?

$_SESSION

$_ENV

$_SERVER

$_GLOBAL

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you create an array in PHP?

$cars = array["Volvo", "BMW", "Toyota"];

$cars = "Volvo", "BMW", "Toyota";

$cars = array("Volvo", "BMW", "Toyota");

$cars = {"Volvo", "BMW", "Toyota"};

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?