PHP MCQ Questions with Answer for Fresher
Categories: MCQS
PHP MCQ Questions with Answer for Fresher
1) PHP represents -
- Hypertext Preprocessor
- Appearance Hypertext Preprocessor
- Individual Home Processor
- Nothing unless there are other options
Reply: (a) Hypertext Preprocessor
2) Who is known as the dad of PHP?
- Drek Kolkevi
- List Scarcely
- Rasmus Lerdrof
- Nothing unless there are other options
Reply: (c) Rasmus Lerdrof
3) Variable name in PHP begins with -
- ! (Interjection)
- $ (Dollar)
- & (Ampersand)
- # (Hash)
Reply: (b) $ (Dollar)
4) Which of coming up next is the default record expansion of PHP?
- .php
- .hphp
- .xml
- .html
Reply: (a) php
5) Which of coming up next is definitely not a variable extension in PHP?
- Extern
- Nearby
- Static
- Worldwide
Reply: (a) Extern
6) Which of coming up next is right to add a remark in php?
- & …… &
- // ……
- /* …… */
- Both (b) and (c)
Reply: (d) Both (b) and (c)
7) Which of coming up next is utilized to show the result in PHP?
- reverberation
- compose
- Both (a) and (c)
Reply: (d) Both (a) and (c)
8) Which of coming up next is the utilization of strlen() capability in PHP?
- The strlen() capability returns the kind of string
- The strlen() capability returns the length of string
- The strlen() capability returns the benefit of string
- The strlen() capability returns both worth and sort of string
Reply: (b) The strlen() capability returns the length of string
9) Which of coming up next is utilized for connection in PHP?
- + (additionally)
- *(Reference mark)
- . (spot)
- affix()
Reply: (c) . (spot)
10) Which of the accompanying beginnings with __ (twofold highlight) in PHP?
- Inbuilt constants
- Client characterized constants
- Sorcery constants
- Default constants
Reply: (c) Wizardry constants