Node.js and Express.js Quiz

Node.js and Express.js Quiz

University

10 Qs

quiz-placeholder

Similar activities

Nodejs Day-1

Nodejs Day-1

University

11 Qs

Android development Quiz

Android development Quiz

University

10 Qs

Super 15 batch 3 quiz 3

Super 15 batch 3 quiz 3

University

10 Qs

Database NoSQL (MongoDB)

Database NoSQL (MongoDB)

University - Professional Development

12 Qs

Gujarati Stories Pari's cupcakes

Gujarati Stories Pari's cupcakes

KG - Professional Development

11 Qs

Python Zybooks Module 13 - Inheritance

Python Zybooks Module 13 - Inheritance

University

10 Qs

Introducción a Mongodb (Ej clase 18/11/2019)

Introducción a Mongodb (Ej clase 18/11/2019)

12th Grade - Professional Development

8 Qs

ASDF QUIZ

ASDF QUIZ

KG - University

10 Qs

Node.js and Express.js Quiz

Node.js and Express.js Quiz

Assessment

Quiz

Other

University

Medium

Created by

Gnaneshwar Reddy

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Node.js framework is commonly used for building REST APIs in MERN applications?

Express.js

Django

Flask

Spring Boot

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command initializes a new Node.js project with default settings?

npm install

npm init

npm init -y

node init

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default HTTP method used by a browser when submitting a form?

GET

POST

PUT

DELETE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to parse JSON data in Express.js?

app.use(express.json())

app.use(bodyParser())

app.json()

app.parseJSON()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of mongoose.model()?

Define middleware

Create a MongoDB collection

Define schema and compile a model

Connect to MongoDB

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a route parameter in Express.js?

app.get('/user/:id', callback)

app.route('/user/:id')

app.post('/user/id', callback)

app.get('/user{id}', callback)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which library is commonly used for password hashing in Node.js?

bcrypt

passport

jwt

axios

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?