Search Header Logo

Super 15 batch 3 quiz 3

Authored by Gnaneshwar Reddy

Other

University

Used 1+ times

Super 15 batch 3 quiz 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?