What do you know about PHP?
- Question 1: What does PHP represent:
- Preprocessed Hypertext Page
- Hypertext Transfer Protocol
- PHP: Hypertext Preprocessor
- Hypertext Markup Language
-
- 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
-
4 ★ | 1 Vote
You should read it
May be interested
- Check out the 'buffalo' Pokémon in Pokémon Goeach type of pokemon has hp, cp, ability to attack and endure differently. based on these indicators, players can determine as well as choosing the most powerful pokemon for their offensive tactics.
- Sitting home can also locate Pokemon around, do you believe it?the tightening of the niantic developers' rules to prevent players from abusing the support tools also brings annoyance, such as those who have no conditions to move much, go away, it is hard to know. get the location of the pokemon around the area they live in
- 5 undeniable benefits when playing Pokemon Goget to know many new people, breathe fresh air, relieve stress, increase concentration thanks to going out for a walk .... are compelling reasons to force you to try pokemon go now .
- Want to earn the fastest Pokécoins in Pokémon Go? So don't miss this article!pokécoins in pokémon go play the role of buying items in the store. the more coins you earn, the more likely you are to buy more items. to earn pokécoins, players will have to complete certain tasks or buy real money.
- Pokémon systems when fighting in Pokémon Goeach pokémon system in pokémon go has different strengths, along with a specific weakness. this type of pokémon will have the power to attack the other pokémon, but can defeat the other pokémon. if you know the characteristics of each type, it will be easier to choose which pokémon to battle.
- The terms you need to know when playing Pokémon Gopokémon go is the most prominent name in recent days. this game of capturing and training virtual animals has created a relatively new way of playing, as players have to constantly move to catch pokémon. during the process of joining pokémon go, you will encounter and use a lot of important terms. so what do they mean?
- How to play Pokemon GO on Windows computersrecently, pokemon go has become a popular game, attracting thousands of gamers around the world. in previous posts network administrator has guided you on how to play pokemon go on android devices and ios devices. in the article below, network administrator will guide you how to play pokemon go on windows computers using bluestacks emulator software.
- How to become a good Pokémon Go hunter?with a new way of playing, pokémon go has created a new phenomenon in the game village around the world. players will have to go around and find pokémon for themselves. so how to quickly catch pokémon and in large numbers?
- Things to know to upgrade Pokémon in Pokémon Gothe whirlwind pokémon go has spread its power right on the first day of its release. everyone rushed to the street to find a pokémon for themselves. therefore, in order to become a pokémon hunter, you need to master the basics of participating in pokémon go battlefield.
- List of medals received in Pokemon Goin addition to getting items when leveling up, gamers who join pokemon go also have the opportunity to receive their proud achievements.