Welcome to this Web Based Test!!!

Please answer the following questions:


Name: *

E-mail: *

Choose your major area of study:

Question 1 (25 points)

How do you print "Hello World" in PHP?

A. system.out.println "Hello World"
B. echo "Hello World"
C. println "Hello World"
D. "Hello world"

Question 2 (25 points)

What is the correct way to create a variable with the value 10?

A. int val = 10
B. 10
C. val = 10
D. $val = 10

Question 3 (25 points)

How can you concatenate two strings in PHP?

A. "+"
B. "="
C. "-"
D. "."

Question 4 (25 points)

What function is used to remove whitespace from the beginning and end of a string?

A. trim()
B. empty()
C. clear()
D. function()

Show correct answers after submission.


Administrator ID: *
Password: *