Drupal/Drupal Mcq Questions Unit 4 Sample Test,Sample questions

Question:
25- Drupal has over ________ plugins to boost your website?

1.1000

2.2000

3.4000

4.5000

Posted Date:-2022-10-18 22:49:55


Question:
Among the following DB-place-holders, which one is not enclosed within single quotes?

1.Binary

2.Integer

3.Float

4.String

Posted Date:-2022-10-18 22:51:40


Question:
By default, Drupal provides the following roles: 

1.Anonymous User

2.Authenticated User

3.Administrator

4.All of the above

Posted Date:-2022-10-18 22:44:10


Question:
CacheArray is in the process of being replaced by CacheCollector in ____?

1.Drupal 5

2. Drupal 6

3. Drupal 7

4.Drupal 8

Posted Date:-2022-10-18 22:56:04


Question:
Drupal core is __ defining a system of __ and __?

1.hooks, Modular, callbacks

2.modular, hooks, callbacks

3.backend, hooks, callbacks

4.None of these

Posted Date:-2022-10-18 22:52:52


Question:
Drupal users are grouped into what?

1.User Groups

2.Ranks

3.Roles

4.Teams

Posted Date:-2022-10-18 22:07:11


Question:
In custom module, routes are defined in:

1.MODULENAME.routing.yml

2.MODULENAME.info.yml

3.MODULENAME.routes.yml

4.MODULENAME.module

Posted Date:-2022-10-18 22:53:52


Question:
In Drupal, the highest level of taxonomy description is _____________.

1.Vocabulary

2.Blog

3.Breadcrumbs

4.Modular

Posted Date:-2022-10-18 22:31:27


Question:
To create our own Controller, we need to extend it from the following Controller Class:

1.BaseController

2.ControllerBase

3.Controller

4.ControlController

Posted Date:-2022-10-18 22:11:55


Question:
Use the CCK module to add fields to your ________.

1.Nodes

2.Pages

3.Files

4.Modulars

Posted Date:-2022-10-18 22:30:24


Question:
What Drupal feature is activated when a trigger is enabled?

1.Blocks

2.Hooks

3.Modules

4.Actions

Posted Date:-2022-10-18 22:46:20


Question:
What is a theme suggestion in Drupal theming?

1.Theme suggestions suggest to the Drupal admin how a theme will best look and it offers HTML, CSS, and Jquery.

2.Theme suggestions change the look of a specific node and they re-style views, blocks, and pages.

3.Theme suggestions suggest the best way to present a theme to the user.

4.Theme suggestions suggest which Drupal theme to download from Drupal.org

Posted Date:-2022-10-18 22:57:59


Question:
What is the default location of the configuration sync directory?

1.DRUPALROOT/sites/default/config_LONG_HASH

2.DRUPALROOT/sites/default/files/private/config_LONG_HASH

3.DRUPALROOT/sites/default/files/private/config_LONG_HASH

4.DRUPALROOT/sites/default/files/config_LONG_HASH

Posted Date:-2022-10-18 22:57:11


Question:
Which file defines routes in a module?

1.module.routing

2.routing.module

3.module.routing.yml

4.module.info.yml

Posted Date:-2022-10-18 22:09:57


Question:
Which is the correct way to attach Libraries in THEME.info.yml?

1.ame: custom_theme type: theme description: Amazing Custom Theme package: Other core: 8.x libraries: - custom_theme/global-styling - custom_theme/views - custom_theme/header_footer

2.name: custom_theme type: theme description: Amazing Custom Theme package: Other core: 8.x libraries: custom_theme/global-styling custom_theme/views custom_theme/header_footer

3.name: custom_theme type: theme description: Amazing Custom Theme package: Other core: 8.x libraries: custom_theme/global-styling, custom_theme/views, custom_theme/header_footer

4.None of these

Posted Date:-2022-10-18 22:37:32


Question:
Which is the correct way to list all routes?

1.drupal router:debug

2.drupal router:all

3.drupal router:list-all

4.drupal route:all

Posted Date:-2022-10-18 22:29:12


Question:
Which minimum PHP version is required to run Drupal 8.2?

1.PHP 5.3

2.PHP 5.4

3.PHP 5.5

4.PHP 5.6

Posted Date:-2022-10-18 22:33:23


Question:
Which of the following are properties of render array? 

1.#type

2.#cache

3.#markup

4.All of the above

Posted Date:-2022-10-18 22:45:18


Question:
Which of the following can be used to attach a library in twig template?

1.attach_library()

2.drupal_add_js()

3.drupal_add_library()

4.None of the above

Posted Date:-2022-10-18 22:08:04


Question:
Which of the following controls content in sidebars?

1.Blog

2.Book

3.Dblog

4.Block

Posted Date:-2022-10-18 22:50:42


Question:
Which of the following data storage types are provided by Configuration Management in Drupal?

1.Content Session State Configuration

2.Session State Configuration

3.Views Session State Configuration

4.Permissions Session State Configuration

Posted Date:-2022-10-18 22:34:27


Question:
Which of the following files are required for creating a Drupal theme?

1..info

2.themes.php

3.both (a) and (b)

4.None of these

Posted Date:-2022-10-18 22:41:57


Question:
Which of the following is correct to include CSS or DS files in a Drupal Module?

1.Save the CSS or DS to a file.

2.Define a "library", which can contain both CSS and JS files."Attach" the library to a render array in a hook.

3.Both A and B

4.Use add_js and add_cs function in module file

Posted Date:-2022-10-18 22:59:50


Question:
Which of the following is the correct way to attach a library in a Drupal Module?

1.use ['#attached'] property

2.drupal_add_js() and drupal_add_library()

3.Both of the above

4.None of the above

Posted Date:-2022-10-18 22:08:58


Question:
Which of the following is the correct way to display current key:value on settings file?

1.Authentication API

2.Block API

3.RESTful Web Services API

4.All of the above

Posted Date:-2022-10-18 23:00:41


Question:
Which of the following is the correct way to print a variable in Twig?

1.{{ name_of_variable }}

2.{ name_of_variable }

3.{% name_of_vairable %}

4.{%% name_of_variable %%}

Posted Date:-2022-10-18 22:48:56


Question:
Which of the following is the correct way to remove whitespace between HTML tags in Twig template?

1.{% removespace %} <div class="code"> <strong>foo</strong> </div> {% endremovespace %}

2.{%- removeblanks -%} <div class="code"> <strong>foo</strong> </div> {%- endremoveblanks -%}

3.{%- removespace -%} <div class="code"> <strong>foo</strong> </div> {%- endremovespace -%}

4.{% spaceless %} <div class="code"> <strong>foo</strong> </div> {% endspaceless %}

Posted Date:-2022-10-18 22:54:59


Question:
Which of the following modules are included in Drupal Core? (

1.Views

2.CKEditor

3.Breakpoint

4.All of the above

Posted Date:-2022-10-18 22:40:58


Question:
Which of the following options are provided by Drupal to increase performance?

1.Aggregate JavaScript files

2.Aggregate CSS files

3.Views Caching

4.Both (A) and (B)

Posted Date:-2022-10-18 22:47:27


Question:
Which of the following permissions are defined by Configuration Manager:

1.Export configuration

2.Import configuration

3.Synchronize configuration

4.All of the above

Posted Date:-2022-10-18 22:58:52


Question:
Which of the following statements are valid for Field SQL Storage?

1.Field UI—allow you to create fields and attach them to content types, comments

2.Fields can be stored in different formats and formatted in different ways

3.Fields can not be stored in different formats and formatted in different pages

4.None of these

Posted Date:-2022-10-18 22:43:03


Question:
Which of the following ways can you use to customize error pages for 404 and 403 errors?

1.Use the customerror module and its required modules

2.Create custom error pages for these errors, then specify the location of these error files in the admin settings.

3.Create custom error pages for these errors, then specify the location of these error files in the configuration file.

4.We can not customize error pages.

Posted Date:-2022-10-18 22:05:47


Question:
Which one of the following is the correct way to discover valid theme hook suggestions?

1.Install and enable Devel module

2.Enable Twig debugging mode

3.Write custom module

4.Enable Webprofiler module

Posted Date:-2022-10-18 22:11:10


Question:
Which statement is true?

1.Asset libraries are simple collections of CSS or JavaScript files

2.Asset libraries are simple collections of CSS files

3.Asset libraries are simple collections of JavaScript files

4.Asset libraries are simple collections of images

Posted Date:-2022-10-18 22:35:56


More MCQS

  1. Drupal Mcq Questions Unit 1
  2. Drupal Mcq Questions Unit 2
  3. Drupal Mcq Questions Unit 3
  4. Drupal Mcq Questions Unit 4
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!