NEW
Font size
WorksheetsNode.js,Mongodb and React.js
Total questions: 19
Worksheet time: 7mins
Which of the following statements are true?
Node.js is both a server and client-side language.
Node.js is a server-side language.
Node.js is a client-side language.
None of the above.
Node.js is written in which language?
JavaScript
Java
C
C++
To include the HTTP server in the node module, what function do we use?
require()
None of the above
get()
createServer()
What method is used to return the current working directory of the process?
cwd()
pwd()
cmd()
None of the above
How can we initiate a NodeJS file called Hello in Node?
node Hello
javascript Hello.js
node Hello.js
Hello,js
Amongst which of the following is / are true about MongoDB?
MongoDB is a cross-platform database
Document oriented database
High performance database
All of the mentioned above
A record in MongoDB is a ___
Table
Document
Application
None of the mentioned above
MongoDB stores documents in ___
Store
Collections
Indexes
None of the mentioned above
The Collections screen displays ___ for each collection in the selected database.
Collection name
Number of documents in the collection
None of the mentioned above
Both A. and B
Aggregation operations in MongoDB ___ values from multiple documents.
Data set
Both Set and Group
Set
Group
React is also known as _____.
ReactJS
js
Both A. and B.
None of these
JSX stands for _____.
JSON
JSON XML
JavaScript XML
JavaScript and AngularJS
A class component must include the _______ statement.
extends React.Component
extends React
extends Component
extends React.Component.All
Which ReactJS command is used to create a new application?
create-react-app
new-react-app
create-new-reactapp
react-app
How to install create-react-app?
npx create-react-app -new my-app
npx create-react-app -app my-app
npx new-react-app my-app
npx create-react-app my-app
Find the output for the below code
console.log('This example is different!');
console.logs('The result is displayed in the Command Line Interface');
This example is different!
The result is displayed in the Command Line Interface
This example is different!
The result is displayed in the Command Line Interface
Nothing will be print
How many elements can a valid react component return?
1
2
3
4
Which of the following function is used to change the state of react component?
this.setState()
this.state()
this.setChangeState()
None of the above
Which of the following are used to handle data in react?
services
State and props
state
pros
components
