DRUPAL
DRUPAL
DRUPAL
Term = Comedy
Sub-term = 60s
Sub-term = 70s
Term Horror
Sub-term = 80s
Sub-term = 90s
b. Term = Comedy
Sub-term = 60s
Sub-term = 70s
Term Horror
Sub-term 80s
Sub-term = 90s
Vocabulary = Movie
c. Term = Comedy
Vocabulary = Movie
Sub-term = 60s
Sub-term = 70s
Term Horror
Sub-term = 80s
Sub-term = 90s
d. Movie = Vocabulary
Term = Comedy
Sub-term = 60s
Sub-term 70s
Term Horгог
Sub-term = 805
Sub-term 90s
24. __________ allows you to present content from the database as lists, posts, galleries, tables,
maps, graphs, menu items, blocks, reports, and forum posts.
a. Nodes
b. Blocks
c. Views
d. Hooks
25. Which of the following does themes allow you to do?
a. Change the look and feel of a Web site.
b. Fetch data from the database.
c. Execute commands.
d. Extend a module.
26. __________ offer additional features such as image galleries, custom content types, content
listings.
a. Contributed modules
b. Core modules
c. Custom modules
d. Modules
27. Which of the following statement is not true about hooks?
a. Hooks are like an event listener where an event triggers an action.
b. Hooks allow modules to interact with Drupal core.
c. Hooks implement modules to extend Drupal.
d. Each hook has a defined set of parameters and a specified result type.
28. Where can you enable cron in Drupal 7?
a. Click Menu → Configuration → System → Cron
b. Click Administration → System → Configuration → Cron
c. Click Menu → System → Configuration → Cron
d. Click Administration → Configuration → System → Cron
29. _______ are blocks that come with the basic installation of Drupal and cannot be deleted.
a. Modules
b. Contributed modules
c. Core modules
d. Custom modules
30. To access the Module Administration page in Drupal 6, click
a. Administer → Modules → Site building
b. Modules
c. Administer → Site building → Modules
d. Administer → Modules
31. The of the module. file lets Drupal know that the module exists and provides information such as
the name
a. .info
b. . module
c. INSTALL.txt
d. tar.gz
32. The hook provides online user help.
a. hook_help ()
b. hook_menu ()
c. hook_permission ()
d. hook_mail_alter(&$message)
33. _________ gets implemented in a module's install file and gets called when the module is
enabled for the first time or after it has been uninstalled.
a. hook_schema ()
b. hook_install ()
c. hook_theme ()
d. hook_menu ()
34. enables modules to register paths in order to define how URL requests are handled.
a. hook_permission ()
b. hook_theme ()
c. hook_schema ()
d. hook_menu ()
35. ________ saves changes to a node or adds a new node.
a. node_save($node)
b. drupal_get_path ($type, $name)
c. node_delete($nid)
d. user_load ($uid, $reset = FALSE)
36. In node_load ($nid = NULL, $vid = NULL, $reset = FALSE), $vid indicates the __________ .
a. Integer specifying the user ID to load
b. Revision ID
c. Node ID
d. Drupal path or a full URL
37. _________ is a collection of functions that link into Drupal and provide additional functionality
for your Drupal installation.
a. Menus
b. Modules
c. Hooks
d. Blocks
38. What is the first step to add a contributed module in Drupal 6.x or Drupal 7.x?
a. Enable the module.
b. Configure the module.
c. Set permissions for the module.
d. Upload the module code.
39. When creating a custom module, you create the _________ implement hooks. file which defines
functions that
a. info
b. . module
c. install
d. README.txt
40. ___________ will take you to a Drupal API page that describes the hook.
a. hook_form_alter ()
b. hook_menu ()
c. hook permission ()
d. hook_install ()
41. Which of the following functions returns a themed representation of all style sheets to attach to
the page?
a. drupal_get_css ()
b. drupal_get_form ()
c. drupal_get_path ()
d. drupal_goto ()
42. The tables declared by __________ hook will automatically be created when the module is first
enabled and removed when the module is uninstalled.
a. hook_install ()
b. hook_uninstall ()
c. hook_schema ()
d. hook_menu ()
43. Which of the following modules are created by users for their personal use?
a. Custom modules
b. Core modules
c. Contributed modules
d. Community modules
44. What is the second step you take when uninstalling a module?
a. Disable the module.
b. Uninstall the module.
c. Delete the module code.
d. Review module code.
45. The file has all the conditional logic and data processing information.
a. template.php
b. .info
c. template files
d. sub-themes
46. To create you need to make an entry for the base theme inside the .info file.
a. template.php
b. .info
c. template files
d. sub-themes
47. ________ allows printing a search form, often in the header or a sidebar.
a. Site slogan
b. Mission statement
c. Logo
d. Search box
48. In Drupal 7, you can locate theme settings by clicking _______________________.
a. Administer → Appearance → Settings → theme Name
b. Administer Site building → Themes → theme Name
c. Administer Settings → Appearance →theme Name
d. Administer → Themes → Site building → theme Name
49. Traditionally, themes could add JavaScript’s by calling ____________ in their template.php file.
a. drupal_add_css ()
b. drupal_add_js ()
c. $footer_message
d. DRUPAL MINIMUM_PHP
50. In Drupal 6, the human readable names outside the square brackets are used for labeling the
region in the block administration page located at ____________ .
a. Administer → Site building → Blocks
b. Administration → Structure → Blocks
c. Site building → Administer → Blocks
d. Structure → Administration → Blocks
51. ________file stores metadata, style sheets, JavaScripts, and block regions for the themes.
a. template.php
b. Template files
c. .info
d. Sub-themes
52. When installing a theme, what should you do after extracting the files?
a. Enable the theme.
b. Upload the folder.
c. Make it the default theme.
d. Save configuration changes.
53. What does the following code indicate?
a. The resources from the base theme will cascade and be reused inside the sub-theme.
b. The resources from the sub-theme will cascade and be reused inside the base theme.
c. This hides check boxes for elements not defined or used by a theme.
d. The human readable name is set independently from the internal machine-readable name.
54. The ___________ region variable has been removed in Drupal 7.
a. $footer_message
b. $help
c. hook_features ()
d. hook_commerce_checkout_router
55. Which of the following themes are provided with the installation of Drupal?
a. Sub-themes
b. Basic core themes
c. Contributed themes
d. Custom themes
56. From which constant is the default PHP version of the theme derived?
a. DRUPAL_MINIMUM_PHP
b. content
c. drupal_add_js ()
d. drupal_add_css ()
57. Which of the following represents an instance of a product in your cart (or order) with options
attached?
a. Product
b. Order
c. Line item
d. Payment transaction
58. Which of the following hooks alters an existing checkout pane?
a. hook_commerce_checkout_router
b. hook_commerce_checkout_complete
c. hook_commerce_checkout_pane_info
d. hook_commerce_checkout_pane_info_alter
59. The chose. function is a PHP function in your module having the same name as the form ID you
a. Form API
b. Form Builder
c. $form_state
d. drupal_get_form ()
60. The key is used to store $_POST data.
a. values
b. rebuild
c. redirect
d. storage
61. __________ should be named in lowercase letters using underscores to separate words.
a. Functions
b. Member variables
c. Control structures
d. Comments
62. In the multilingual support settings, ________ allowing you to select from one of the enabled
languages. will add a language selection field to the editing form,
a. Disabled
b. Enabled, with translation
c. Enabled
d. Enabled with entity translation
63. You can implement _________ in a module to provide Libraries API access to meta information.
a. hook_library ()
b. hook_forms ()
c. drupal_get_form ()
d. hook_libraries_info ()
64. You must not put the external library in the ________ directory.
a. sites/all/libraries
b. profiles/[yourprofilename]/libraries
c. sites/example.com/libraries
d. sites/all/modules/libraries
65. The _________ key of $form_state argument will cache any data and re-load it when the form is
next submitted.
a. storage
b. redirect
c. values
d. rebuild
66. What is the first step to install an external library that is required by a contributed module?
a. Download the library.
b. Upload the library.
c. Install Libraries API.
d. Extract the files
67. Which of the following is not a rule for Libraries API?
a. Libraries API needs meta information about libraries.
b. Libraries should reside in module folders.
c. Libraries API needs to be able to detect a library's version.
d. Only one version of a library can be installed per Web site.
68. _________ means running a group of affiliated Web sites from one Drupal installation and a
single shared database.
a. Multilingual
b. Multidomain
c. FAPI
d. Form validation
69. After you download and install modules for translation of a Drupal Web site, what should you do
next?
a. Enable and configure Locale.
b. Configure languages.
c. Choose a detection method.
d. Add the translation to the Web site.
70. Which of the following is not a Drupal coding standard?
a. Indenting must be two spaces in all PHP and JavaScript files.
b. PHP files should begin with '<?php', but should omit the closing '?>'.
c. Variables should be in all lowercase letters using underscores to separate words.
d. The bodies of all control structures should be surrounded by square braces.
71. After adding the translation to the Web site, what should you do next when translating interface
and content for a Drupal Web site?
a. Activate the language option for each field.
b. Enable and configure Locale.
c. Add a block for the language switcher.
d. Make each field translatable.
72. You want to add a button with the text 'Send Data' on click of which the form's submit (and
validation) handlers should be called. Which of the following code will help you do that?
a. <?php
$form['my_button'] = array (
);
?>
b. <?php
$form['my_button'] = array(
);
?>
c. <?php
$form['my_button'] = array(
);
?>
d. <?php
$form['my_button'] = array(
?>