
PHP Assessment 1
Authored by John Oli
Computers
University
Used 2+ times

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 BLANKS QUESTION
1 min • 3 pts
To declare a variable in PHP, you must use the (a) symbol before the variable name.
7.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
The (a) 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

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?