Loading...
QUIZ

Certification Test

 
Que No. 1 ) What does PHP stand for?

A.) Personal Home Page
B.) Preprocessed Hypertext Processor
C.) Private Hyperlink Protocol
D.) Public Hypertext Programming


Que No. 2 ) Which symbol is used to start a PHP variable?

A.) $
B.) @
C.) #
D.) &


Que No. 3 ) What is the correct way to end a PHP statement?

A.) ;
B.) :
C.) |
D.) ,


Que No. 4 ) Which of the following is NOT a PHP data type?

A.) Integer
B.) Float
C.) String
D.) Double


Que No. 5 ) How do you comment out a single line in PHP?

A.) // This is a comment
B.) /* This is a comment */
C.) # This is a comment
D.) -- This is a comment


Que No. 6 ) Which function is used to output text in PHP?

A.) print()
B.) echo()
C.) write()
D.) println()


Que No. 7 ) What is the correct way to define a constant in PHP?

A.) define_constant("PI", 3.14159);
B.) constant("PI", 3.14159);
C.) define("PI", 3.14159);
D.) const PI = 3.14159;


Que No. 8 ) Which superglobal array is used to collect form data after submitting an HTML form with the POST method?

A.) $_POST
B.) $_GET
C.) $_REQUEST
D.) $_SERVER


Que No. 9 ) How do you declare a function in PHP?

A.) create function myFunction() {}
B.) def myFunction(): void {}
C.) function myFunction() {}
D.) func myFunction() {}


Que No. 10 ) What is the correct way to include an external PHP file?

A.) include "file.php";
B.) require "file.php";
C.) import "file.php";
D.) load "file.php";