PHP

0
Answered
0
Correct
0%
Accuracy
Question 1 Easy Mcq

What is the difference between the include() and require() language constructs?

Question 2 Easy Mcq

What is the output of the following code?

Question 3 Easy Mcq

What is the job of the controller as a component in MVC?

Question 4 Easy Mcq

What is meant by nl2br()?

Question 5 Easy Mcq

What is the best way to load a file that contains necessary functions and classes?

Question 6 Easy Mcq

What is a key difference between GET and POST?

Question 7 Easy Mcq

What is the default maximum execution time for a PHP script?

Question 8 Easy Mcq

What is the output of this line of code?"; echo is_finite(log(0)) . ""; echo is_finite(2000); ?>

Question 9 Easy Mcq

What is the output when the following code is executed? function callFun( &$arg ) { $return = $arg; $arg += 1; return $return; } $a = 3; $b = callFun( $a ); $c = callFun($a); echo $a; echo ' \n '; echo $b; echo ' \n '; echo $c;

Question 10 Easy Mcq

What is the precedence between && and "and"?

Question 11 Easy Mcq

What is the correct syntax of mail() function in PHP?

Question 12 Easy Mcq

What is the preferred way to write this if statement, and why?

Question 13 Easy Mcq

What is the meaning of the system message, "Allowed memory size of bytes exhausted"?

Question 14 Easy Mcq

What is the output of this : $a = true; var_dump($a);

Question 15 Easy Mcq

What is a large binary data object called in PHP?

Question 16 Easy Mcq

When it comes to the value of a variable, what is the difference between NULL and empty?

Question 17 Easy Mcq

What is empty () ?

Question 18 Easy Mcq

$var = (10 % 2 == 0) ? true:false; What is the output of $var?

Question 19 Easy Mcq

What is the default extension for PHP files

Question 20 Easy Mcq

When user clicks on Logout link, the user is redirected to logout.php file and the file has following code? What is wrong with the following code?

Question 21 Easy Mcq

What is the end tag in PHP

Question 22 Easy Mcq

What is the output of the following code? 3, y => 2, z => 5);$b = array (x => 9, y => 3, z => -7);vec_add (&$a, $b);print_r ($a);?>

Question 23 Easy Mcq

What is the correct way to join strings in php? $str = "abcdef" + "ghi"; $str = "abcdef" . "ghi"; $str = join("abcdef","ghi"); $str = "abcdef" plus "ghi"

Question 24 Easy Mcq

What is the output of the following code? $a = "clue"; $a .= "get"; echo "$a";

Question 25 Easy Mcq

What is the Object oriented style of associative array?

Question 26 Easy Mcq

What is the procedural style of associative array?

Question 27 Easy Mcq

What is input sanitization?

Question 28 Easy Mcq

What is the answer of this $a = 'b'; $b = 1; echo '$${a}';

Question 29 Easy Mcq

What is the output of the following code? $sentence = "ThiS iS a SenTEnCe"; echo ucwords($sentence);

Question 30 Easy Mcq

What is the correct way to read the result of a variable dump into a string?

Question 31 Easy Mcq

The php not operator is !. Given the snippet, is there an out put and what is it?

Question 32 Easy Mcq

What is the correct way to call an anonymous function?

Question 33 Easy Mcq

Variable $a has not been declared. With error reporting turned off, what is the result of: $a[1][2]=3;?

Question 34 Easy Mcq

What is $_REQUEST?

Question 35 Easy Mcq

What is the difference between public, protected and private in a class definition?

Question 36 Easy Mcq

What is the result of casting the integer 1 to an array: (array) 1

Question 37 Easy Mcq

What is the purpose of this function? headers_sent()

Question 38 Easy Mcq

What is the syntax to compare two values?

Question 39 Easy Mcq

What is the functions unlink?

Question 40 Easy Mcq

$message vs. $$message . what is the difference

Question 41 Easy Mcq

What is the result of the following code?

Question 42 Easy Mcq

What is the output of the following PHP code snippet?

Question 43 Easy Mcq

What is the output when the following code is executed? $alpha = array('A' => 'AA', 'Bud' => 'BB','C' => 'D'); $food = array('tea', 'drink', 'pizza', 'juice'); printf(foods var export food true)

Question 44 Easy Mcq

Given, the following:What is the output?

Question 45 Easy Mcq

What is the value of $start after exiting the for loop?

Question 46 Easy Mcq

What is the associativity of +=?

Question 47 Easy Mcq

What is the best way to change the key without changing the value of a PHP arrayelement?

Question 48 Easy Mcq

What is returned by array_product( array( 2, 3) )?

Question 49 Easy Mcq

Which of the following code syntax is True about declaring a class definition?

Question 50 Easy Mcq

What is the correct PHP command to use to catch anyerror messages within the code?

Showing 50 of 138 questions