Logo

Php Questions Set 48:

Quiz Mode

 How many items are available in the $_FILES array? 

1
2
3
4

Solution:

What is the output of the given code?

<?php

if(""==0)

echo 1;

else

echo 0;

?>

Solution:

Which function is used to change the file permissions for files?

1
2
3
4

Solution:

Which PHP function can be used to connect to a MySQL database?

1
2
3
4

Solution:

 Which one of the following function is used to retrieve the MX records for the domain specified by hostname?

1
2
3
4

Solution:

Which function is used to split a string into a series of substrings, with each substring boundary determined by a specific separator?

1
2
3
4

Solution:

 What will be the output of the following PHP code? 

<?php

echo str_pad("Salad", 5)." is good."

?>

1
2
3
4

Solution:

Which of the following is the correct way to declare a method?

1
2
3
4

Solution:

 What will be the output of the following PHP code? 

 

<?php

$num = "123";

if(!filter_var($num, FILTER_VALIDATE_INT))

    echo("Integer is not valid");

else

    echo("Integer is valid");

?>


1
2
3
4

Solution:

Which one of the following is true about the following line – $obj = new ImageHandler(‘/images/’, array(400, 300));? 

1
2
3
4

Solution: