PHP Variables and Datatypes
Test
Model Test
Ebook
Quiz-1 : PHP Fundamental
Quiz-2 : PHP Variables and Datatypes
Quiz - PHP Basic 1
Quiz - PHP Fundamental 3
Quiz - PHP Advanced Concept, Networking, Super G.
Quiz - PHP Networking
Quiz PHP Object Oriented Programming
Quiz - PHP string,oop,regular expression
Quiz - PHP and MySQL
Quiz - PHP String,Security,Webservice
Index
PHP Home
PHP Fundamentals
230
PHP Input/Output
16
PHP Object Oriented Programming
59
PHP Installation & Configuration
17
Reported Questions
80
PHP Functions
16
PHP Regular Expression
33
PHP Variables and Datatypes
62
PHP Arrays
104
PHP Operators and Expressions
6
PHP Built-in Constants and Standard PHP .
10
PHP Advanced Concepts
120
PHP Error Handling
34
PHP String Operation
36
PHP Language Syntax
11
PHP Super Globals
21
PHP Datetime and timezone
4
PHP Networking
12
PHP with MySQL
5
PHP Web Service
10
PHP Security
15
PHP File Handling
9
PHP PEAR
7
PHP Control Structure
7
PHP Form Handling
1
Schools
Ebook
Question:
$_COOKIE, $_SERVER, $_POST are ______ array.
A
surperglobal
Note:
Not available
Show answer
Show Note
Report
Question:
An ______ is a symbol that specifies a particular action in an expression.
A
operator
Note:
Not available
Show answer
Show Note
Report
Question:
Operator ______ is a characteristic of operators that determines the order in which they evaluate the operands surrounding them.
A
precedence
Note:
Not available
Show answer
Show Note
Report
Question:
______ operators examine and manipulate interger values on the level of individual bits that make up the integer value.
A
Bitwise
Note:
Not available
Show answer
Show Note
Report
Question:
______ syntax allows large amount of text to printed ignoring double or single quotes. example
<?php
echo <<<EXCERPT
...
...
...
EXCERPT;
?>
A
heredoc
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following are valid PHP variables?
A
@$foo
B
&$variable
C
${0x0}
D
$variable
E
$0x0
Note:
Not available
Show answer
Show Note
Report
Question:
What is the best way to iterate and modify every element of an array using PHP 5?
A
You cannot modify an array during iteration
B
for($i = 0; $i < count($array); $i++) { /* ... */ }
C
foreach($array as $key => &$val) { /* ... */ }
D
foreach($array as $key => $val) { /* ... */ }
E
while(list($key, $val) = each($array)) { /* ... */
Note:
Not available
Show answer
Show Note
Report
Question:
What is the output of the following PHP code? <?php define('FOO', 10); $array = array(10 => FOO, "FOO" => 20); print $array[$array[FOO]] * $array["FOO"]; ?>
A
FOO
B
100
C
200
D
20
E
10
Note:
Not available
Show answer
Show Note
Report
Question:
What is the output of the following PHP script? <?php $a = 1; $b = 2.5; $c = 0xFF; $d = $b + $c; $e = $d * $b; $f = ($d + $e) % $a; print ($f + $e); ?>
A
643.75
B
432
C
643
D
257
E
432.75
Note:
Not available
Show answer
Show Note
Report
Question:
What combination of boolean values for $a, $b, $c, and $d will result in the variable $number being equal to 3? <?php $a = null; $b = null; $c = null; $d = null; if($a && !$b) { if(!!$c && !$d) { if($d && ($a || $c)) { if(!$d && $b) { $number = 1; } else { $number = 2; } } else { $number = 3; } } else { $number = 4; } } else { $number = 5; } ?>
A
false, true, true, true
B
true, false, true, false
C
true, true, false, false<
D
false, true, true, false
E
false, false, true, false
Note:
Not available
Show answer
Show Note
Report
First
Prev
3
4
5
6
7
Next
Last
/7
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2025. Powered by
Intellect Software Ltd