Workflow Automation with Gulp Interview Question-Answer

Q.1 The default task representation in gulp is _________.

       A.‘default’,function(){ ‘d’,void});

       B. gulp.task(‘default’,function(){ });

       C.‘default’,function(){ ‘default’});

       D.‘default’,function(){ ‘d’,null});

Ans : gulp.task(‘default’,function(){ });

Q.2 Between Grunt and gulp, which is relatively fast?

       A. Grunt

       B. gulp

       C. Both are of the same speed

       D. Neither of them are fast

Ans : gulp

Q.3 While installing gulp with $npm install gulp –save-dev, what does –save- dev represent?

       A. Ensures CLI installation

       B. Missed out components of global installation will be taken here

       C. Installs gulp as a development dependency and updates package.json

       D. Triggers dependency between project and CLI

Ans : Installs gulp as a development dependency and updates package.json

Q.4 Code in a gulp file will be ________ the code in a grunt file.

       A. lesser than

       B. larger than

       C. Equal to

       D. 2x times than

Ans : 2x times than

Q.5 What was used by the gulp files?

       A. JSON

       B. JS

       C. None of the options

       D. Both the options

Ans : JS

Q.6 Which command in the CLI triggers the ‘default` task?

       A. run gulp

       B. run gulp default

       C. gulp

       D. run default gulp

Ans : gulp

Q.7 Which among the following helps to compile into .CSS format?

       A. gulp-sass

       B. gulp-less

       C. Both the options

Ans : Both the options

Q.8 Which helps with sequencing the tasks one by one?

       A. Only watch and plumber

       B. .pipe

       C. watch

       D. plumber

Ans : .pipe

Q.9 Which plug-in helps in task dependencies?

       A. No gulp plug-in is required

       B. gulp-depend

       C. gulp-seq

       D. gulp-order

Ans : No gulp plug-in is required

Q.10 gulp-concat helps with the __________.

       A. Concatenation of files in the given location

       B. Concatenation of .js/.css files alone

       C. Concatenation of CSS files

       D. Concatenation of JavaScript files

Ans : Concatenation of files in the given location

Q.11 In-memory caching is enabled with the help of which gulp plug-in?

       A. gulp-tempcache

       B. gulp-cached

       C. gulp-sess

       D. gulp-cookie

Ans : gulp-cached

Q.12 To convert .svg icons into fonts, gulp provides ________ plug-in.

       A. gulp-svgfont

       B. gulp-iconfont

       C. gulp-svgchange

       D. All the options

Ans : gulp-iconfont

Q.13 Organizing the gulp plug-ins can be easily achieved through ____________.

       A. gulp-load-plugins

       B. gulp-reload-plugins

       C. gulp-reload-package

       D. gulp-load-package

Ans : gulp-load-plugins

Q.14 Before installation of gulp, installation of _____________ acts as a prerequisite.

       A. Node.js

       B. Brocolli.js

       C. Grunt.js

       D. Bower.js

Ans : Node.js

Q.15 While installing gulp using the syntax npm install gulp –save-dev, ________section of _________ is updated.

       A. globalDependencies, gulpfile

       B. devDependencies, gulpfile

       C. globalDependencies, package.json

       D. devDependencies, package.json

Ans : devDependencies, package.json

Q.16 Which package helps in minifying the CSS?

       A. gulp-min-css

       B. gulp-minify-css

       C. gulp-css-minify

       D. gulp-compressify-css

Ans : gulp-minify-css

Q.17 Which plug-in has optimizers and compressors?

       A. gulp-watch

       B. gulp-imagemin

       C. gulp-plumber

       D. gulp-changed

Ans : gulp-imagemin

Q.18 How does installing gulp globally help?

       A. Can draw reference within Grunt easily

       B. All files in any directory can be mapped easily

       C. Helps to run gulp command from any project folder

       D. All the options

Ans : Helps to run gulp command from any project folder

Q.19 How to check if gulp has been installed successfully?

       A. gulp -verify

       B. gulp -check

       C. gulp -val

       D. gulp -v

Ans : gulp -v

Q.20 Which Stream(s) provide the ability to both read and write?

       A. Transform

       B. Duplex

       C. Classic

       D. All the options

Ans : Transform

Q.21 Which task would be called in gulp, by default?

       A. Jshint

       B. Plumber

       C. Default

       D. Watch

Ans : Default

Q.22 The different kinds of Streams include ______________.

       A. readable, writable, divide, classic, transcend

       B. readable, writable, duplex, classic, transform

       C. readable, writable, divide, correspond, transform

       D. readable, writable, divide, check, transform

Ans : readable, writable, duplex, classic, transform

Q.23 The default task/plug-ins in gulp are mentioned in the ______ file.

       A. index.html

       B. gulpfile.js

       C. app.js

       D. node.js

Ans : gulpfile.js

Q.24 While installing gulp, the first step would be ________.

       A. $npm install gulp –save-dev

       B. $npm install gulp g –save-dev

       C. $npm install gulp g

       D. $npm install gulp g savedev

Ans : $npm install gulp g

Q.25 Which plug-in notifies whenever there is any change in file?

       A. gulp-notify

       B. gulp-watch

       C. gulp-plumber

       D. gulp-timber

Ans : gulp-timber

Q.26 Streams give higher flow control.

       A. True

       B. False

Ans : True

Leave a Comment