
PHP MCQ
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Ba Do
Used 13+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
TY A Web Technologies -II (Chapter 1 and 2) Quiz
Quiz
•
University
10 questions
Java Programming Basics
Quiz
•
University
15 questions
Laravel-Manajemen-User
Quiz
•
University
10 questions
Analysis of Algorithms
Quiz
•
University
12 questions
Лекция 15. Контейнеры STL
Quiz
•
University
15 questions
BASIC C QUIZ
Quiz
•
University
15 questions
IT Quiz
Quiz
•
University
10 questions
FOP - CHAPTER 6
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
