Search Header Logo

Backend (Node.js, Express.js, MongoDB)

Authored by Ankit Mishra

Computers

Professional Development

Used 3+ times

Backend (Node.js, Express.js, MongoDB)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is one of the main advantages of using Express?

It replaces JavaScript with a new programming language

It is a slow and complex framework

It provides a lightweight layer on top of Node.js for building web applications

It only works with databases and not with APIs

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is NOT an HTTP Request Method?

GET

BODY

POST

DELETE

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the primary purpose of HTTP headers?

To replace the body of an HTTP request or response

To carry additional information between the client and server

To store large amounts of user data permanently

To carry request parameters between the client and server

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the primary role of a model in an application?

To define the user interface and display data

To control user input and manage application logic

To replace the need for controllers in an application

To handle data management and interactions with databases or APIs

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Why is the enctype="multipart/form-data" attribute required in the form when uploading files?

It allows the server to receive file uploads along with other form data

It ensures that the form data is sent as plain text

It compresses the file before sending it to the server

It prevents the form from submitting without JavaScript

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the purpose of Multer in a Node.js application?

To serve static files like HTML and CSS

To manage database connections

To validate user authentication

To handle multipart/form-data for file uploads

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is true about JSON Web Token (JWT) authentication?

JWT tokens must be stored in the database.

JWT allows authentication without storing user credentials on the server.

JWT is a stateful authentication mechanism.

JWT tokens are automatically encrypted.

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?