Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

Welcome to All Test Answers

Quiz 1 – PHP


 

Download  file with the answers

Not a member!
Create a FREE account here to get access and download this file with answers


 

Question 1
1. FTP programs like FileZilla can be used to connect and transfer files to a web server.
True
False
2 points
Question 2
1. When connecting to a web server, you must know the address of the server, as well as your login username and password.
True
False
2 points
Question 3
1. PHP statements are usually terminated by

a. a closing brace “}”

b. a semicolon

c. the \n character

d. a return character
2 points
Question 4
1. Omitting a semi-colon at the end of a PHP statement invariably results in an error message.
True
False
2 points
Question 5
1. PHP scripts must be run on a PHP-enabled web server.
True
False
2 points
Question 6
1. PHP code is executed on the server.
True
False
2 points
Question 7
1. When you concatenate a variable with a string the variable has to contain text?
True
False
2 points
Question 8
1. In order to view your server-side web pages in a browser, you must pay special attention to where you post your web pages on the server.
True
False
2 points
Question 9
1. What symbol is used to concatenate multiple strings together in PHP?

a. ++

b. .

c. +

d. &
2 points
Question 10
1. Which form tag would you use to connect a form to a PHP script?

a.

b.

c.

d.

2 points
Question 11
1. How do you indicate the start of a block of PHP code?a. // phpb.

c. ?>

d. 2 points
Question 12
1. The following is valid PHP code.

echo “Hello There!”
;
?>
True
False
2 points
Question 13
1. The following is a valid PHP statement.

echo “This is a backslash: \\”;
True
False
2 points
Question 14
1. The following is a valid PHP statement.

ECHO “This is only the beginning “;
True
False
2 points
Question 15
1. In PHP, a variable named $Var1 and another variable named $var1 are treated as two separate variables.
True
False
2 points
Question 16
1. What does PHP stand for?

a. PHP:Hypertext Processor

b. Pretty Hot Program

c. Personal Home Page

d. Popular Home Pages
2 points
Question 17
1. How does PHP code get turned into HTML/CSS code?

a. php can’t be converted into HTML

b. server runs the PHP code and converts it into HTML code before sending it along to the browser for viewing

c. none of the above

d. the browser converts the code to HTML
2 points
Question 18
1. To process data submitted from a form in a PHP program , you access the variable by prefixing the name of the form element with the ampersand (&) character.
True
False
2 points
Question 19
1. The following is valid PHP code.

echo “Hello There!” . “
“;
?>
True
False
2 points
Question 20
1. The following is valid code that could exist in a .php document.


the middle …

True
False
2 points
Save and Submit
Click Save and Submit to save and submit. Click Save All Answers to save all answers.

About

Leave a reply

Captcha Click on image to update the captcha .

error: Content is protected !!