Basic PHP Which of the following PHP statements will output Hello World on the screen?1. echo (“Hello World”);2. print (“Hello World”);3. printf (“Hello World”);4. sprintf (“Hello World”); 1, 2 and 4 All of the mentioned 1 and 2 1, 2 and 3 1, 2 and 4 All of the mentioned 1 and 2 1, 2 and 3 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP With the introduction of namespaces, the same function name can be used in multiple places. TRUE FALSE TRUE FALSE ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following code?$foo = 'Bob';$bar = &$foo;$bar = "My name is $bar";echo $bar;echo $foo; My name is Bob Bob My name is BobMy name is Bob My name is BobBob Error My name is Bob Bob My name is BobMy name is Bob My name is BobBob Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP PHP files have a default file extension of_______. .php .xml .ph .html .php .xml .ph .html ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of following variables can be assigned a value to it?1. $3hello2. $_hello3. $this4. $This Only 2 2 and 4 2, 3 and 4 All of the mentioned Only 2 2 and 4 2, 3 and 4 All of the mentioned ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the below statements is equivalent to $add += $add ? $add = $add + 1 $add = $add + $add + 1 $add = $add $add = $add +$add $add = $add + 1 $add = $add + $add + 1 $add = $add $add = $add +$add ANSWER DOWNLOAD EXAMIANS APP