Question Bank

1085 approved questions from the community

Which superglobal array extracts data from the URL query string?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

Sessions in PHP allow data to persist across different pages during a user's visit.

EASY
TRUE FALSE
20s
PHP
by Mohamed

What does CSRF stand for in web security?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

Which superglobal array holds all set cookies in PHP?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

What is the most common and recommended way to embed PHP code in HTML?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

A constant's value can be changed after it has been defined in PHP.

EASY
TRUE FALSE
20s
PHP
by Mohamed

What is the shortcut equivalent to '<?php echo' available in PHP 5.4+?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

Which of the following are popular HTTP servers that manage incoming PHP requests? (Select all that apply)

EASY
MULTIPLE CHOICE
35s
PHP
by Mohamed

What is the primary purpose of the php.ini file?

EASY
SINGLE CHOICE
30s
PHP
by Mohamed

What command-line option displays the PHP version?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

What PHP function is used to create or modify a cookie?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

Which of the following are valid HTTP method functions in Express.js? (Select all that apply)

EASY
MULTIPLE CHOICE
35s
Express
by Mohamed

What is Nodemon commonly used for in Express.js development?

EASY
SINGLE CHOICE
30s
Express
by Mohamed

What is the purpose of the `package.json` file in an Express.js project?

EASY
SINGLE CHOICE
30s
Express
by Mohamed

What does `app.delete()` handle in Express.js?

EASY
SINGLE CHOICE
30s
Express
by Mohamed

Express.js applications can be tested using frameworks like Jest or Mocha.

EASY
TRUE FALSE
20s
Express
by Mohamed

What HTTP status code should be returned when a resource is successfully created?

EASY
SINGLE CHOICE
25s
Express
by Mohamed

Express.js is the only web framework available for Node.js.

EASY
TRUE FALSE
20s
Express
by Mohamed

Which method is used to specify a view engine in Express.js?

EASY
SINGLE CHOICE
25s
Express
by Mohamed

Express.js requires a specific database to function.

EASY
TRUE FALSE
20s
Express
by Mohamed
PreviousPage 18 of 55Next