wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Node JS

Total questions: 25

Worksheet time: 10mins

Name
Class
Date
1.

Which programming language is the Google V8 Engine designed for?

a)

Java

b)

JavaScript

c)

Python

d)

R

2.

Which JavaScript library is used to create Desktop apps in Node.js?

a)

React.js

b)

React Native

c)

Electron.js

d)

Express.js

3.

Which JavaScript library is used to create Progressive Web apps in Node.js?

a)

React.js

b)

React Native

c)

Electron.js

d)

Express.js

4.

Node.js is a Closed-source Technology. True or False?

a)

True

b)

False

5.

JavaScript used which of the following I/O model?

a)

Non-Blocking I/O Model

b)

Blocking I/O Model

c)

None.

6.

Node.js is ____________Threaded language

a)

Single

b)

Multi

c)

Dual

7.

Which of the following command is used to run a node.js program?

a)

node run main.js

b)

node start main.js

c)

start main.js

d)

node main.js

8.

Which of the following code will print "Hello" on the output screen?

a)

print("Hello");

b)

console.log(Hello);

c)

console.log("Hello");

d)

printf("%s","Hello");

9.

________ is a back end web application framework for Node.js, it is fast, unopinionated and minimalist framework.

a)

Emotional.js

b)

Express.js

c)

Nodemon

d)

Doraemon

10.

What is the right syntax for importing a module?

a)

require()

b)

function()

c)

import()

d)

module.import()

11.

What JavaScript Engine is used by Google Chrome?

a)

Y8

b)

Adobe Flash Player

c)

Friv

d)

V8

12.

Which of the module used for Buffer

a)

node module

b)

No module required for Buffer

c)

npm i buffer

d)

node main.js

13.

Which of the following core module is used for file system operations in Node.js?

a)
  • A) http

b)
  • B) fs

c)
  • C) path

  • D) querystring

d)
  • D) querystring

14.

Which of the following is NOT a core module in Node.js?

a)
  • A) http

b)
  • B) fs

c)
  • C) express

d)
  • D) os

15.

To listen for connections, what function would you use?

a)

app.listen

b)

app.serve

c)

app.connect

d)

app.start

16.

Which of the following methods is used to create a server in Node.js?

a)
  • A) createServer()

b)
  • B) startServer()

c)
  • C) initServer()

d)
  • D) runServer()

17.

What is the purpose of the npm command in Node.js?

a)
  • A) To manage global Node.js installations

b)
  • B) To create a new Node.js project

c)
  • C) To install and manage packages/modules for a Node.js project

d)
  • D) To execute JavaScript code directly from the command line

18.

Which is the most famous backend technology which is based on JavaScript?

a)

Springboot

b)

Flask

c)
Node.js
d)

Django

19.
What is Node.js?
a)
A front-end framework
b)
A back-end JavaScript runtime environment
c)
A database management system
d)
A browser extension
20.
What is the primary use of Node.js?
a)
To build interactive user interfaces
b)
To develop mobile applications
c)
To write server-side applications
d)
To create graphics and animations
21.
Which of the following is true about Node.js?
a)
It's a compiled language
b)
It's single-threaded and asynchronous
c)
It's primarily used for desktop applications
d)
It's not suitable for web development
22.
Which of the following modules is a built-in module in Node.js?
a)
express
b)
path
c)
request
d)
mongoose
23.
What is the Node.js 'event loop' responsible for?
a)
Processing incoming HTTP requests
b)
Running JavaScript code asynchronously
c)
Managing database connections
d)
Handling server security
24.
Which HTTP status code is typically used for a successful HTTP GET request?
a)
200 (OK)
b)
404 (Not Found)
c)
500 (Internal Server Error)
d)
401 (Unauthorized)
25.
What does 'npm' stand for?
a)
Node Package Manager
b)
New Programming Module
c)
Node Project Manager
d)
Node Program Manager