Logo

Php Questions Set 61:

Quiz Mode

Which operator is used to access static values in a class?

1
2
3
4

Solution:

Which format parameter can be used to identify the time zone?

1
2
3
4

Solution:

How many predefined exceptions does SPL provide access to? 

1
2
3
4

Solution:

Which keyword is used to break out of a loop?

1
2
3
4

Solution:

What does GTK stand for?

1
2
3
4

Solution:

If $num = 1 , then what will be returned when($num == 1 ) ? "hello" : "world" is executed?

1
2
3
4

Solution:

 What will be the output of the following PHP code? 

 

<?php
if (!print "hi")
   if (print "hello")
print "hi";
?>

1
2
3
4

Solution:

Which one of the following is the right way to invoke a method?

1
2
3
4

Solution:

 Which one of the following can be used to instantiate an object in PHP assuming class name to be Foo?

1
2
3
4

Solution:

What is the output of the following PHP code?

<?php

$text = "this is\tsome text that\nwe might like to parse.";

print_r(split("[\n\t]",$text));

?>

1
2
3
4

Solution: