PHP MCQ
Soopro Pathshala provides PHP MCQ(Multiple Choice Questions)
1. What is PHP?
a) PHP is an open-source programming language
b) PHP is used to develop dynamic and interactive websites
c) PHP is a server-side scripting language
d) all of the mentioned
View Answer
Answer: (d) all of the mentioned
2. Who is the father of PHP?
a) Drek Kolkevi
b) Rasmus Lerdorf
c) William Makepiece
d) List Barely
View Answer
Answer: (b) Rasmus Lerdorf
3. What does PHP stand for?
a) PHP stands for Preprocessor Home Page
b) PHP stands for Pretext Hypertext Processor
c) PHP stands for Hypertext Preprocessor
d) PHP stans for Personal Hyper Processor
View Answer
Answer: (c) PHP stands for Hypertext Preprocessor
4. Which of the following PHP functions can be used for generating unique IDS?
a) md5()
b) uniqueid()
c) mdid()
d) id()
View Answer
5. Which sign is used to declare variables in PHP?
a) @
b) $
c) &
d) _
View Answer
6. Which statement commonly used for PHP output?
a) write
b) php.write
c) log
d) echo
View Answer
7. Which is not a valid variable scope in PHP?
a) local
b) global
c) static
d) external
View Answer
8. PHP is a ___language?
a) user-side scripting
b) client-side scripting
c) server-side scripting
d) both b and c
View Answer
Answer: (c) server-side scripting
9. Is PHP case sensitive language?
a) Yes
b) No
c) cant say
d) none of these
View Answer
10. What is the extension of a php file?
a) .php
b) .ph
c) .phpfile
d) all of the above
View Answer