Quiz Summary
0 of 26 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
Your time:
Time has elapsed
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 26
1. Question
What does PHP stand for?
-
Question 2 of 26
2. Question
Who is the father of PHP?
-
Question 3 of 26
3. Question
PHP files have a default file extension of
-
Question 4 of 26
4. Question
A PHP script should start with ___ and end with ___:
-
Question 5 of 26
5. Question
Which of the looping statements is/are supported by PHP? i) for loop ii) while loop iii) do-while loop iv) foreach loop
-
Question 6 of 26
6. Question
Which of the following is/are a PHP code editor? ditor? i) Notepad ii) Notepad++ iii) Adobe Dreamweaver iv) PDT
-
Question 7 of 26
7. Question
Which of the following must be installed on your computer so as to run PHP script? i) Adobe Dreamweaver ii) PHP iii) Apache iv) IIS
-
Question 8 of 26
8. Question
Which version of PHP introduced Try/catch Exception?
-
Question 9 of 26
9. Question
We can use ___ to comment a single line? i) /? ii) // iii) # iv) /* */
-
Question 10 of 26
10. Question
Which of the below symbols is a newline character?
-
Question 11 of 26
11. Question
Which of the following php statement/statements will store 111 in variable num? i) int $num = 111; ii) int mum = 111; iii) $num = 111; iv) 111 = $num;
-
Question 12 of 26
12. Question
What will be the output of the following php code < ?php $num = 1; $num1 = 2; print $num . “+”. $num1 ; ?>
-
Question 13 of 26
13. Question
What will be the output of the following php code? < ?php $num = “1”; $num1 = “2”; print $num+$num1 ; ?>
-
Question 14 of 26
14. Question
Which of following variables can be assigned a value to it? (i) $3hello (ii) $_hello (iii) $this (iv) $This
-
Question 15 of 26
15. Question
What will be the output of the following code? < ?php $foo = ‘Bob’; $bar = &$foo; $bar = “My name is $bar”; echo $bar; echo $foo; ?>
-
Question 16 of 26
16. Question
If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?
-
Question 17 of 26
17. Question
Which of the following PHP statements will output Hello World on the screen? (i) echo (“Hello World”); (ii) print (“Hello World”); (iii) printf (“Hello World”); (iv) sprintf (“Hello World”);
-
Question 18 of 26
18. Question
What will be the output of the following PHP code? < ?php $color = “maroon”; $var = $color[2]; echo “$var” ; ?>
-
Question 19 of 26
19. Question
What will be the output of the following PHP code? < ?php $score = 1234; $scoreboard = (array) $score; echo $scoreboard[0]; ?>
-
Question 20 of 26
20. Question
What will be the output of the following PHP code? < ?php $total = “25 students”; $more = 10; $total = $total + $more; echo “$total” ; ?>
-
Question 21 of 26
21. Question
Which of the below statements is equivalent to $add += $add ?
-
Question 22 of 26
22. Question
Which statement will output $x on the screen?
-
Question 23 of 26
23. Question
What will be the output of the following code? < ?php function track() { static $count = 0; $count++; echo $count ; } track(); track(); track(); ?>
-
Question 24 of 26
24. Question
What will be the output of the following PHP code? < ?php $a = “clue”; $a .= “get”; echo “$a”; ?>
-
Question 25 of 26
25. Question
What will be the output of the following PHP code? < ?php $team = “arsenal”; switch ($team) { case “manu”: echo “I love man u”; case “arsenal”: echo “I love arsenal”; case “manc”: echo “I love manc”; } ?>
-
Question 26 of 26
26. Question
What will be the output of the following PHP code? < ?php $num = 10; echo ‘What is her age? \n She is $num years old’; ?>