Question Bank

3705 approved questions from the community

How does NestJS handle asynchronous operations?

MEDIUM
SINGLE CHOICE
35s
Nest.js
by Mohamed

What is the primary purpose of DTOs (Data Transfer Objects) in NestJS?

MEDIUM
SINGLE CHOICE
35s
Nest.js
by Mohamed

Which interface must a guard class implement in NestJS?

EASY
SINGLE CHOICE
25s
Nest.js
by Mohamed

What is the primary responsibility of guards in NestJS?

MEDIUM
SINGLE CHOICE
35s
Nest.js
by Mohamed

What is the primary purpose of pipes in NestJS?

MEDIUM
SINGLE CHOICE
35s
Nest.js
by Mohamed

Middleware in NestJS must call next() if it doesn't end the request-response cycle.

MEDIUM
TRUE FALSE
25s
Nest.js
by Mohamed

What is an interceptor in NestJS?

MEDIUM
SINGLE CHOICE
35s
Nest.js
by Mohamed

What is the primary purpose of the @Body() decorator in NestJS?

EASY
SINGLE CHOICE
30s
Nest.js
by Mohamed

Global modules in NestJS should be registered only once, generally by the root or core module.

MEDIUM
TRUE FALSE
25s
Nest.js
by Mohamed

What is GraphQL?

MEDIUM
SINGLE CHOICE
35s
Nest.js
by Mohamed

What is the purpose of the @Resolver() decorator in NestJS?

MEDIUM
SINGLE CHOICE
35s
Nest.js
by Mohamed

Services in NestJS are responsible for business logic and interacting with data sources.

EASY
TRUE FALSE
20s
Nest.js
by Mohamed

Observables are provided by the RxJS library and are integrated into NestJS for handling asynchronous streams.

MEDIUM
TRUE FALSE
25s
Nest.js
by Mohamed

The ValidationPipe in NestJS can automatically validate incoming request bodies against DTO classes.

MEDIUM
TRUE FALSE
25s
Nest.js
by Mohamed

Which interface must a pipe class implement in NestJS?

EASY
SINGLE CHOICE
25s
Nest.js
by Mohamed

Refresh tokens typically have a longer expiration time than access tokens.

MEDIUM
TRUE FALSE
25s
Nest.js
by Mohamed

In NestJS, when using the forwardRef() utility to resolve circular dependencies, you must use it on both sides of the circular relationship.

HARD
TRUE FALSE
30s
Nest.js
by Mohamed

What is the purpose of the @Query() decorator in NestJS?

MEDIUM
SINGLE CHOICE
30s
Nest.js
by Mohamed

What command is used to run migrations in TypeORM?

MEDIUM
SINGLE CHOICE
30s
Nest.js
by Mohamed

What is the purpose of the @Res() decorator?

MEDIUM
SINGLE CHOICE
35s
Nest.js
by Mohamed
PreviousPage 94 of 186Next