Edu
Hub
Courses
AI Tools
Leaderboard
Login/Register
AR
Abdullah Rashid
abdullah@example.com
Navigation
📚
Courses
🏆
Leaderboard
✨
AI Tools
←
PHP Basic
⏱
15:00
Quit
0 / 10 answered
0%
PHP Basic
10 questions · Medium difficulty · 00:20:00 min
🔥 In Progress
Question 1
What does PHP stand for?
PHP: Hypertext Preprocessor
Personal Home Page
Preprocessed Hypertext Page
Private Hosting Protocol
Question 2
Which of the following tags is the correct way to embed PHP code in an HTML file?
<? ... ?>
<script language="php"> ... </script>
<?php ... ?>
<& php ... &>
Question 3
Which of the following is the correct way to declare a variable in PHP?
$variable_name = value;
String $variable_name = value;
variable_name = value;
variable_name = value;
Question 4
<?php $color = "red"; echo "My car is $color"; ?>
My car is followed by the memory address of $color
My car is (with an error)
My car is $color
My car is $color
Question 5
Which of the following is NOT a valid PHP data type?
Boolean
Character
Float
Integer
Question 6
Which of the following is NOT a valid PHP data type?
Boolean
Integer
Float
Character
Question 7
Which of the following is NOT a valid PHP data type?
Float
Character
Boolean
Integer
Question 8
Which of the following is NOT a valid PHP data type?
Integer
Character
Float
Boolean
Question 9
What is the correct way to create a constant in PHP?
Both A and B are correct ways.
constant PI = 3.14;
define("PI", 3.14);
const PI = 3.14;
Question 10
Velit quo eligendi e
Quia adipisci quasi
Quaerat sit illo exe
Sint accusamus ex i
Sit omnis et consec
✅ Answered:
0
⬜ Unanswered:
8
📊
20%
done
Submit Answers →