Basic PHP We can use _________ to comment a single line?1. /?2. //3. #4. /* */ 2, 3 and 4 Only 2 Both 2 and 4 1, 3 and 4 2, 3 and 4 Only 2 Both 2 and 4 1, 3 and 4 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 1, 2 and 4 All of the mentioned. Only 1 2, 3 and 4 1, 2 and 4 All of the mentioned. Only 1 2, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Within a namespace, for accessing the built-in PHP classes you can prefix the class name with a . . . . . and let PHP look in the global class list. asterix percent backslash ampersand asterix percent backslash ampersand ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What does PHP stand for?1. Personal Home Page2. Hypertext Preprocessor3. Pretext Hypertext Processor4. Preprocessor Home Page Only 2 Both 1 and 2 Both 2 and 4 Both 1 and 3 Only 2 Both 1 and 2 Both 2 and 4 Both 1 and 3 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; Error a r $var Error a r $var ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which statement will output $x on the screen? echo “\$x”; echo “/$x”; echo “$x;”; echo “$$x”; echo “\$x”; echo “/$x”; echo “$x;”; echo “$$x”; ANSWER DOWNLOAD EXAMIANS APP