We can use ___ to comment a single line? i) /? ii) // iii) # iv) /* */
Only ii)
i), iii) and iv)
ii), iii) and iv)
Both ii) and iv)
Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?
define_variable()
define_log_variable()
log_variable()
define_syslog_variable()
Which one of the following filter is used to filter several variables with the same or different filters?
filter_var_array()
filter_var()
filter_input
filter_input_array
Which of the following is/are an external data? i) Cookies ii) Input data from a form iii) Server Variables iv) Web services data
ii) and iii)
None of the mentioned
All of the mentioned
Which of the following is/are an exception? i) OutOfBoundException ii) OutOfRangeException iii) OverflowException iv) UnderflowException
i) and iii)
i) and ii)
You can extend the exception base class, but you cannot override any of the preceding methods because the are declared as..
protected
final
static
private
Which one of the following preg PHP functions is used to take a string, and put it in an array?
preg_destroy()
preg_split()
preg_unchain()
preg_divide()
How many configuration directives pertinent to PHP’s mail function are available?
4
5
6
7
Which of the following are correct ways of creating an array? i) state[0] = “karnataka”; ii) $state[] = array(“karnataka”); iii) $state[0] = “karnataka”; iv) $state = array(“karnataka”);
iii) and iv)
Only i)
Which one of the following functions finds the last occurrence of a string, returning its numerical position?
strlastpos()
strpos()
strlast()
strrpos()
Which one of the following functions can be used to concatenate array elements to form a single delimited string?
explode()
implode()
concat()
concatenate()
Which one of the following databases has PHP supported almost since the beginning?
Oracle Database
SQL
SQL+
MySQL
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
When the parameter is Boolean
When the function is being declared as a member of a class
When the parameter is being declared as passed by reference
When the function contains only one parameter
Never
What array will you get if you convert an object to an array?
An array with properties of that object as the array's elements.
An array with properties of that array as the object's elements.
An array with properties of that object as the Key elements.
An array with keys of that object as the array's elements.
Which relationship is illustrated by a line that begins with an unfilled diamond?
Composition
Abstraction
Aggregation
Inheritance
___ code makes change easier because the impact of altering an implementation will be localized to the component being altered.
Orthogonal
Cohesion
Coupling
Balancing
What will be the output if a protected method is given as argument to the function method_exist()?
Method does not exist
False
Error
True
Which symbol is used to declare nested namespaces?
/
.
|
Which of the following can you place inside a namespace?
classes
functions
variables
All of the above
PHP recognizes constructors by the name..
classname()
_construct()
function _construct()
function __construct()