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


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

1.Binary

2.Integer

3.Float

4.String


Question:
By default, Drupal provides the following roles: 

1.Anonymous User

2.Authenticated User

3.Administrator

4.All of the above


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

1.Drupal 5

2. Drupal 6

3. Drupal 7

4.Drupal 8


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


Question:
Drupal users are grouped into what?

1.User Groups

2.Ranks

3.Roles

4.Teams


Question:
In custom module, routes are defined in:

1.MODULENAME.routing.yml

2.MODULENAME.info.yml

3.MODULENAME.routes.yml

4.MODULENAME.module


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

1.Vocabulary

2.Blog

3.Breadcrumbs

4.Modular


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

1.BaseController

2.ControllerBase

3.Controller

4.ControlController


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

1.Nodes

2.Pages

3.Files

4.Modulars


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

1.Blocks

2.Hooks

3.Modules

4.Actions


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


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


Question:
Which file defines routes in a module?

1.module.routing

2.routing.module

3.module.routing.yml

4.module.info.yml


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


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


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


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

1.#type

2.#cache

3.#markup

4.All of the above


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


Question:
Which of the following controls content in sidebars?

1.Blog

2.Book

3.Dblog

4.Block


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


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


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


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


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


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 %%}


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 %}


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

1.Views

2.CKEditor

3.Breakpoint

4.All of the above


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)


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


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


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.


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


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


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
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite 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!