Test Preperation (Part 03)
Test Preperation (Part 03)
Exam Preperation
(Part 03)
73. What is package.json used for in a Node.js project?
a) npm install
b) npm add
c) npm get
d) npm require
78. How can you ignore a specific file named example.txt in a .gitignore file?
a) example.txt
b) /example.txt
c) *.txt
d) !example.txt
Answer: a) example.txt
d) To test code
82. Which prompt type in Inquirer.js presents a list of options for the user to choose
from?
a) Input
b) Confirm
c) List
d) Checkbox
Answer: c) List
83. Which method of Inquirer.js is used to start the prompt interface and receive user
input?
a) start()
b) prompt()
c) init()
d) run()
Answer: b) prompt()
84. How can you install Inquirer.js in your project using npm?
a) Input
b) Confirm
c) Array
d) List
Answer: c) Array
a) As a testing framework
88 .Which npm package provides the functionality of styling and coloring text output in
the terminal?
a) Chalk.js
b) TerminalStyler.js
c) Colorize.js
d) StyleMaster.js
Answer: a) Chalk.js
89. How can you install Chalk in your project using npm?
b) applyColor()
c) setColor()
d) chalk()
Answer: d) chalk()
a) Bold
b) Italic
c) Strikethrough
d) Underline
Answer: b) Italic
92. Which tool is designed for users who prefer a visual interface for tasks like
committing changes, creating branches, and resolving merge conflicts?
a) GitHub CLI
b) GitHub Desktop
93. Which of the following describes the syntax for defining an object type in
TypeScript using an interface?
a) interface Person {}
b) type Person = {}
c) class Person {}
d) object Person {}
d) It will prompt an error indicating that it's not a valid JavaScript file
95. Which of the following commands will transpile a TypeScript file and then execute
the resulting JavaScript file?
a) node index.ts
97. TypeScript provides support for which of the following features that JavaScript
lacks?
a) Static typing
b) Dynamic typing
c) Prototypal inheritance
d) Function overloading
98. What is the purpose of the null and undefined types in TypeScript?
99. In most programming languages, which symbol is commonly used as the assignment
operator?
a) =
b) ==
c) ===
d) :=
Answer: a) =
b) To declare variables