Ethnus MERN Fullstack - Assessment - 2
Ethnus MERN Fullstack - Assessment - 2
Email *
Name *
Priyanshu Singh
Mobile *
6307814602
22BCE10097
VIT email id *
priyanshusingh.2022@vitbhopal.ac.in
What are the differences between React's class components and functional *
components with hooks?
Functional components with hooks offer simpler syntax and better code
organization
Functional components with hooks cannot hold state, while class components can
What are controlled components in React and how are they different from *
uncontrolled components?
React Router DOM provides components for handling navigation and routing in
React applications
React Router DOM is only used for styling components in React applications
Route
Link
Switch
Redirect
It is used to define the root of the routing configuration for a React application
componentDidMount()
componentWillUnmount()
componentDidUpdate()
componentWillMount()
After the component has been rendered to the DOM and its state has changed.
Before the component is rendered to the DOM for the first time.
It is used to efficiently update the browser's DOM when the state of a React
component changes.
Yes, functions can be passed as props from parent to child components in React.
No, only primitive values such as strings and numbers can be passed as props.
Yes, functions can be passed as props from child to parent components in React.
A type of database
A programming language
1 only
1 and 2 only
3 only
1 only
1,2 and 3
import
require
include
use
What is the purpose of the exports object in Node.js modules? *
A CSS framework.
How do you create a simple server using the HTTP module in Node.js? *
http.createServer(requestHandler).listen(port);
http.server(requestHandler).port(port);
http.createServer(port).listen(requestHandler);
http.server().port(port).listen(requestHandler);
db.collection.update()
db.collection.updateMany()
db.collection.updateMultiple()
db.collection.updateAll()
fs.readFile()
fs.getFile()
fs.read()
fs.openFile()
What is the default scope of modules in Node.js? *
Global
Static
Using setTimeout
Which phase of the Node.js event loop executes timers scheduled by setTimeout *
and setInterval?
I/O callbacks
Poll
Timers
Close callbacks
What is the purpose of the event loop in Node.js? *
What is Express.js? *
A front-end framework
A back-end framework
A JavaScript compiler
Which of the following methods is used to define a route for handling GET *
requests in
Express.js?
app.post()
app.get()
app.put()
app.fetch()
What is the default port for MongoDB? *
27017
8080
3306
5432
db.collection.ensureIndex()
db.collection.createIndex()
db.collection.addIndex()
db.collection.buildIndex()
Clear selection
This form was created inside of ETHNUS CONSULTANCY SERVICES PVT. LTD..
Does this form look suspicious? Report
Forms