Quiz Summary
0 of 30 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
- 27
- 28
- 29
- 30
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 30
1. Question
Global $count; this statement indicates what?
-
Question 2 of 30
2. Question
Two broad types of control structures is branching and
-
Question 3 of 30
3. Question
Two main structures of branching are
-
Question 4 of 30
4. Question
Which of following operations are supported by PHP?
-
Question 5 of 30
5. Question
Loops that iterate for fixed number of times is called
-
Question 6 of 30
6. Question
Which loop evaluates condition expression as Boolean, if it is true, it executes statements and when it is false it will terminate?
-
Question 7 of 30
7. Question
Basic syntax for calling a function is
-
Question 8 of 30
8. Question
What will be the output of the following PHP code?
<?php
$x;
if ($x)
print “hi” ;
else
print “how are u”;
?> -
Question 9 of 30
9. Question
What will be the output of the following PHP code ?
<?php
$x = 0;
if ($x++)
print “hi”;
else
print “how are u”;
?> -
Question 10 of 30
10. Question
What will be the output of the following PHP code ?
<?php
$x;
if ($x == 0)
print “hi” ;
else
print “how are u”;
print “hello”
?> -
Question 11 of 30
11. Question
What will be the output of the following PHP code ?
<?php
$x = 0;
if ($x == 1)
if ($x >= 0)
print “true”;
else
print “false”;
?> -
Question 12 of 30
12. Question
What will be the output of the following PHP code ?
<?php
$a = 1;
if ($a–)
print “True”;
if ($a++)
print “False”;
?> -
Question 13 of 30
13. Question
What will be the output of the following PHP code ?
<?php
$a = 1;
if (echo $a)
print “True”;
else
print “False”;
?> -
Question 14 of 30
14. Question
What will be the output of the following PHP code ?
<?php
$a = 1;
if (print $a)
print “True”;
else
print “False”;
?> -
Question 15 of 30
15. Question
What will be the output of the following PHP code ?
<?php
$a = 10;
if (1)
print “all”;
else
print “some”
else
print “none”;
?> -
Question 16 of 30
16. Question
What will be the output of the following PHP code ?
<?php
$a = 10;
if (0)
print “all”;
if
else
print “some”
?> -
Question 17 of 30
17. Question
What will be the output of the following PHP code ?
<?php
$a = “”;
if ($a)
print “all”;
if
else
print “some”;
?> -
Question 18 of 30
18. Question
What will be the output of the following PHP code ?
<?php
$a = “a”;
if ($a)
print “all”;
else
print “some”;
?> -
Question 19 of 30
19. Question
What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 20;
if ($x > $y + $y != 3)
print “hi” ;
else
print “how are u”;
?> -
Question 20 of 30
20. Question
What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 20;
if ($x > $y && 1||1)
print “hi” ;
else
print “how are u”;
?> -
Question 21 of 30
21. Question
What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 20;
if ($x > $y && 1||1)
print “hi” ;
else
print “how are u”;
?><?php
if (-100)
print “hi” ;
else
print “how are u”;
?> -
Question 22 of 30
22. Question
What will be the output of the following PHP code ?
<?php
if (0.1)
print “hi” ;
else
print “how are u”;
?> -
Question 23 of 30
23. Question
What will be the output of the following PHP code ?
<?php
if (0.0)
print “hi” ;
else
print “how are u”;
?> -
Question 24 of 30
24. Question
What will be the output of the following PHP code ?
<?php
if (print “0”)
print “hi” ;
else
print “how are u”;
?> -
Question 25 of 30
25. Question
What will be the output of the following PHP code ?
<?php
$x = 1;
if ($x == 2)
print “hi” ;
else if($x = 2)
print $x;
else
print “how are u”;
?> -
Question 26 of 30
26. Question
What will be the output of the following PHP code ?
<?php
$x = 1;
if ($x = $x&0)
print $x ;
else
print “how are u”;
?> -
Question 27 of 30
27. Question
What will be the output of the following PHP code ?
<?php
$x = 1;
if ($x = $x&0)
print $x ;
else
print “how are u”;
?><?php
$x = 1;
if ($x = $x&0)
print $x;
else
break;
?> -
Question 28 of 30
28. Question
What will be the output of the following PHP code ?
<?php
$a = 100;
if ($a > 10)
printf(“M.S. Dhoni”);
else if ($a > 20)
printf(“M.E.K Hussey”);
else if($a > 30)
printf(“A.B. de villiers”);
?> -
Question 29 of 30
29. Question
What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 5;
$z = 3;
if ($x / $y / $z)
print “hi”;
else
print “hello”;
?> -
Question 30 of 30
30. Question
What will be the output of the following PHP code ?
<?php
if (!print “hi”)
if (print “hello”)
print “hi”;
?>