Search Header Logo

PHP Quiz

Authored by Niel Neri

Computers

University

Used 46+ times

PHP Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 20 pts

Media Image

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

10 sec • 20 pts

Which of the following is correct about PHP?

PHP performs system functions, i.e. from files on a system it can create, open, read, write, and close them.

PHP can handle forms, i.e. gather data from files, save data to a file, thru email you can send data, return data to the user.

You add, delete, modify elements within your database thru PHP.

All of the above.

3.

MULTIPLE CHOICE QUESTION

10 sec • 20 pts

Is PHP whitespace sensitive?

true

false

4.

MULTIPLE CHOICE QUESTION

10 sec • 20 pts

Media Image

What is the output of this code?

The number is incorrect.

False

True

The number is 1

5.

MULTIPLE CHOICE QUESTION

10 sec • 20 pts

Which of the following is true about php variables?

All variables in PHP are denoted with a leading dollar sign ($).

The value of a variable is the value of its most recent assignment.

Variables are assigned with the = operator, with the variable on the left-hand side and the expression to be evaluated on the right.

All of the above.

6.

MULTIPLE CHOICE QUESTION

10 sec • 20 pts

Which of the following type of variables are whole numbers, without a decimal point, like 4195?

Integers

Double

Boolean

Strings

7.

MULTIPLE CHOICE QUESTION

10 sec • 20 pts

Which of the following type of variables are floating-point numbers, like 3.14159 or 49.1?

Integers

Double

Boolean

Strings

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?