Home »
MCQs
Gulp Multiple-Choice Questions (MCQs)
Gulp is a command-line task runner for Node. js. Gulp let us automate processes and run repetitive tasks with ease.
Gulp MCQs: This section contains multiple-choice questions and answers on the various topics of Gulp. Practice these MCQs to test and enhance your skills on Gulp.
List of Gulp MCQs
1. Gulp purely uses ____.
- JavaScript
- Python
- CSS
- Java
Answer: A) JavaScript
Explanation:
Gulp purely uses JavaScript code.
Discuss this Question
2. Gulp is used for ____?
- Backend
- Frontend
Answer: B) Frontend
Explanation:
Gulp helps to run front-end tasks.
Discuss this Question
3. Which platform does Gulp uses?
- Node.js
- React
- Angular.js
Answer: A) Node.js
Explanation:
Gulp platform uses Node.js.
Discuss this Question
4. Which of the following command will display the Gulp version?
- Version--
- Gulp—version
- Gulp – v
- Version_gulp
Answer: C) Gulp – v
Explanation:
Gulp – v is the command that will display the Gulp version.
Discuss this Question
5. Which of the following folder will contains the production files as soon as you create your project?
- SRC
- Build
- Gulpfile.js
Answer: B) Build
Explanation:
The build folder will contain the production files.
Discuss this Question
6. The dependencies of the plugins are handled by the ____.
- Package managers
- Pre-processors
- Task runners and build tools
Answer: A) Package managers
Explanation:
The dependencies of the plugins are handled by the package manager.
Discuss this Question
7. Which of the following command is used when you want to run multiple task?
- gulp <task> -- <othertask>
- <task> <othertask> Gulp
- Gulp-- <task> <othertask>
- gulp <task> <othertask>
Answer: D) gulp <task> <othertask>
Explanation:
gulp <task> <othertask> is the command used when you want to run multiple task.
Discuss this Question
8. Each gulp task is an ____ JavaScript function
- Synchronous
- Asynchronous
Answer: B) Asynchronous
Explanation:
Each gulp task is an asynchronous JavaScript function.
Discuss this Question
9. ____ are exported from your gulpfile and may be launched with the gulp command.
- Public task
- Private task
- None
- All of the above
Answer: A) Public task
Explanation:
Public tasks are exported from your gulpfile and may be launched with the gulp command.
Discuss this Question
10. To ensure that your tasks are completed in the correct sequence, which of the following method is used?
- Parallel()
- Line()
- Series()
Answer: C) Series()
Explanation:
To ensure that your tasks are completed in the correct sequence, series() method is used.
Discuss this Question
11. The ____ method is used to keep track of the source files.
- Track
- Monitor
- Watch
Answer: C) Watch
Explanation:
The Watch method is used to keep track of the source files.
Discuss this Question
12. To exit the monitoring process and return to the command line, hit which of the following shortcut keys are hit?
- Ctrl+S
- Shift+ctrl
- ESC
- Ctrl+C
Answer: D) Ctrl+C
Explanation:
To exit the monitoring process and return to the command line, hit Ctrl+C.
Discuss this Question
13. 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?
- MonitorBrowser
- BrowserSync
- Sync
Answer: B) BrowserSync
Explanation:
BrowserSync monitors all HTML and CSS files in the CSS directory and performs live reloads in all browsers whenever files are modified.
Discuss this Question
14. ____ automate SASS to CSS conversion, file minification, image optimization, and a variety of other development workflow activities.
- Package managers
- Pre-processors
- Task runners
Answer: C) Task runners
Explanation:
Task runners automate SASS to CSS conversion, file minification, image optimization, and a variety of other development workflow activities.
Discuss this Question
15. How many components does the Gulp JS build system have?
- 5
- 4
- 3
- 2
Answer: C) 3
Explanation:
There are 3 components of GulpJS build system.
- Package managers
- Preprocessors
- Task runners and build tools
Discuss this Question
16. Which of the following can handle many jobs at the same time?
- Gulp
- Grunt
Answer: A) Gulp
Explanation:
Gulp can handle many jobs at the same time.
Discuss this Question
17. ____ creates a stream on the file system for storing Vinyl objects.
- Pipe()
- Src()
- Dest()
- Gulp.js
Answer: C) Dest()
Explanation:
dest() creates a stream on the file system for storing Vinyl objects.
Discuss this Question
18. Is Gulp.js open-source?
- Yes
- No
Answer: A) Yes
Explanation:
Gulp.js is an open-source toolkit.
Discuss this Question
19. Which of the following Gulp API is used to read files in?
- gulp.task()
- gulp.src()
- gulp.dest()
- gulp.watch()
Answer: B) gulp.src()
Explanation:
gulp.src() API is used to read files in.
Discuss this Question
20. In a file called "____" you specify a "task".
- Task.js
- Config.js
- Project.js
- Gulpfile.js
Answer: D) Gulpfile.js
Explanation:
In a file called "gulpfile.js", you specify a "task".
Discuss this Question
21. ____ is used to load middle gulp and gulp plugins.
- Plugins()
- Dependencies()
- Require()
Answer: C) Require()
Explanation:
Require() is used to load middle gulp and gulp plugins.
Discuss this Question
22. What is SASS in Gulp?
- Syntactically Awesome Style sheets
- Simply awesome style sheets
- Software as service
Answer: B) Simply awesome style sheets
Explanation:
SASS refers to Syntactically Awesome Style sheets.
Discuss this Question
23. How many modes does src() can operate?
- 2
- 5
- 6
- 3
Answer: D) 3
Explanation:
src() can operate in three modes: buffering, streaming, and empty.
Discuss this Question
24. The default mode is ____-, which loads the file contents into memory.
- Buffering
- Streaming
- Empty.
Answer: A) Buffering
Explanation:
The default mode is buffering, which loads the file contents into memory.
Discuss this Question
25. ____ mode exists primarily to work with huge data that cannot fit in memory, such as enormous photos or videos.
- Buffering
- Streaming
- Empty.
Answer: B) Streaming
Explanation:
Streaming mode exists primarily to work with huge data that cannot fit in memory, such as enormous photos or videos.
Discuss this Question
26. ____ is the act of utilizing one or more globs to locate files on a filesystem.
- Globbing
- Glob
- Binding
- Oriented
Answer: A) Globbing
Explanation:
Globbing is the act of utilizing one or more globs to locate files on a filesystem.
Discuss this Question
27. A ____ is a string made up of literal and/or wildcard characters that is used to match filepaths.
- Bit
- Byte
- Glob
- Char
Answer: C) Glob
Explanation:
A glob is a string made up of literal and/or wildcard characters that are used to match filepaths.
Discuss this Question
28. In Gulp if you want to adjust the delay duration, set the delay option to an integer.
- Positive
- Negative
Answer: A) Positive
Explanation:
To adjust the delay duration, set the delay option to a positive integer.
Discuss this Question
29. Which of the following companies uses Gulp?
- Myntra
- Stack
- SuperChat
- All of the above
Answer: D) All of the above
Explanation:
1751 companies reportedly use gulp, some of them are:
- Myntra
- Stack
- SuperChat
- AO.com
- ViaVarejo
Discuss this Question