Logo

Php Questions Set 45:

Quiz Mode

The DateTime class has ___ constants.

1
2
3
4

Solution:

 [:alpha:] can also be specified as __________ 

1
2
3
4

Solution:

Which one of the following variables cannot be used inside a static method?

1
2
3
4

Solution:

 What does SPL stand for? 

1
2
3
4

Solution:

 The date() function returns ___ representation of the current date and/or time.

1
2
3
4

Solution:

What does the acronym PHP stand for?

1
2
3
4

Solution:

 What will be the output of the following PHP code? 

 

<?php

$num = 1;

$num1 = 2;

print $num . "+". $num1;

?>

1
2
3
4

Solution:

 Which function will return true if a variable is an array or false if it is not an array?

1
2
3
4

Solution:

 

Which is the right way of declaring a variable in PHP?

 i) $3hello

 ii) $_hello

 iii) $this

 iv) $This 

1
2
3
4

Solution:

Which of these is the right way of declaring a variable in PHP?

i> $3hello

ii> $_hello

iii> $this

iv> $This

1
2
3
4

Solution: