What will be printed?$var=’a’;$VAR=’b’;echo “$var$VAR”;Question 15Select one:a.aAb.aac.bBd.ab
Question
What will be printed?VAR=’b’;echo “VAR”;Question 15Select one:a.aAb.aac.bBd.ab
Solution
The code provided is written in PHP.
In the given code, two variables are declared and assigned values.
VAR is assigned the value 'b'.
Then, the echo statement is used to print the concatenation of the two variables, "VAR".
Since the variables are case-sensitive, the output will be "ab".
Therefore, the correct answer is option b.
Similar Questions
What will be printed by the below code?$a = 1;{$a = 2;}echo $a;Select one:a.1b.2c.Bothd.None
What will be the value of $var?$var = 1 / 2;Question 20Select one:a.0b.0.5c.1d.2
What will be the output of below mentioned PHP code?< ?php$arr = array(5 => 1, 12 => 2);$arr[] = 56;$arr["x"] = 42;unset($arr);echo var_dump($arr);? >Select one:a.42b.56c.NULLd.x=42
What will the value of Var be in the following code snippet?var Var='var';var Var;
What will this code display?<?php $a = 1; function Test() { echo "a = $a"; } Test();?>Question 10Select one:a.1b.3c.Warning or no valued.An error
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.