
PHP FUNDAMENTALS
Authored by Roshina Faber
Design
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is PHP?
PHP is an open-source programming language
PHP is used to develop dynamic and interactive websites
PHP is a server-side scripting language
All of the mentioned
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does PHP stand for?
PHP stands for Preprocessor Home Page
PHP stands for Pretext Hypertext Processor
PHP stands for Hypertext Preprocessor
PHP stands for Personal Hyper Processor
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct way to add a comment in PHP code?
#
//
/* */
All of the mentioned
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the default file extension of PHP files?
.php
.ph
.xml
.html
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How to define a function in PHP?
functionName(parameters) {function body}
function {function body}
function functionName(parameters) {function body}
data type functionName(parameters) {function body}
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
$GREETING
no output
PHP is a scripting language
GREETING
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the value of the variable $input in the following PHP program?
<?php
$input = "PHP<td>stands for</td>Hypertext<i>Preprocessor</i>!";
$input = strip_tags($input,"<i></i>");
echo $input;
?>
PHP stands for Hypertext <i>Preprocessor</i>!
PHP stands for Hypertext Preprocessor!
PHP <td>stands for</td> Hypertext <i>Preprocessor</i>!
PHP <td>stands for</td> Hypertext Preprocessor!
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?