Building Web Applications in PHP Week 5 Practice Quiz Answer
Hello Friends in this article i am gone to share Building Web Applications in PHP Week 5 Practice Quiz Answer with you..
Building Web Applications in PHP Week 5 Practice Quiz Answer
Visit this link: Building Web Applications in PHP Week 3 Practice Quiz Answer
PHP
Question 1)
What does PHP stand for?
- Private Home Page
- PHP: Hypertext Preprocessor
- Personal Home Page
- Personal Hypertext Processor
Question 2)
PHP Server scripts are surrounded by?
- <?php>…</?>
- <script>…</script>
- <&>…</&>
- <?php … ?>
Question 3)
The PHP syntax is most similar to:
- Perl and C
- VBScript
- JavaScript
- Fortran
Question 4) Which of the following are operators in PHP?
- ===
- __
- !=
- ++
- _:
- .+
Question 5)
What is the output of the following?
$x = 12; $y = 12 + $x++; echo "y = $y x = $x";
- y = 25 x = 13
- y = 24 x = 12
- y = 24 x = 13
- y = $y x = $x
Question 6)
What value will var_dump show that echo will not show?
- False
Question 7)
What is a correct way to add a comment in PHP?
- <!– … –>
- *..*
- /* … */
- <comment> … </comment>
Question 8)
All variables in PHP start with [_________] symbol.
- $
Question 9) What is the value returned by: (int) 9.9 – 1
- 8
Question 10)
Use the [_____] operator to test if two values are identical in both value and type.
- ===
Question 11)
What is the value of $x?
$x = 1200 + "34";
- 1234
Question 12)
In PHP you can use both single quotes ( ‘ ‘ ) and double quotes ( ” ” ) for strings.
- True
- False
Question 13)
PHP and HTML cannot be intermingled in the same file.
- True
- False
Question 14)
Which escape sequences can be used in single quoted ( ‘ ) strings in PHP?
- “
- n
- r
- \
- ‘
Question 15)
You cannot run PHP files from the command line.
- True
- False
Question 16)
You can run PHP files on a server.
- True
- False
Question 17)
In PHP, variable names are case sensitive.
- True
- False
Question 18)
In PHP, functions names are not case sensitive.
- True
- False