Super 15 batch 3 quiz 3

Super 15 batch 3 quiz 3

University

10 Qs

quiz-placeholder

Similar activities

Node.js and Express.js Quiz

Node.js and Express.js Quiz

University

10 Qs

Backend Review

Backend Review

University

12 Qs

Day 3

Day 3

University

10 Qs

PKKMB & E-DAY 2021 DAY 2 (3)

PKKMB & E-DAY 2021 DAY 2 (3)

University

10 Qs

Nodejs-Module

Nodejs-Module

University

10 Qs

Camp 3

Camp 3

University

9 Qs

COE FULLSTACK

COE FULLSTACK

University

9 Qs

Frontend Summer internship Quiz -11

Frontend Summer internship Quiz -11

University

15 Qs

Super 15 batch 3 quiz 3

Super 15 batch 3 quiz 3

Assessment

Quiz

Other

University

Hard

Created by

Gnaneshwar Reddy

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. What is Express.js?

- a) A front-end JavaScript library

- b) A Node.js web application framework

- c) A database management tool

- d) A version control system

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Which of the following is the correct way to install Express.js?

- a) npm install -g express

- b) npm install express --save

- c) npm install expressjs

- d) npm install express-js

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. Which of the following is used to create a new instance of an Express application?

- a) var app = express();

- b) var app = new Express();

- c) var app = createExpress();

- d) var app = Express.init();

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Which method is used to start a server in Express.js?

- a) app.listen()

- b) app.start()

- c) app.create()

- d) app.run()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Which HTTP method is used to retrieve data from the server in Express.js?

- a) POST

- b) DELETE

- c) PUT

- d) GET

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. How can you define a route in Express.js to handle a GET request?*

- a) app.route('GET', '/');

- b) app.get('/');

- c) app.get('/', function(req, res) {...});

- d) app.on('GET', '/');

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which of the following middleware functions is used to parse incoming request bodies in Express.js?

- a) bodyParser.json()

- b) appParser()

- c) reqParser()

- d) expressParser()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?