Question Bank

3705 approved questions from the community

Which PHP setting controls whether errors are logged to a file?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

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

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

What command-line option displays PHP configuration information?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

Which command-line option allows you to run a single PHP command without a script file?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

Which of the following are valid cookie parameters in PHP? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
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

Which of the following are valid ways to redirect output when running PHP from the command line? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
PHP
by Mohamed

Which PHP function should be used for strict email validation with Unicode support?

HARD
SINGLE CHOICE
40s
PHP
by Mohamed

What does htmlspecialchars() convert '<' to?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

What is the recommended naming convention for PHP constants?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

What happens during the Bootstrap stage of a PHP request?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

Which function can be used to configure session cookie parameters for security?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

What should be done immediately after setting a location header to ensure script execution stops?

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

What notation was introduced in PHP 7.1 to indicate that a function can return either the specified type or null?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

In PHP 7/8, what do anonymous functions automatically capture from the outer scope?

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

What does CSRF stand for in web security?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

Which command-line option allows you to specify a custom configuration file for PHP?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

On Windows systems, you typically need to use php-cgi.exe to run PHP scripts from the command line.

MEDIUM
TRUE FALSE
25s
PHP
by Mohamed

What does XSS stand for in web security?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

PHP constants should ideally be defined at the beginning of a script to ensure consistent values.

EASY
TRUE FALSE
20s
PHP
by Mohamed
PreviousPage 57 of 186Next