Bed ST1
Bed ST1
CODEQUOTIENT
Q1. MCQ-1MARKS-BED
exports
imports
expose
Ans : exports
Q2. MCQ-1MARKS-BED
get()
put()
patch()
send()
Q3. MCQ-1MARKS-BED
true
false
Ans : true
1 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
Q4. MCQ-1MARKS-BED
npm i express
npm install express
npm download express
node install express
Q5. MCQ-1MARKS-BED
if you want to read .csv file data then which module would you prefer?
file system
file service
csv system
Q6. MCQ-1MARKS-BED
mongoose
mongodb
mg hector
Q7. MCQ-1MARKS-BED
fs.readFile
fs.readFileSync
fs.readFileAsync
fs.read
2 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
Q8. MCQ-1MARKS-BED
app.use(middleware())
app.get('route', middleware, (req, res) =>{})
app.Call(middleware)
Q9. MCQ-1MARKS-BED
In nodejs when we read from a file then in what form we get the data?
HTML
string
text
buffer
Ans : buffer
Q10. MCQ-1MARKS-BED
stream()
text()
clear()
Ans : clear()
Q11. MCQ-1MARKS-BED
3 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
zlib
ulib
vlib
zipLIb
Ans : zlib
Q12. MCQ-1MARKS-BED
_____ is a software service that allows 2 or more applications to talk to each other?
API
client-server
rest
All of the above
Ans : API
Q13. MCQ-1MARKS-BED
cors
express
ALLRequest
Ans : cors
Q14. MCQ-1MARKS-BED
c1 is route , c2 is callback
c1 is callback , c2 is route
both are callback
c1 is a variable and c2 is a route
4 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
Q15. MCQ-1MARKS-BED
dividing up tasks
reusing functions
improves testing cycle
All of the above
Q16. MCQ-1MARKS-BED
__dirname
__filename
BUffer
All of the above
Q17. MCQ-1MARKS-BED
fire()
emit()
Ans : emit()
Q18. MCQ-1MARKS-BED
encoding
start
end
5 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
Q19. MCQ-1MARKS-BED
Q20. MCQ-1MARKS-BED
unix
macos
linux
All of the above
Q21. MCQ-1MARKS-BED
url
http
.net
web
Ans : http
Q22. MCQ-1MARKS-BED
6 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
jade
handlebars
caption
Ans : handlebars
Q23. MCQ-1MARKS-BED
Which of the following method is used to return the current working directory of the process?
cwd()
pwd()
Ans : cwd()
Q24. MCQ-1MARKS-BED
Which of the following statement is used to execute the code of the sample.js file?
1.
sample.js
node sample.js
nodejs sample.js
Q25. MCQ-1MARKS-BED
7 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
1.
21
18
19
20
Ans : 18
Q26. MCQ-1MARKS-BED
==
equal()
isequaNode()
Ans : isequaNode()
Q27. MCQ-1MARKS-BED
Which of the following tool is used to automate the various tasks of the Node.js application?
1. Express.js
2. GruntJS
3. NPM
4. None of the above
express.js
grunt.js
NPM
Ans : grunt.js
8 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
Q28. MCQ-1MARKS-BED
Which of the following method is used to compare the placement of two nodes in the DOM hierarchy
(document)?
cloneNode()
compareDocumentPosition()
getFeature()
Ans : compareDocumentPosition()
Q29. MCQ-1MARKS-BED
fs.appendFile()
fs.addFile()
fs.writeFile()
Ans : fs.appendFile()
Q30. MCQ-1MARKS-BED
The buffer class is a global class that can be accessed without importing a buffer module.
true
false
Ans : true
Q31. MCQ-1MARKS-BED
9 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
node
node repl
node start
Ans : node
Q32. MCQ-1MARKS-BED
java
coffeeScript
c++
Ans : c++
Q33. MCQ-1MARKS-BED
find()
getAll()
saveAll()
Ans : find()
Q34. MCQ-1MARKS-BED
using .split('\r\n')
using .split('\r\0')
using .split('\r\ro')
10 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
Q35. MCQ-1MARKS-BED
nodemailer
email.js
emailSender()
Ans : nodemailer
Q36. MCQ-1MARKS-BED
Which of the following is used to create and manage web sockets in Node.js?
socket.io
websockets.node
websockets.js
Ans : socket.io
Q37. MCQ-1MARKS-BED
cheerio
jsdom
classicDom
Q38. MCQ-1MARKS-BED
SuperTest
Frisby
kite.js
11 of 12 28-11-2023, 12:35 pm
Download | CodeQuotient https://test.codequotient.com/test/getTestContentFile/65432274d6996b...
Q39. MCQ-1MARKS-BED
npm
pnpm
yarn
Q40. MCQ-1MARKS-BED
esLint
jsHint
standard
12 of 12 28-11-2023, 12:35 pm