•  
    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


Questions: 1/15

Question

Which of the following Array methods in JavaScript runs a function on every item in the Array and collects the result from previous calls, but in reverse?

options


Questions: 2/15

Question

Which of the following is true about setTimeOut()?

options


Questions: 3/15

Question

How can the operating system of the client machine be detected?

options


Questions: 4/15

Question

Which of the following prints "AbBc"?

options


Questions: 5/15

Question

Which of the following descriptions is true for the code below?

var object0 = {};
Object.defineProperty(object0, "prop0", { value : 1, enumerable:false, configurable : true });
Object.defineProperty(object0, "prop1", { value : 2, enumerable:true, configurable : false });
Object.defineProperty(object0, "prop2", { value : 3 });
object0.prop3 = 4;

options


Questions: 6/15

Question

Performance-wise, which is the fastest way of repeating a string in JavaScript?

options


Questions: 7/15

Question

Consider the following variable declarations:

var a="adam"
var b="eve"

Which of the following would return the sentence "adam and eve"?

options


Questions: 8/15

Question

Which of the following code snippets will correctly split "str"?

options


Questions: 9/15

Question

Which object can be used to ascertain the protocol of the current URL?

options


Questions: 10/15

Question

Which of the following best describes a "for" loop?

options


Questions: 11/15

Question

Which of the following descriptions best describes the code below?

options


Questions: 12/15

Question

Which of the following is not a valid HTML event?

options


Questions: 13/15

Question

Analyze the following code snippet which uses a Javascript Regular Expression character set. What will be the output of this code?





var str = "Is this enough?";
var patt1 = new RegExp("[^A-J]");
var result = str.match(patt1);
document.write(result);





options


Questions: 14/15

Question

Consider the following image definition:

options


Questions: 15/15

Question

What is the final value of the variable bar in the following code?

var foo = 9;
bar = 5;
(function() {
var foo = 2;
bar= 1;
}())
bar = bar + foo;

options


Questions: 1/15

Question

Which of the following statements regarding WebSockets is true?

options


Questions: 2/15

Question

Assuming that some text needs to be written on an HTML5 canvas, select a replacement for the commented line below:

options


Questions: 3/15

Question

What is the role of the element in HTML5?

options


Questions: 4/15

Question

Which of the following is a possible way to get fullscreen video played from the browser using HTML5?

options


Questions: 5/15

Question

Consider the following items of a list:

options


Questions: 6/15

Question

The following are valid use cases of client file/directory access in HTML5, except:

options


Questions: 7/15

Question

Which of the following are the valid values of the element's target attribute in HTML5?

options


Questions: 8/15

Question

How does a button created by the tag differ from the one created by an tag?

options


Questions: 9/15

Question

Which method of HTMLCanvasElement is used to represent image of Canvas Element?

options


Questions: 10/15

Question

When does the ondragleave mouse event get fired in HTML5?

options


Questions: 11/15

Question

Once an application is offline, it remains cached until the following happens (select all that apply):

options


Questions: 12/15

Question

What is the internal/wire format of input type="date" in HTML5?

options


Questions: 13/15

Question

Which of the following is not a valid syntax for the element in HTML5?

options


Questions: 14/15

Question

What does P2P streaming mean when web applications establish a P2P HTTP connection using HTML?

options


Questions: 15/15

Question

Which of the following will detect when an HTML5 video has finished playing?

options


Previous Question

00:00