Question Bank

3705 approved questions from the community

Which of the following are core functions of PHP? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
PHP
by Mohamed

Which of the following are valid PHP variable scopes? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
PHP
by Mohamed

Which of the following are core data types in PHP? (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 command-line option allows you to run a single PHP command without a script file?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

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

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

What does CSRF stand for in web security?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

How can you exclude deprecation notices while reporting all other error types?

HARD
SINGLE CHOICE
40s
PHP
by Mohamed

What command-line option displays the PHP version?

EASY
SINGLE CHOICE
25s
PHP
by Mohamed

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

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

Which error type in PHP suggests updates to code for better interoperability?

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

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

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

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

HARD
SINGLE CHOICE
35s
PHP
by Mohamed

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

HARD
SINGLE CHOICE
40s
PHP
by Mohamed

Which function family handles application output buffering in PHP?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

What does PHP compile requested files into during the pre-processing stage?

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

What does htmlspecialchars() convert '<' to?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed

Which superglobal is a combination of $_GET, $_POST, and $_COOKIE?

MEDIUM
SINGLE CHOICE
30s
PHP
by Mohamed
PreviousPage 56 of 186Next