Question Bank

721 approved questions from the community

What setting controls the maximum lifetime of a session in PHP?

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

What is the third parameter of the define() function used for?

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

Which of the following are recommended practices for preventing malicious code injection? (Select all that apply)

HARD
MULTIPLE CHOICE
50s
PHP
by Mohamed

Using $_REQUEST is recommended over $_GET or $_POST for better code maintainability and debugging.

HARD
TRUE FALSE
30s
PHP
by Mohamed

CSPRNG functions in PHP 7/8 provide weaker random number generation compared to PHP 5.

HARD
TRUE FALSE
30s
PHP
by Mohamed

What type of database query should be used to prevent SQL injection attacks?

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

Using only strip_tags() is sufficient for preventing XSS attacks when displaying user-generated content.

HARD
TRUE FALSE
30s
PHP
by Mohamed

What expression did PHP 8 introduce as a more precise alternative to switch statements?

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

What new feature did PHP 8 introduce for function parameters?

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

Which of the following are recommended security measures for PHP sessions? (Select all that apply)

HARD
MULTIPLE CHOICE
50s
PHP
by Mohamed

How would you implement custom body parsing middleware for a content type not supported by Express.js?

HARD
SINGLE CHOICE
45s
Express
by Mohamed

How do you implement health check endpoints for monitoring Express.js applications?

HARD
SINGLE CHOICE
45s
Express
by Mohamed

What is the difference between `app.use()` and `app.all()` in Express.js?

HARD
SINGLE CHOICE
40s
Express
by Mohamed

What is the purpose of using process managers like PM2 with Express.js applications?

HARD
SINGLE CHOICE
45s
Express
by Mohamed

What is the purpose of the `res.vary()` method?

HARD
SINGLE CHOICE
40s
Express
by Mohamed

What is middleware chaining and why is it important in Express.js?

HARD
SINGLE CHOICE
40s
Express
by Mohamed

How do you implement distributed sessions in Express.js for load-balanced environments?

HARD
SINGLE CHOICE
45s
Express
by Mohamed

How do you implement API versioning in Express.js?

HARD
SINGLE CHOICE
45s
Express
by Mohamed

How do you implement pagination in Express.js APIs?

HARD
SINGLE CHOICE
45s
Express
by Mohamed

How do optional and catch-all route segments work in Express.js?

HARD
SINGLE CHOICE
40s
Express
by Mohamed
PreviousPage 12 of 37Next