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
Basic PHP Which of the following must be installed on your computer so as to run PHP script?1. Adobe Dreamweaver2. PHP3. Apache4. IIS Only 2 All of the mentioned. 2 and 3 2, 3 and 4 Only 2 All of the mentioned. 2 and 3 2, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the following php statement/statements will store 111 in variable num?1. int $num = 111;2. int mum = 111;3. $num = 111;4. 111 = $num; All of the mentioned Both 1 and 2 Only 3 Only 1 All of the mentioned Both 1 and 2 Only 3 Only 1 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. FALSE TRUE FALSE TRUE ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Under what circumstance is it impossible to assign a default value to a parameter while declaring a function? When the function is being declared as a member of a class When the parameter is being declared as passed by reference Never When the parameter is Boolean When the function contains only one parameter When the function is being declared as a member of a class When the parameter is being declared as passed by reference Never When the parameter is Boolean When the function contains only one parameter 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, 1 empty variable, 1 blank string, 2 0, 1 blank string, 1 empty variable, 1 blank string, 2 0, 1 ANSWER DOWNLOAD EXAMIANS APP