DRUPAL

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

DRUPAL

1. _________ is a collection of nodes which forms the base of the system.


a. Data
b. Block and Menus
c. Template
d. Modules
2. ___________ is an application used to manage the content of a Web site.
a. Content Management System (CMS)
b. Content Delivery Application (CDA)
c. Content Management Application (CMA)
d. Content Management Framework (CMF)
3. The httpd.conf file can be found in the _______ folder.
a. /conf
b. Apache HTTP Server
c. xampp
d. ServerRoot
4. To add the PHP directory to the Path Environment Variables, you open Control Panel and go to
_____________ .
a. System & Maintenance → Advanced System Settings → Environment Variables
b. System & Maintenance → Advanced System Settings → System→ Environment Variables
c. System → System & Maintenance → Advanced System Settings → Environment Variables
d. System & Maintenance → System Advanced System Settings → Environment Variables
5. ________ is the user interface that allows the content manager or author to easily create,
modify, or delete content from a Web site without the need-to-know Hyper Text Markup
Language (HTML).
a. Content Management System (CMS)
b. Content Management Framework (CMF)
c. Content Management Application (CMA)
d. Content Delivery Application (CDA)
6. Which of these plug-ins are installed as a part of the Drupal core or are items that have been
created by members of the Drupal community?
a. Modules
b. Data
c. Blocks and menus
d. Template
7. You need ________ of disk space for a minimum installation of Drupal.
a. 15 MB
b. 30 MB
c. 45 MB
d. 60B
8. When configuring Apache, on line 204 of the default httpd.conf file, change the _________ path
to the location of 'htdocs' directory.
a. Document Index
b. Document Root
c. Server Root
d. Directory
9. When installing PHP, uncomment _______ extension on line 661.
a. php_mbstring.dll
b. php_gd2.dll
c. mysql.dll
d. Windows include_path
10. Which of the following user names are best to use for the core user?
a. admin
b. root
c. rootpath
d. dummy
11. Which of the following options will you use to disable skype?
a. Tools → Options → Advanced → Connection → Uncheck "Use port 80 and 443 an
alternative"
b. Tools → Advanced → Options → Connection → Uncheck "Use port 80 and 443 an
alternative"
c. Tools → Connection → Options →Advanced → Uncheck "Use port 80 and 443 an
alternative"
d. Connection → Tools → Options → Advanced → Uncheck "Use port 80 and 443 an
alternative"
12. Which of the following setups should you select when installing Apache?
a. Standard
b. Minimal
c. Typical Setup
d. Custom
13. The _________ content type includes information such as news items that is updated more
frequently and cross-referenced.
a. Article
b. Blog entry
c. Poll
d. Forum topic
14. __________ drive the main navigation structure for your site.
a. Content type
b. Main menu
c. Secondary menu
d. Nodes
15. In Drupal 7, click _______ to edit the contents of the block.
a. Configure block
b. Add block
c. Create new account
d. Add
16. To configure permissions for editors, click _________ .
a. Administration → User management → Roles
b. Administration → User management → Users
c. Administration → User management → Permissions
d. User management →Administration → Permissions
17. __________ refers to the practice of classifying things.
a. Taxonomy
b. Views
c. Vocabulary
d. Terms
18. _________ module allows to edit a field directly from the view it is displayed in.
a. Views Hacks
b. Views Field View
c. Editable Fields
d. Views Attach
19. __________content type is used for static content that can be linked into the main navigation
bar.
a. Book page
b. Article
c. Your own
d. Basic page
20. Which of the following are a collection of links used to navigate a Web site?
a. Menus
b. Nodes
c. Blocks
d. Views
21. Which of the following will help you Add a block in Drupal 7?
a. Clicking Administer → Site building → Blocks → Add block
b. Clicking Dashboard → Structure → Blocks → Add
c. Clicking Administer → Blocks → Site building → Add block
d. Clicking Dashboard → Structure → Blocks → Add block
22. Which of the following will help you create or edit a role in Drupal 6?
a. Clicking Administration → User management → Users
b. Clicking Administration → User management → Permissions
c. Clicking Administration → User management → Roles
d. Clicking Administration → User management → Role
23. Which of the following codes will you use to create a Movie taxonomy?
a. Vocabulary = Movie

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?

base theme = garland

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 (

'#type' => 'submit',

'#value' =>t ('Send Data'),

);

?>

b. <?php

$form['my_button'] = array(

'#type' => 'submit',


'#value' =>t("Send Data"),

);

?>

c. <?php

$form['my_button'] = array(

'#value' => 'submit',

'#type' =>t('Send Data"),

);

?>

d. <?php

$form['my_button'] = array(

'#type' => "submit",

'#value' =>t("Send Data"),);

?>

You might also like