PHP MCQ

PHP MCQ

University

10 Qs

quiz-placeholder

Similar activities

Input Output File

Input Output File

University

10 Qs

SDF_B10B12Tutorial_December26

SDF_B10B12Tutorial_December26

University

10 Qs

ESBrotherX_Medical AI_Lecture

ESBrotherX_Medical AI_Lecture

University

7 Qs

Object Oriented BTech

Object Oriented BTech

University

15 Qs

OCS752_CP_MODEL 1_PART B (16.10.2020)

OCS752_CP_MODEL 1_PART B (16.10.2020)

University

10 Qs

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

PHP QUIZ

PHP QUIZ

University

14 Qs

C++ misc-1

C++ misc-1

University

15 Qs

PHP MCQ

PHP MCQ

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Ba Do

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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"};

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?