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 3 All of the mentioned 1, 2 and 4 1 and 2 1, 2 and 3 All of the mentioned 1, 2 and 4 1 and 2 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP String values must be enclosed in ...... both A and B none of above single quotes double quotes both A and B none of above single quotes double quotes ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the conditional statements is/are supported by PHP?1. if statements2. if-else statements3. if-elseif statements4. switch statements Only 1 All of the mentioned. 1, 2 and 4 2, 3 and 4 Only 1 All of the mentioned. 1, 2 and 4 2, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP strval() None of above Accepts a value and converts it into a string array Accepts a value and converts it into an string dictionary Accepts a value and converts it into string equivalent None of above Accepts a value and converts it into a string array Accepts a value and converts it into an string dictionary Accepts a value and converts it into string equivalent 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 BobBob My name is Bob Bob My name is BobMy name is Bob Error My name is BobBob My name is Bob Bob My name is BobMy name is Bob Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP If you echo a Boolean variable, the value FALSE displays as a .... and the value TRUE echoes as a ..... blank string, 2 blank string, 1 empty variable, 1 0, 1 blank string, 2 blank string, 1 empty variable, 1 0, 1 ANSWER DOWNLOAD EXAMIANS APP