1.
What is the output of the following JavaScript code:
~~3.14
2.
In JavaScript, which of the following is not an operator?
3.
In JavaScript, which of the following is equivalent to A ? B : C?
4.
What is the output of the following JavaScript code:
Number("1") - 1 == 0;
5.
What is the output of the following JavaScript code:
String('Hello') === 'Hello';
6.
What is the output of the following PHP code:
<?php
$arr = array(5 => 1, 12 => 2);
$arr[] = 58;
$arr["x"] = 44;
unset($arr);
echo var_dump($arr);
?>
7.
In PHP, which of the following functions is used to read a file into an array?
8.
Which of the following commands is missing from this PHP code:
<?php
$alpha = 'abcdefghijklmnopqrstuvwxyz';
$letters = array(15, 7, 15);
foreach($letters as $val) { /*
What should be here */
}
?>
9.
How the value of the 'x' is accessed in PHP:
$a = array('a',3 => 'b','x');
10.
What is the output of the following PHP code:
<?php
$colors = array("black","blue","white","magenta");
foreach ($colors as $value)
{
     echo "$value
      ";
}
?>