•  
    Questions not Attemped
  •  
    Questions Attemped
  •  
    Questions Marked for review
  •  
    Current Question
00:00

Questions: 1/15

Question

Which of the following statements is NOT true?
a) Class constants are public
b) Class constants are being inherited
c) Class constants can omit initialization (default to NULL)
d) Class constants can be initialized by consts

options


Questions: 2/15

Question

How many elements does the $matches array contain after the following function call is performed?
preg_match('/^(\d{1,2}([a-z]+))(?:\s*)\S+ (?=200[0-9])/', '21st March
2006', $matches);

options


Questions: 3/15

Question

Given the following code, what will be the value of $a?
$a = array('a', 'b');
array_push($a, array(1, 2));

options


Questions: 4/15

Question

Which of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?

options


Questions: 5/15

Question

Identify the security vulnerability in the following example:
1

options


Questions: 6/15

Question

How many times will the function counter() be executed in the following code?
function counter($start, &$stop)
{
if ($stop > $start)
{
return;
} counter($start--, ++$stop);
}
$start = 5;
$stop = 2;
counter($start, $stop);

options


Questions: 7/15

Question

When a class is defined as final it:

options


Questions: 8/15

Question

Which parts of the text are matched in the following regular expression?
1

options


Questions: 9/15

Question

What DOMElement method should be used to check for availability of a non-namespaced attribute?

options


Questions: 10/15

Question

Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PHP 4?

options


Questions: 11/15

Question

Which options do you have in PHP to set the expiry date of a session?

options


Questions: 12/15

Question

You analyze the code of a collegue and see, it uses the function strcasecmp. You try it out to see what it does and use the following function call:
strcasecmp('hello my dear!', 'Hello my DEAR!');
The function call returns "0". What does that mean?

options


Questions: 13/15

Question

What is the output of the following script?
1

options


Questions: 14/15

Question

REST is a(n) …

options


Questions: 15/15

Question

What is the output of the following code?
echo 0x33, ' monkeys sit on ', 011, ' trees.';

options


Previous Question

00:00