Welcome to this Web Based Test!!!

Please answer the following questions:


Name: *

E-mail: *

Choose your major area of study:

Questons 1 (25points)

Which PHP loop is best suited to iterate over the following array?

$candies = array("skittles", "snickers", "nerds");

A. For loop
B. While loop
C. Do-while loop
D. Foreach loop

Questons 2 (25points)

Which PHP function is used to read an entire file into a string?

A. file_get_contents()
B. readfile()
C. fopen()
D. fread()

Questons 3 (25points)

What does the PHP function strlen() return?

A. The number of vowels in the string
B. The number of spaces in the string
C. The number of characters in the string
D. The last character in the string

Questons 4 (25points)

Which method is more secure for sending sensitive information like passwords?

A. GET
B. POST
C. Both are equally secure
D. Both are equally not secure

Show correct answers after submission.


Admistrator ID: *
Password: *