Basic PHP If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed? Error 1 12 5 Error 1 12 5 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP All classes in the same namespace or subnamespace don’t have to the declared in the same PHP file. TRUE FALSE TRUE FALSE ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Assigning the empty string (like ' ') to a variable automatically renders it empty. False True False True 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, 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 Which of the looping statements is/are supported by PHP?1. for loop2. while loop3. do-while loop4. foreach loop All of the mentioned 1 and 2 None of the mentioned 1, 2 and 3 All of the mentioned 1 and 2 None of the mentioned 1, 2 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"; $var r a Error $var r a Error ANSWER DOWNLOAD EXAMIANS APP