- Preprocessed Hypertext Page
- Hypertext Transfer Protocol
- PHP: Hypertext Preprocessor
- Hypertext Markup Language
What do you know about PHP?
- Question 1: What does PHP represent:
- Question 2: The following code, print out the following value
- first
- 2
- 3
- There is no answer
-
- Question 3: The following code, print out the following value
- HELLO WORLD!
- hello world!
- hello wolrd
- Failed to run, report an error
-
- Question 4: Which of the following code snippets is used to annotate PHP
- / * commented code here * /
- // you are handsome
- # you are gay
- All the above comments
-
- Question 5. The default of a variable with no value is shown with the keyword
- none
- null
- undef
- There is no such concept in PHP
-
- Question 6: What symbols are used when using variables in PHP?
- $$
- $
- @
- #
-
- Question 7: The following code, print out the following value
- false
- true
- Void
- true false
-
- Question 8: Which of the following functions is used to declare constants
- const
- constants
- define
- def
-
- Question 9: The following code, print out the following value
$ var = '0';
if ($ var) {
echo 'true';
} else {
echo 'false';
}- false
- true
- void
- true false
-
- Question 10: Value of the following parameter
$ var = 1/2;
- first
- 0
- 0.5
- 1/2
-
- Question 11: Access to the word section with value 'd'
$ a = array (
'a',
3 => 'b',
1 => 'c',
'd'
);- $ a [1]
- $ a [2]
- $ a [3]
- $ a [4]
-
- Question 12: Which of the following answers is not predetermined by PHP (Magic constants)
- __LINE__
- __FILE__
- __DATE__
- __METHOD__
-
- Question 13: The following code, print out the following value
$ a = array ();
if ($ a == null) {
echo 'true';
} else {
echo 'false';
}- true
- false
- no print
- A and B
-
- Question 14: The following code, print out the following value
if (null === false) {
echo 'true';
} else {
echo 'false';
}- true
- false
- error
- A and B
-
- Question 15: The following code, print out the following value
- 22
- 11
- 39
- 29
-
- Question 16: Where is not the math used in comparison in PHP?
- ===
- > =
- ! =
- <=>
-
- Question 17: The following code, print out the following value
$ var = 'a';
$ VAR = 'b';
echo "$ var $ VAR";- ab
- aa
- bb
- AB
-
- Question 18: The following code, print out the following value
$ a = array (
null => 'a',
true => 'b',
false => 'c',
0 => 'd',
1 => 'e',
'' => 'f'
);
echo count ($ a);- 2
- 3
- 5
- 6
-
- Question 19: The following code, print out the following value
class MyException extends Exception {}
try {
throw new MyException ('Oops!');
} catch (Exception $ e) {
echo "Caught Exception";
} catch (MyException $ e) {
echo "Caught MyException";
}- Caught Exception
- Caught MyException
- Not executed
-
- Question 20: The following code, print out the following value
$ a = 1;
{
$ a = 2;
}
echo $ a;- first
- 2
- twelfth
-
Update 24 May 2019
You should read it
- Test on C programming P4
- Test on C programming P6
- Test of programming C P5
- Test about C programming
- Test about programming C P2
- Test about programming C P3
- Set of multiple choice questions about programming with P17 prize
- JAVA test on P3
- JAVA test test P1
- Set of multiple choice questions for programming with P8 prizes
- Set of multiple choice questions about programming with P12
- Set of multiple choice questions about programming with P10 prize
Maybe you are interested
Plot Mafia III: Start the journey of revenge and build a new mafia empire - P.2 Mafia in the game - Life and death with numbers, richness due to heaven Ransomware appears to require users to play PUBG for 1 hour instead of ransom Quickly register to play Age of Empires 4K upgrade version of the graphic How to log in Rules of Survival with Facebook Top best free horror game on PC and download link