wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Node.js,Mongodb and React.js

Total questions: 19

Worksheet time: 7mins

Name
Class
Date
1.

Which of the following statements are true?

a)

Node.js is both a server and client-side language.

b)

Node.js is a server-side language.

c)

Node.js is a client-side language.

d)

None of the above.

2.

Node.js is written in which language?

a)

JavaScript

b)

Java

c)

C

d)

C++

3.

To include the HTTP server in the node module, what function do we use?


a)

require()

b)

None of the above

c)

get()

d)

createServer()

4.

What method is used to return the current working directory of the process?


a)

cwd()

b)

pwd()

c)

cmd()

d)

None of the above

5.

How can we initiate a NodeJS file called Hello in Node?


a)

node Hello

b)

javascript Hello.js

c)

node Hello.js

d)

Hello,js

6.

Amongst which of the following is / are true about MongoDB?

a)
  1. MongoDB is a cross-platform database

b)
  1. Document oriented database

c)
  1. High performance database

d)
  1. All of the mentioned above

7.

A record in MongoDB is a ___

a)
  1. Table

b)
  1. Document

c)
  1. Application

d)
  1. None of the mentioned above

8.

MongoDB stores documents in ___

a)
  1. Store

b)
  1. Collections

c)
  1. Indexes

d)
  1. None of the mentioned above

9.

The Collections screen displays ___ for each collection in the selected database.

a)
  1. Collection name

b)
  1. Number of documents in the collection

c)
  1. None of the mentioned above

d)
  1. Both A. and B

10.

Aggregation operations in MongoDB ___ values from multiple documents.

a)
  1. Data set

b)

Both Set and Group

c)
  1. Set

d)
  1. Group

11.

React is also known as _____.

a)
  1. ReactJS

b)
  1. js

c)
  1. Both A. and B.

d)
  1. None of these

12.

JSX stands for _____.

a)
  1. JSON

b)
  1. JSON XML

c)
  1. JavaScript XML

d)
  1. JavaScript and AngularJS

13.

A class component must include the _______ statement.

a)
  1. extends React.Component

b)
  1. extends React

c)
  1. extends Component

d)
  1. extends React.Component.All

14.

Which ReactJS command is used to create a new application?

a)
  1. create-react-app

b)
  1. new-react-app

c)
  1. create-new-reactapp

d)
  1. react-app

15.

How to install create-react-app?

a)
  1. npx create-react-app -new my-app

b)
  1. npx create-react-app -app my-app

c)
  1. npx new-react-app my-app

d)
  1. npx create-react-app my-app

16.

Find the output for the below code

console.log('This example is different!');

console.logs('The result is displayed in the Command Line Interface');

a)

This example is different!
The result is displayed in the Command Line Interface

b)

This example is different!

c)

The result is displayed in the Command Line Interface

d)

Nothing will be print

17.

How many elements can a valid react component return?


a)

1

b)

2

c)

3

d)

4

18.

Which of the following function is used to change the state of react component?

a)

this.setState()

b)

this.state()

c)

this.setChangeState()

d)

None of the above

19.

Which of the following are used to handle data in react?

a)

services

b)

State and props

c)

state

d)

pros

e)

components