Podcast
Questions and Answers
Which of the following is a correct statement about PHP?
Which of the following is a correct statement about PHP?
- PHP is a client-side scripting language similar to JavaScript.
- PHP is a server scripting language used for making dynamic and interactive web pages. (correct)
- PHP is a closed-source product developed by Microsoft.
- PHP is primarily used for graphic design and animation.
How are PHP scripts embedded in HTML documents?
How are PHP scripts embedded in HTML documents?
- By directly inserting PHP code without any tags
- Externally using the
- Internally using the <?php ?> tag (correct)
- Using the tag
What is the correct way to denote a variable name in PHP?
What is the correct way to denote a variable name in PHP?
- Variables do not require any special notation
- Every variable name begins with a $ (correct)
- Every variable name begins with @
- Variables are denoted using the % symbol
How are compound statements formed in PHP?
How are compound statements formed in PHP?
What are the two basic ways to get output in PHP?
What are the two basic ways to get output in PHP?