
PHP Quiz
Quiz
•
Instructional Technology
•
University
•
Practice Problem
•
Medium
Dalmar Yusuf
Used 1+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Full form of PHP is______
Hypertext Preprocessor
Pretext Hypertext Preprocessor
Processor Hypertext Processor
None of the above
Answer explanation
The full form of PHP is Hypertext Preprocessor, earlier it was called Personal Home Page, So the answer is Option A. PHP is called Hypertext Preprocessor because it is well documented and Open source means anyone can download it without any paying cost.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The default file extension in PHP are ____
.php
.css
.js
.html
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare the constant in PHP?
const
define
var
let
Answer explanation
The define is a function in PHP that is used to declare the constant define take 3 parameters like name, value, and check the case_sensative. So the correct way to declare the constant in PHP is to define.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does the name of the variable in PHP starts?
Sign !
Sign $
Sign &
Sign #
Answer explanation
The name of the variable in PHP starts with the Sign $ example: the syntax for initializing variable $a=20; Here a is variable followed by $ sign.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the syntax of comment in PHP?
/* */
#
//
All of the above
Answer explanation
There are 3 ways to write comments in PHP. /* / is a multiline comment you can comment as: / This is a multiple line comment /*, # This is a single-line comment in PHP and this is also // a single line comment you can write as // This is a single-line comment.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to add write the PHP code which of the below code editor is used?
Notepad++
Sublime
Visual code
All of the above
Answer explanation
Notepad ++, Sublime Text, and Visual code. These three are most used for writing the PHP script. These all are code editors
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the below method is used to generate the unique id in Php?
unique()
id()
mid()
None of the above
Answer explanation
The unique id is a function in PHP that is responsible for the generation of a unique id at some millisecond time. It doesn't guarantee the return value .unique id takes 2 parameter prefixes and more_entropy. And it supports in PHP 4+ version.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Revisão Programação Web - 2
Quiz
•
10th Grade - Professi...
20 questions
BCS Systems & Architecture Quiz 1
Quiz
•
University - Professi...
13 questions
Natural or man-made materials
Quiz
•
University
20 questions
IT01 CHAPTER 6
Quiz
•
University
15 questions
Generative AI
Quiz
•
University
16 questions
CPA CPF1 System Specifications
Quiz
•
8th Grade - Professio...
12 questions
Design 4 Delight
Quiz
•
University
20 questions
Pa Emission Study Guide
Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Instructional Technology
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
