Which of the below statements is equivalent to $add += $add ?
$add = $add
$add = $add +$add
$add = $add + 1
$add = $add + $add + 1
Which one of the following statements should be used to disable the use of two classes administrator and janitor?
disable_classes = “administrator, janitor”
disable_classes = class administrator, class janitor
disable_classes = class “administrator”, class “janitor”
disable_class = class “administrator”, class “janitor”
You are using sessions and session_register() to register objects. These objects are serialized automatically at the end of each PHP page and are de-serialized automatically on each of the following pages. Is this true or false?
True
False
Which of the following is not supported in PHP5?
Type Hinting
Reflection
Magic Methods
Multiple Inheritance
Object Cloning
To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed?
$date = Date(“22 JUNE 2013″)
$date = new Date(“JUNE 22 2013″)
$date = DateTime(“22 JUNE 2013″)
$date = new DateTime(“22 JUNE 2013″)
Which one of the following functions will convert a string to all uppercase?
strtoupper()
uppercase()
str_uppercase()
struppercase()
Which one of the following methods recuperates any memory consumed by a result set?
destroy()
remover()
alloc()
free()
When a user confirms that he wishes to delete an entry, that entry’s URL is passed to a function which removes the entry from the ___.
index.php
function.inc.php
database
admin.php
The ftp_mkdir() function creates a directory on the FTP server.
ftp_mkdir()
ftp_makekdir()
ftp_mkdirectory()
Both A & B
The FTP functions are used to ....... files from file servers.
Open/Close
Login
Upload
Download
All of above
Which of the following multithreaded servers allow PHP as a plug-in?
Netscape FastTrack
Microsoft's Internet Information Server
O'Reilly's WebSite Pro
All of the above
which of the following is a correct declaration?
static $varb = array(1,'val',3);
static $varb = 1+(2*90);
static $varb = sqrt(81);
static $varb = new Object;
Which of the following printing construct/function accpets multiple parameters?
echo
print
printf
Which one of the following will you use to check the class of an object?
class()
_class()
class_check()
get_class()
Which function is used to erase all session variables stored in the current session?
session_destroy()
session_change()
session_remove()
session_unset()
How many times can you define __autoload in a process?
once
twice
thrice
as many times as needed
Which function was introduced to help automate the inclusion of class files?
__load()
__preload()
__autoload()
__inload()
Which one of the following is the correct way of declaring a namespace?
namespace my;
namespace my();
my namespace;
namespace(my);
Which function is used to transform PHP’s session-handler behavior into that defined by your custom handler?
session_set_save()
session_set_save_handler()
Session_handler()
session_save_handler()
Which method scope prevents a method from being overridden by a subclass?
Abstract
Protected
Final
Static