You are on page 1of 12

7/16/2019 W3Schools Quiz Results

w3schools.com

  HTML CSS MORE  

PHP Quiz Results


Score: 24 of 25

96% Correct:

Question 1:
What does PHP stand for?

 PHP: Hypertext Preprocessor     Your answer  

Private Home Page

Personal Hypertext Processor

Question 2:
PHP server scripts are surrounded by delimiters, which?

 <?php...?>     Your answer  

<&>...</&>

<script>...</script>
https://www.w3schools.com/quiztest/result.asp 1/12
7/16/2019 W3Schools Quiz Results

<?php>...</?>

Question 3:
How do you write "Hello World" in PHP

 echo "Hello World";     Your answer  

"Hello World";

Document.Write("Hello World");

Question 4:
All variables in PHP start with which symbol?

 $     Your answer  

&

Question 5:
What is the correct way to end a PHP statement?

 ;     Your answer  

</php>

New line

https://www.w3schools.com/quiztest/result.asp 2/12
7/16/2019 W3Schools Quiz Results

Question 6:
The PHP syntax is most similar to:

 Perl and C     Your answer  

VBScript

JavaScript

Question 7:
How do you get information from a form that is submitted using the "get" method?

 $_GET[];     Your answer  

Request.QueryString;

Request.Form;

Question 8:
When using the POST method, variables are displayed in the URL:

 False     Your answer  

True

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

 True     Your answer  

https://www.w3schools.com/quiztest/result.asp 3/12
7/16/2019 W3Schools Quiz Results

False

Question 10:
Include files must have the file extension ".inc"

 False     Your answer  

True

Question 11:
What is the correct way to include the file "time.inc" ?

 <?php include "time.inc"; ?>     Your answer  

<?php include file="time.inc"; ?>

<?php include:"time.inc"; ?>

<!-- include file="time.inc" -->

Question 12:
What is the correct way to create a function in PHP?

 function myFunction()     Your answer  

new_function myFunction()

create myFunction()

Question 13:
https://www.w3schools.com/quiztest/result.asp 4/12
7/16/2019 W3Schools Quiz Results

What is the correct way to open the file "time.txt" as readable?

 fopen("time.txt","r");     Your answer  

open("time.txt","read");

open("time.txt");

fopen("time.txt","r+");

Question 14:
PHP allows you to send emails directly from a script

 True     Your answer  

False

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

 $_SERVER     Your answer  

$_GLOBALS

$_GET

$_SESSION

Question 16:
What is the correct way to add 1 to the $count variable?

https://www.w3schools.com/quiztest/result.asp 5/12
7/16/2019 W3Schools Quiz Results

 $count++;     Your answer  

count++;

$count =+1

++count

Question 17:
What is a correct way to add a comment in PHP?

 /*...*/     Your answer  

*\...\*

<!--...-->

<comment>...</comment>

Question 18:
PHP can be run on Microsoft Windows IIS(Internet Information Server):

 True     Your answer  

False

Question 19:
The die() and exit() functions do the exact same thing.

 False     Your answer  

https://www.w3schools.com/quiztest/result.asp 6/12
7/16/2019 W3Schools Quiz Results

True     Correct answer  

Question 20:
Which one of these variables has an illegal name?

 $my-Var     Your answer  

$myVar

$my_Var

Question 21:
How do you create a cookie in PHP?

 setcookie()     Your answer  

makecookie()

createcookie

Question 22:
In PHP, the only way to output text is with echo.

 False     Your answer  

True

Question 23:
How do you create an array in PHP?
https://www.w3schools.com/quiztest/result.asp 7/12
7/16/2019 W3Schools Quiz Results

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

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

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

Question 24:
The if statement is used to execute some code only if a specified condition is true

 True     Your answer  

False

Question 25:
Which operator is used to check if two values are equal and of same data type?

 ===     Your answer  

!=

==

Close Quiz Results

https://www.w3schools.com/quiztest/result.asp 8/12
7/16/2019 W3Schools Quiz Results

W3Schools' Online Certification


The perfect solution for professionals who need to balance work, family, and career
building.

More than 25 000 certificates already issued!

Get Your Certificate »

The HTML Certificate documents your knowledge of HTML.

The CSS Certificate documents your knowledge of advanced CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The Python Certificate documents your knowledge of Python.

The jQuery Certificate documents your knowledge of jQuery.

The SQL Certificate documents your knowledge of SQL.

The PHP Certificate documents your knowledge of PHP and MySQL.

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The Bootstrap Certificate documents your knowledge of the Bootstrap framework.

COLOR PICKER

https://www.w3schools.com/quiztest/result.asp 9/12
7/16/2019 W3Schools Quiz Results

HOW TO

Tabs
Dropdowns
Accordions
Side Navigation
Top Navigation
Modal Boxes
Progress Bars
Parallax
Login Form
HTML Includes
Google Maps
Range Sliders
Tooltips
Slideshow
Filter List
Sort List

SHARE

 

CERTIFICATES
HTML
CSS
JavaScript
SQL
Python
PHP
jQuery
Bootstrap
XML

Read More »

https://www.w3schools.com/quiztest/result.asp 10/12
7/16/2019 W3Schools Quiz Results

REPORT ERROR

PRINT PAGE

FORUM

ABOUT

Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
W3.CSS Tutorial
Bootstrap Tutorial
PHP 5 Tutorial
PHP 7 Tutorial
jQuery Tutorial
Java Tutorial

Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS Reference
Bootstrap Reference
PHP Reference
HTML Colors
jQuery Reference
Angular Reference
Java Reference

Top Examples
HTML Examples
CSS Examples
JavaScript Examples
How To Examples
SQL Examples
Python Examples
W3.CSS Examples
Bootstrap Examples
PHP Examples
jQuery Examples

https://www.w3schools.com/quiztest/result.asp 11/12
7/16/2019 W3Schools Quiz Results

Java Examples
XML Examples

Web Certificates
HTML Certificate
CSS Certificate
JavaScript Certificate
SQL Certificate
Python Certificate
jQuery Certificate
PHP Certificate
Bootstrap Certificate
XML Certificate

Get Certified »

W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and
basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot
warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use,
cookie and privacy policy. Copyright 1999-2019 by Refsnes Data. All Rights Reserved.
Powered by W3.CSS.

https://www.w3schools.com/quiztest/result.asp 12/12

You might also like