Learn Drupal MCQs
Prepare Drupal MCQs (Multiple choice Questions) for exam and job interviews.
Which of the following is true about Drupal themes?
1) They control the appearance of the site
2) They can be custom built
3) They can be modified
4) All of the above
Answer : All of the above
What is a "taxonomy" in Drupal?
1) A classification system
2) A type of module
3) A theme setting
4) A user role
Answer : A classification system
Which file is responsible for defining the module metadata in Drupal?
1) .info.yml
2) .module
3) settings.php
4) hook.module
Answer : .info.yml
What is the primary purpose of the `hook_form_alter()` function?
1) To modify forms
2) To create custom routes
3) To change theme settings
4) To define permissions
Answer : To modify forms
What is the command to enable a module using Drush?
1) drush module-enable
2) drush en
3) drush enable
4) drush mod-enable
Answer : drush en
In Drupal, what does the `entity` refer to?
1) Content types
2) Users
3) Taxonomy terms
4) All of the above
Answer : All of the above
What is the function used to retrieve configuration settings in Drupal?
1) config()
2) get_config()
3) drupal_get_config()
4) settings()
Answer : get_config()
Which of the following can be a Drupal user role?
1) Administrator
2) Editor
3) Subscriber
4) All of the above
Answer : All of the above
What is the command to create a new content type in Drupal 8?
1) drush generate content-type
2) drush create-content-type
3) drush entity:create
4) drush generate
Answer : drush generate content-type
What file do you modify to add custom settings in Drupal?
1) settings.php
2) config.yml
3) custom.php
4) settings.local.php
Answer : settings.php