Register|Login

Have a question? Click here to ask the community.

Quiz 2 – Syntax

| In: PHP Quizzes | 51,121 views

*You are currently not logged in and your quiz score will not be recorded. Please login or register if you would like to submit your quiz score.

Directions: Answer all questions. Any questions skipped will be scored as wrong answers. Good Luck! 🙂

1. How do you start the standard form PHP scripting block?

<?php … ?>
<? … ?>
<? … ?php>
<?php … php?>

2. How do you start the shorthand form PHP scripting block?

<?php … ?>
<? … ?>
<? … ?php>
<?php … php?>

3. Whitespace is not ignored in PHP?

True
False

4. For maximum compatibility, you should use the shorthand form to create PHP scripts?

True
False

5. What does a semicolon signify at the end of a instruction or statement?

the end of a PHP statement or instruction
the start of a PHP statement or instruciton
to ignore a PHP statement or instruciton

6. If a source file contains PHP code, what extension should be used?

.html
.psd
.php
.jpeg

7. Syntax is a set of rules that must be followed to write properly structured code?

True
False



2 Responses to Quiz 2 – Syntax

Avatar

Angela Flowers

May 7th, 2011 at 8:18 am

Thank you for these tutorials 🙂

Avatar

remoarun

July 3rd, 2015 at 2:11 am

wht about my marks

Comment Form

You must be logged in to post a comment.

Users Online

Users Online: 2 Users

Most Users Ever Online: 91

Quiz Scores

Advertisments