•  
    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 will display a customer's TAX/VAT number?

options


Questions: 2/15

Question

Why does the error, "front controller reached 100 router match iterations", occur?

options


Questions: 3/15

Question

Which of the following will sort products in the catalog by the date they were added?

options


Questions: 4/15

Question

Is it possible to trigger an event after an order has been set to "processing"?

options


Questions: 5/15

Question

Which of the following code samples will get all products sorted by 'position', assuming 'position' is of a numeric type?

options


Questions: 6/15

Question

Which of the following statements are correct about Magento quotes?

options


Questions: 7/15

Question

Select which method will register observers/hooks to events in Magento:

options


Questions: 8/15

Question

Magento has the ability to run multiple stores from the same database. After adding the new store from System - > Manage Store, what is the correct code to add to the htaccess file to make Magento automatically load the new store?

options


Questions: 9/15

Question

Which of the following will save a custom session variable in Magento?

options


Questions: 10/15

Question

Which of the following will get information ('customer_referrer_id') from a currently logged-in admin user?

options


Questions: 11/15

Question

Which of the following will display a product's thumbnail?

options


Questions: 12/15

Question

Consider the following code:
< block type="A/B" name="root" output="toHtml" template="example/view.phtml" >
What is the meaning of A/B?

options


Questions: 13/15

Question

Which of the following code samples will display a list of both active and inactive sub-categories of the current category?

options


Questions: 14/15

Question

Which of the following will return a visitor's UserAgent information?

options


Questions: 15/15

Question

How can account navigation links be changed?

options


Questions: 1/15

Question

Which of the following is the correct way to get the current theme path in Drupal?

options


Questions: 2/15

Question

Which of the following are best practices for scaling Drupal for a high traffic site?

options


Questions: 3/15

Question

Which of the following is not a desired way to create a custom page with custom layout in Drupal?

options


Questions: 4/15

Question

Which function can be used to invoke a hook in all enabled modules in Drupal?

options


Questions: 5/15

Question

The following are advantages of using Drupal Views vs. custom module development EXCEPT:

options


Questions: 6/15

Question

Which software architectural pattern is Drupal most closely associated with?

options


Questions: 7/15

Question

Which function can be used to attach images to a particular node at runtime?

options


Questions: 8/15

Question

Which of the following is the correct way to remove core CSS files and add custom CSS files to a theme?

options


Questions: 9/15

Question

Which of following will have a negative effect on the performance of a Drupal website?

options


Questions: 10/15

Question

Which of the following is the correct way to display recent nodes/posts created by a user on their profile page?

options


Questions: 11/15

Question

By using the auto-complete field for a CCK nodereference, nodereference gives node id as [nid: node id]; which Drupal hook can be used to remove the bracket from the auto-complete list?

options


Questions: 12/15

Question

Which of the following is the correct way to customize the template for a view thas has been created using CCK and the Views 2 module?

options


Questions: 13/15

Question

Which of the following is the correct way to make a partial or substring search in Drupal?

options


Questions: 14/15

Question

How can all the input filters that have been created in the code be applied?

options


Questions: 15/15

Question

Which of the following statements are true?

options


Previous Question

00:00