Google News
logo
Gulp - Quiz(MCQ)

GulpJs : gulp is an open-source JavaScript toolkit created by Eric Schoffstall used as a streaming build system (similar to a more package-focused Make) in front-end web development.

It is a task runner built on Node.js and npm, used for automation of time-consuming and repetitive tasks involved in web development like minification, concatenation, cache busting, unit testing, linting, optimization, etc.

Gulp uses a code-over-configuration approach to define its tasks and relies on its small, single-purpose plugins to carry them out. The gulp ecosystem includes more than 3500 such plugins.

A)
CSS
B)
Python
C)
PHP
D)
JavaScript

Correct Answer :   JavaScript


Explanation : Gulp is an open-source JavaScript toolkit.

A)
Rob Pike
B)
James Gosling
C)
Eric Schoffstall
D)
Brian Kernighan

Correct Answer :   Eric Schoffstall


Explanation : Gulp is an open-source JavaScript toolkit created by Eric Schoffstall used as a streaming build system (similar to a more package-focused Make) in front-end web development.

A)
26 September 2013
B)
26 September 2010
C)
26 September 2007
D)
26 September 2003

Correct Answer :   26 September 2013

A)
Frontend
B)
Backend
C)
Database
D)
None of the above

Correct Answer :   Frontend


Explanation : Gulp helps to run front-end tasks.

A)
React
B)
Node.js
C)
Angular.js
D)
All of the above

Correct Answer :   Node.js


Explanation : It is a task runner built on Node.js and npm

A)
Stack
B)
Myntra
C)
AO.com
D)
All of the above

Correct Answer :   All of the above


Explanation : 1800+ companies reportedly use gulp, some of them are :

* Stack
* Myntra
* AO.com
* SuperChat
* ViaVarejo

A)
Positive
B)
Negative
C)
Can Not Say
D)
None of the above

Correct Answer :   Positive


Explanation : To adjust the delay duration, set the delay option to a positive integer.

A)
Bit
B)
Byte
C)
Glob
D)
Char

Correct Answer :   Glob


Explanation : A glob is a string made up of literal and/or wildcard characters that are used to match filepaths.

A)
Version--
B)
Gulp – v
C)
Version_gulp
D)
Gulp—version

Correct Answer :   Gulp – v


Explanation : Gulp – v is the command that will display the Gulp version.

A)
SRC
B)
Build
C)
Gulpfile.js
D)
None of the above

Correct Answer :   Build


Explanation : The build folder will contain the production files.

A)
Processors
B)
Pre-processors
C)
Task runners and build tools
D)
Package managers

Correct Answer :   Package managers


Explanation : The dependencies of the plugins are handled by the package manager.

A)
Globbing
B)
Glob
C)
Binding
D)
Oriented

Correct Answer :   Globbing


Explanation : Globbing is the act of utilizing one or more globs to locate files on a filesystem.

A)
Empty
B)
Buffering
C)
Streaming
D)
None of the above

Correct Answer :   Streaming


Explanation : Streaming mode exists primarily to work with huge data that cannot fit in memory, such as enormous photos or videos.

14 .
Which of the following command is used when you want to run multiple task?
A)
gulp <task> <othertask>
B)
<task> <othertask> Gulp
C)
gulp <task> -- <othertask>
D)
Gulp-- <task> <othertask>

Correct Answer :   gulp <task> <othertask>


Explaination : gulp <task> <othertask> is the command used when you want to run multiple task.

A)
Empty
B)
Buffering
C)
Streaming
D)
None of the above

Correct Answer :   Buffering


Explanation : The default mode is buffering, which loads the file contents into memory.

A)
6
B)
5
C)
4
D)
3

Correct Answer :   3


Explanation : src() can operate in three modes: buffering, streaming, and empty.

A)
Synchronous
B)
Asynchronous
C)
Can Not Say
D)
None of the above

Correct Answer :   Asynchronous


Explanation : Each gulp task is an asynchronous JavaScript function.

A)
Public task
B)
Private task
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Public task


Explanation : Public tasks are exported from your gulpfile and may be launched with the gulp command.

A)
Line()
B)
Parallel()
C)
Series()
D)
None of the above

Correct Answer :   Series()


Explanation : To ensure that your tasks are completed in the correct sequence, series() method is used.

A)
Software as service
B)
Simply awesome style sheets
C)
Syntactically Awesome Style sheets
D)
None of the above

Correct Answer :   Simply awesome style sheets


Explanation : SASS refers to Syntactically Awesome Style sheets.

A)
Require()
B)
Plugins()
C)
Dependencies()
D)
All of the above

Correct Answer :   Require()


Explanation : Require() is used to load middle gulp and gulp plugins.

A)
Task.js
B)
Config.js
C)
Project.js
D)
Gulpfile.js

Correct Answer :   Gulpfile.js


Explanation : In a file called "gulpfile.js", you specify a "task".

A)
gulp.dest()
B)
gulp.task()
C)
gulp.watch()
D)
gulp.src()

Correct Answer :   gulp.src()


Explanation : gulp.src() API is used to read files in.

A)
Track
B)
Monitor
C)
Watch
D)
None of the above

Correct Answer :   Watch


Explanation : The Watch method is used to keep track of the source files.

A)
ESC
B)
Ctrl+C
C)
Ctrl+S
D)
Shift+ctrl

Correct Answer :   Ctrl+C


Explanation : To exit the monitoring process and return to the command line, hit Ctrl+C.

26 .
Which of the following plugins monitors all HTML and CSS files in the CSS directory and performs live reloads in all browsers whenever files are modified?
A)
BrowserSync
B)
Sync
C)
MonitorBrowser
D)
All of the above

Correct Answer :   BrowserSync


Explaination : BrowserSync monitors all HTML and CSS files in the CSS directory and performs live reloads in all browsers whenever files are modified.

A)
Dest()
B)
Src()
C)
Pipe()
D)
Gulp.js

Correct Answer :   Dest()


Explanation : dest() creates a stream on the file system for storing Vinyl objects.

A)
2
B)
3
C)
4
D)
5

Correct Answer :   3


Explanation : There are 3 components of GulpJS build system :

* Preprocessors
* Package managers
* Task runners and build tools

A)
Task runners
B)
Pre-processors
C)
Package managers
D)
None of the above

Correct Answer :   Task runners


Explanation : Task runners automate SASS to CSS conversion, file minification, image optimization, and a variety of other development workflow activities.