Olete.in
Articles
Mock Tests
🧪 Drupal MCQ Quiz Hub
Drupal Mcq Questions Unit 2
Choose a topic to test your knowledge and improve your Drupal skills
1. How do you create a custom menu that will display in your footer?
Navigate to Structure > Block > Add Menu. Then, move menu in block footer.
Navigate to Structure > Appearance > Add Menu. Then, move menu in block footer.
Navigate to Structure > Configuration > Add Menu. Then, move menu in block footer.
Navigate to Structure > Menu > Add Menu. Then, move menu in block footer
2. What would be a reasonable memory limit for an average Drupal 6 installation?
256 MB
4 MB
10 MB
128 MB
3. What is new in Drupal 8?
Python scripting support (Bindings)
.NET integration (Mono for Linux servers)
Symfony framework
Database abstraction
4. Which of the following is a required field of an .info file?
name
regions
description
base theme
5. The Mailhandler module allows to post content by email. What's the default security mechanism implemented by Mailhandler?
A password must be entered in order to post by email
The IP of the sender must be included in a whitelist record
Both sender and receiver must be Drupal authenticated users
Sender's email must belong to a Drupal account with appropriate privileges; Receiver's email must be specified in the configuration
6. What function should you use to translate strings in your code?
localize()
translate()
t()
l()
7. What php snippet will print the current user ID?
print $user->uid;
global $user; print $user->uid;
$user = user_load(1);
print drupal_getuserid();
8. Which of the following drupal module allows administrators to customize the site navigation?
Menu
Customize
Statistics
Navigation
9. Which of the following drupal module enables actions to be fired on certain system events, such as when new content is created?
Action
Trigger
Content translation
Event
10. What is a node?
a content type
a field of information
a webpage
a piece of content
11. In Drupal, which of the following is a pre-defined collection of data types (Fields) which relate to each other by an informational context?
Node
Filter
Content Type
Block
12. In Drupal 6, how can access control to files be enforced?
Navigate to Administer › Site configuration and set the Download method as Private
You need to remove View privileges from anonymous users
You must place your files in a folder outside the Drupal directory
You need to write a custom module
13. Where can I find documentation for all core functions of Drupal?
docs.drupal.org
api.drupal.org
code.drupal.org
core.drupal.org
14. Which template file would need to be resorted to in order to modify the edit page for node/23/ ?
page-node-edit.tpl.php
page-node.tpl.php
page-node-23.tpl.php
page.tpl.php
15. node_load() return value:
Object, or FALSE if the node is not found
Array, or FALSE if the node is not found
TRUE, or FALSE if the node is not found
Title of node (string), or FALSE if the node is not found
16. How can a Drupal 6 site be put in maintenance mode?
Navigate to Administer > Site information > Site maintenance and set Site status = Off-line
Navigate to Administer > Site maintenance and set Site status = Off-line
Navigate to Administer > Site configuration > Site maintenance and set Site status = Off-line
You need to add the line maintenance_mode = 1 in the .htaccess file
17. Drupal Commons is...
Drupal's official support forum.
A directory of Drupal developers for hire with portfolios and client reviews.
A distribution of Drupal with strong social and community features.
A website that allows visitors to play with various Drupal distros.
18. Which of the following was not a core module before Drupal 8?
Book
Contact
Views
Field
19. Which of the following drupal module logs and records system events?
Action
Syslog
Statistics
Log
20. Which one of these hooks is called first in order?
hook_form_FORM_ID_alter().
hook_form_alter()
hook_form_BASE_FORM_ID_alter()
None of These
21. In Drupal 7 and above, which item cannot be added or updated via the front end web interface?
Drupal Core Updates
New Modules
New Themes
Common Module Updates
22. Which of these methods does NOT exist in Drupal 7 API?
comment_load()
content_load()
node_load()
taxonomy_term_load()
23. In the database schema for blocks, what does delta refers to?
The module providing the block
The unique id of the specific block
The placement position of the block in the region
The theme for which the block is enabled
24. In D7, what is the default administration theme?
Zen
Garland
Bartik
Seven
25. Which is not an entity type in Drupal 7?
User
Block
Taxonomy Term
Node
26. What filters are used in the default Filtered HTML input format?
HTML corrector, Line break converter, BB Tags filter
URL filter, Line break converter, HTML corrector
HTML Corrector, HTML filter, Line break converter, URL filter
PHP evaluator, HTML filter, Line break converter
27. With Semantic CCK enabled, users can specify the HTML elements and classes for which of the following ?
The labels (above and inline)
All of the given options are valid
The entire field
All field items
28. Which hook can be used to set individual weight for each hook implementation in D7?
In D6 & D7 is not possible to set individual weighs per hook.
hook_module_implements_alter()
drupal_set_HOOK_ID_weight()
Set weight in system table.
29. Which of the following option is not available when the profile is automatically created?
Textarea
URL
Date fields
All of the above
30. Which cache API function is used for writing data to the cache? cache_set()✔ cache_get() Both a and b None of the above Answer: cache_set() Is This Question Helpful? Which cache API function is used for writing data to the cache?
cache_set()
cache_get()
Both a and b
None of the above
31. Which option will you choose to view a list of installed filters?
Administer Site building Blocks.
Administer Site building Menus
Administer Site configuration Input formats.
None of the above.
32. Which module in drupal measures site load by sampling the number of current users and by turning off functionality?
Throttle
Taxonony
Tracker
Trigger
33. Which of the following syntax types for constructing taxonomy do URLs support?
AND
OR
Both a and b
Neither a nor b
34. When is the '$page' variable within a node template file is TRUE?
When you're in body view.
When you're in teaser view.
When it is on a multiple node listing view.
None of the above.
35. Where does drupal modify session-handling settings?
In .htaccess
In settings.php
In bootstrap.inc
All of the above
36. In the call to which option is Drupal form ID defined?
Drupal_get_form
drupal_set_form
Both A and B
None of these
37. Which of the following cache tables does drupal ship by default?
Cache_menu
Cache_filter
Cache_page
All of the above
38. What is true of vocabulary weight?
Each vocabulary has a weight from -10 to 10.
A vocabulary with a light weight will rise to the top of the categories fieldset and be presented first.
A vocabulary with a heavy weight will sink to the bottom of the fieldset.
All of the above
39. The default region/s used in themes is/are _____.
left sidebar
header
footer
All of the above
40. Which among the following default drupal style sheets affects the RSS/Newsfeed module and its contents?
Block.css
Defaults.css
Aggregator.css
Comment.css
41. How do you enable user search content on your Drupal site?
By enabling search module and setting search permissions for the appropriate type of users
By enabling search module
By enabling it in the configuration file
We can not enable search content.
42. ___ is a term used by Drupal to define the priority or order in which a function is processed or a block / node is displayed.
Permission
Role
Weight
Order
43. Which of the following databases does Drupal support?
Mysql
Postgresql
MS sql server
Oracle
44. Which of the following steps will you have to take to allow visitor comments on your post?
Select "post comments" for anonymous users in the permissions section of the admin settings.
Select "Read/Write" in comment settings when creating or editing your post.
Enable it in the configuration file.
We do not need to do anything. Drupal allows visitors to post comments by default.
45. Which of the following ways can you use to integrate digg with your site?
Use the diggthis module and its required modules.
Set the correct parameters in the configuration file.
Digg is already integrated in Drupal, just enable it in the admin settings.
We can not integrate digg with Drupal.
46. Which of the following choices can help you eliminate spam?
Use the captcha module or spam filter module.
Turn on the spam filter settings in the admin settings.
Enable the spam filter in the configuration file.
We can not eliminate spam in Drupal.
47. Which of the following content types are initially available by default?
Page
Story
blog
forum
Submit