Loading...
QUIZ

Certification Test

 
Que No. 1 ) Which PHP function is used to redirect the user to a different web page?

A.) redirect()
B.) move()
C.) header()
D.) refresh()


Que No. 2 ) How do you start a PHP session?

A.) start_session();
B.) begin_session();
C.) session_start();
D.) initiate_session();


Que No. 3 ) What does the PHP function "strlen()" do?

A.) It calculates the square root of a number.
B.) It returns the length of a string.
C.) It converts a string to uppercase.
D.) It generates a random number.


Que No. 4 ) Which PHP superglobal array contains information about the user's browser and system?

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


Que No. 5 ) How do you declare a variable in PHP?

A.) var myVariable;
B.) $myVariable;
C.) variable myVariable;
D.) myVariable;


Que No. 6 ) What is the purpose of the PHP "if" statement?

A.) To create a loop
B.) To define a function
C.) To execute code conditionally
D.) To include external files


Que No. 7 ) What does the PHP function "implode()" do?

A.) It splits a string into an array.
B.) It joins elements of an array into a string.
C.) It reverses the order of characters in a string.
D.) It converts a string to lowercase.


Que No. 8 ) Which PHP function is used to open and read the contents of a file?

A.) read_file()
B.) open_file()
C.) file_get_contents()
D.) read_contents()


Que No. 9 ) What is the correct way to concatenate two strings in PHP?

A.) string1 . string2
B.) string1 + string2
C.) string1 & string2
D.) string1 : string2


Que No. 10 ) Which operator is used for strict equality comparison in PHP?

A.) ==
B.) ===
C.) =
D.) !=