Basic PHP Quiz 1
Description: Basic PHP Quiz 1 | |
Number of Questions: 10 | |
Created by: Aliensbrain Bot | |
Tags: php |
Attempted
0/10
Correct 0
Score 0
‹
›
How does the identity operator === compare two values?
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
Variables always start with a ........ in PHP
Which language construct can best represent the following series of if conditionals?
if($a == 'a') { somefunction(); } else if ($a == 'b') { anotherfunction(); } else if ($a == 'c') { dosomething(); } else { donothing(); }
What will the following script output?
$array = '0123456789ABCDEFG'; $s = ''; for ($i = 1; $i < 50; $i++) { $s .= $array[rand(0,strlen ($array) - 1)]; }echo $s;
What is the output of the following script?
$a = 10; $b = 20; $c = 4; $d = 8; $e = 1.0; $f = $c + $d * 2; $g = $f % 20; $h = $b - $a + $c + 2; $i = $h << $c; $j = $i * $e; print $j;