Basic PHP We can use _________ to comment a single line?1. /?2. //3. #4. /* */ 1, 3 and 4 Only 2 2, 3 and 4 Both 2 and 4 1, 3 and 4 Only 2 2, 3 and 4 Both 2 and 4 ANSWER DOWNLOAD EXAMIANS APP
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 and 2 1, 2 and 4 1, 2 and 3 All of the mentioned 1 and 2 1, 2 and 4 1, 2 and 3 All of the mentioned ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$total = "25 students";$more = 10;$total = $total + $more;echo "$total"; 35 Error 25 students 35 students 35 Error 25 students 35 students ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Some PHP code might not have a namespace and therefore lives in the . . . . . . namespace. Default PRE Global Automatic Default PRE Global Automatic ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following php code?$num = 1;$num1 = 2;print $num . "+". $num1; 1+2 3 1.+.2 Error 1+2 3 1.+.2 Error 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