ExamVeda
Login
Home
31
What will be the output of the following PHP code ?
<?php
$a  =  '12345';
print "qwe".$a."rty";
?>
Discuss
Answer & Solution
Answer: Option A
Solution:
dereferences the variable/string within.
32
What will be the output of the following PHP code ?
<?php
$a  =  '12345';
echo 'qwe{$a}rty';
?>
Discuss
Answer & Solution
Answer: Option B
Solution:
qwe{$a}rty, single quotes are not parsed.
33
What will be the output of the following PHP code ?
<?php
$a  =  '12345';
echo "qwe$arty";
?>
Discuss
Answer & Solution
Answer: Option C
Solution:
qwe, because $a became $arty, which is undefined.
34
PHP can automatically convert integers to floating point numbers and floating point numbers to integers.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
35
In PHP the integer 45 is stored exactly as 45. The floating point number 46.3 could be stored as.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
36
What is the output of given statement?
Print 17 % 3;
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
37
In order to find if a variable holds an actual number or a string containing characters that can be translated into a number you can use:
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
38
The result of both the below expressions in PHP will be same:
1) 3+4*2
2) (3+4)*2
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
39
Numbers in PHP can’t be infinitely large or small, there is some minimum and maximum size. If more larger (or smaller) numbers are needed then . . . . . must be used:
1. GPM libraries
2. GMP libraries
3. CBMath
4. BCMath
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
40
Ceil(-2.1) would be
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board