Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Online Drupal Quiz Test

Topics Covered

  • Drupal node images
  • Drupal Content type
  • Drupal user information
  • Drupal social media
  • Drupal social media integration
  • Drupal composers
  • Drupal library hook
  • Drupal namespace

Useful for hiring

  • Drupal Developer
  • Drupal Programmer

Start hiring job-fit candidates using this assessment


"Our recruitment team loves Interview Mocha especially for their skill assessments, simulators, and friendly support. Since using Interview Mocha, we interview only relevant candidates, and this has reduced our time to hire. Recruitment is no longer an hassle for us."

Christoph, e-Zest GmbH

if($form['#id'] == 'views-exposed-form-Courses-page-3')
    $form['date_filter']['min']['#date_format'] = 'd/m/y';
    $form['date_filter']['max']['#date_format'] = 'd/m/y';

What will be the output of the given code?

    • The code is used to show date in drupal form.

    • The code is used to set minimum and maximum date range in drupal.

    • The code is used to expose date of page3 in drupal.

    • None of the mentioned


$zone = $node?field_mytimezone['und'][0]['value'];
$dt = new DateTime();
$dt?setTimezone(new DateTimeZone($zone));
echo $dt?format('H:i');

What is the use of above code in drupal?

    • Code is used to show current time of website server

    • The code is used to show current date and time with user timezone.

    • It only shows current date on the website.

    • None of the mentioned


function dashboard_theme() {
    return array (
    ‘dashboard’ => array(
    ‘render element’ => ‘element’,
function theme_dashboard($variables) {
    drupal_add_css(drupal_get_path(‘module’, ‘dashboard’) . ‘/dashboard.css’);
    return ‘ ’ . $element[‘children’] . ‘ ’;

Which of the following statements about the code above are true?

    • It is used to implementing default template of the theme.

    • It will create module named dashboard.

    • It will create node named children.

    • None of the mentioned

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates