Which of the following php statement/statements will store 111 in variable num?<br/>1. int $num = 111;<br/>2. int mum = 111;<br/>3. $num = 111;<br/>4. 111 = $num; Only 3 Both 1 and 2 Only 1 All of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
Which of the looping statements is/are supported by PHP?<br/>1. for loop<br/>2. while loop<br/>3. do-while loop<br/>4. foreach loop 1 and 2 All of the mentioned 1, 2 and 3 None of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following PHP statements will output Hello World on the screen?<br/>1. echo (“Hello World”);<br/>2. print (“Hello World”);<br/>3. printf (“Hello World”);<br/>4. sprintf (“Hello World”); 1, 2 and 4 1 and 2 All of the mentioned 1, 2 and 3 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following code?<br/>$foo = 'Bob';<br/>$bar = &$foo;<br/>$bar = "My name is $bar";<br/>echo $bar;<br/>echo $foo; Error My name is BobMy name is Bob My name is Bob Bob My name is BobBob TRUE ANSWER : ? YOUR ANSWER : ?
String values must be enclosed in ...... both A and B none of above double quotes single quotes TRUE ANSWER : ? YOUR ANSWER : ?
PHP runs on different platforms (Windows, Linux, Unix, etc.) True False TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$a = "clue";<br/>$a .= "get";<br/>echo "$a"; get clueget false true TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following php code?<br/>$num = "1";<br/>$num1 = "2";<br/>print $num+$num1; 1+2 Error 3 12 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the below namespace declaration is correct? namespace ORA: namespace ORA_#; namespace 1_RA; namespace ORA; TRUE ANSWER : ? YOUR ANSWER : ?
How does the identity operator === compare two values? It returns True only if they are both of the same type and value It converts them to a common compatible data type and then compares the resulting values If the two values are strings, it performs a lexical comparison It converts both values to strings and compares them It bases its comparison on the C strcmp function exclusively TRUE ANSWER : ? YOUR ANSWER : ?