1.In
how many ways we can retrieve the data in the result set of MySQL using PHP ?
4
4
2.Which
PHP function returns an array with elements in reverse order?
array_reverse()
array_reverse()
3.The
left association operator % is used in PHP for
modulus
modulus
5.Which
function allows you to split a string into an array of substrings by a string
delimiter?
explode(" ", $str)
explode(" ", $str)
7.The
filesize() function returns the file size in ___.
bytes
bytes
8.There
is no difference in using the following 2 examples: echo('string'); echo
'string';
True
True
10.Which
rule determines which sections of script are able to access which variables?
Variable Scope
Variable Scope
12.An
array in PHP is an ordered map which associates
keys to values.
keys to values.
13.Which
version of PHP introduced the instanceof keyword?
PHP 5
PHP 5
14.Give
one word: The technique in which when form data contains an SQL escape sequence
and inserts a new SQL query to be run is called
SQL Injection
SQL Injection
15.Which
function is used to perform a regular expression match in PHP?
preg_match()
preg_match()
17.What
is the value of $var when the following line is executed in a PHP function?
unset($var);
NULL
NULL
18.What
does the acronym LAMP stand for?
Linux Apache MySQL PHP/Perl/Python
Linux Apache MySQL PHP/Perl/Python
19.To
modify the default PHP settings such as whether to accept the short form open
tag (
php.ini file
php.ini file
20.What
is the default size of a file set in upload_max_filesize ?
2 MB
2 MB
22.How
do I create PHP arrays in a HTML?
< input name="MyArray[]" />
< input name="MyArray[]" />
23.Choose
the output of the following script. <?php $rest = substr("abcdef",
-1); echo $rest; ?>
f
f
24.In
order to use session functions, the session_start() call must appear AFTER the
<?php tag.
<?php tag.
26.Which
function allows you to specify a start position of a string and length
arguments to retrieve part of a string?
substr()
substr()
27.Which
PHP function sorts an array and maintains index association?
asort()
asort()
29.What
is the default execution time set in set_time_limit()?
30 secs
30 secs
30.A
constructor is a
Method.
Method.
Thank You..
No comments:
Post a Comment