W3Schools PHP Quiz

handsgridServers

Dec 4, 2013 (3 years and 8 months ago)

159 views

W3Schools PHP Quiz

PHP QUIZ

Points: 11 out of 20


1. What does PHP stand for?

You answered:

Personal Hypertext Processor



Wrong Answer!


2. PHP server scripts are surrounded by delimiters, which?



Correct Answer!


3. How do you write "Hello World" in PHP



Correct Answer!


4. All variables in PHP start with which symbol?



Correct Answer!


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



Correct Answer!


6. The PHP syntax is most similar to:



Correct Answer!


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



Correct Answer!


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



Correct Answer!


9. In PHP you can use both single quotes ( ' '

) and double quotes ( " " ) for strings:

You answered:

False



Wrong Answer!


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

You answered:

True



Wrong Answer!


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

You answered:

<?php i
nclude_file("time.inc"); ?>



Wrong Answer!


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

You answered:

new_function myFunction()



Wrong Answer!


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

You answered:

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



Wrong Answer!


14. PHP allows you to send emails directly from a script



Correct Answer!


15. What is the correct way to connect to a MySQL database?



Correct Answer!


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

You answered:

$count =+1



Wrong Answer!


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

You answered:

<comment>…</comment>



Wrong Answer!


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



Correct Answer!


19. In PHP 5,
MySQL support is enabled by default:

You answered:

True



Wrong Answer!


20. Which one of these variables has an illegal name?



Correct Answer!




By W3Schools

Time spent: 5:01


W3Schools PHP Quiz

PHP QUIZ

Points: 11 out of 20


1. What does PHP stand

for?

You answered:

Personal Hypertext Processor



Wrong Answer!


2. PHP server scripts are surrounded by delimiters, which?



Correct Answer!


3. How do you write "Hello World" in PHP



Correct Answer!


4. All variables in PHP start with which symbol?



Correct Answer!


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



Correct Answer!


6. The PHP syntax is most similar to:



Correct Answer!


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



Correct Answer!


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



Correct Answer!


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

You answered:

False



Wrong Answer!


10. Include files must have the file extension ".in
c"

You answered:

True



Wrong Answer!


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

You answered:

<?php include_file("time.inc"); ?>



Wrong Answer!


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

You answered:

new_function
myFunction()



Wrong Answer!


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

You answered:

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



Wrong Answer!


14. PHP allows you to send emails directly from a script



Correct Answer!


15. What is the correc
t way to connect to a MySQL database?



Correct Answer!


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

You answered:

$count =+1



Wrong Answer!


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

You answered:

<comment>…</comment>



Wron
g Answer!


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



Correct Answer!


19. In PHP 5, MySQL support is enabled by default:

You answered:

True



Wrong Answer!


20. Which one of these variables has an illegal name?



Correct Answer!




By W3Schools

Time spent: 5:01