Search Header Logo

PHP Assessment 1

Authored by John Oli

Computers

University

Used 2+ times

PHP Assessment 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

In PHP, variable names are case-sensitive. (T/F)

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

The elseif keyword can be written as else if in PHP. (T/F

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

The foreach loop can only be used with arrays. (T/F)

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

In PHP, arrays can store elements of different data types. (T/F)

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

The if statement can only be used with integer values. (T/F)

True

False

6.

FILL IN THE BLANK QUESTION

1 min • 3 pts

To declare a variable in PHP, you must use the ________ symbol before the variable name.

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The ________ operator is used to concatenate strings in PHP.

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?