Search Header Logo

Quiz PHP Core

Authored by Đặng Kim Thi

Computers

Professional Development

Used 11+ times

Quiz PHP Core
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is correct about PHP?

PHP is a recursive acronym for "PHP: Hypertext Preprocessor".

PHP is a server side scripting language that is embedded in HTML.

It is used to manage dynamic content, databases, session tracking, even build entire e-commerce sites.

All of the above.

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is correct about determine the "truth" of any value not already of the Boolean type?

If the value is a number, it is false if exactly equal to zero and true otherwise.

If the value is a string, it is false if the string is empty (has zero characters) or is the string "0", and is true otherwise.

Values of type NULL are always false.

All of the above.

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is correct about NULL?

NULL is a special type that only has one value: NULL.

The special constant NULL is capitalized by convention, but actually it is case insensitive.

Both of the above.

None of the above.

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following magic constant of PHP returns class name?

LINE

FILE

FUNCTION

CLASS

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following function is used to get environment variables in PHP?

search()

environment()

env()

getenv()

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

If there is any problem in loading a file then the require() function generates a warning but the script will continue execution.

true

false

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is used to access session variables in PHP?

session_start() function

$_SESSION[]

isset() function

session_destroy() function

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?