
PHP PGM
Authored by shanil Thrippanikkara
Instructional Technology
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
55 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following PHP code? <?php $x = 23; echo ( $x < 24 ); ?>
Displays 1 (true)
Displays 24
Displays 23
Displays “” (false)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following PHP code? <?php $x = 23; echo ( $x <“24” ); ?>
Displays “” (false)
Displays 1 (true)
Displays 24
Displays 23
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following PHP code? <?php $x = 23; echo ( $x ===23 ); ?>
Displays “” (false)
Displays 1 (true)
Displays 24
Displays 23
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following PHP code? <?php $x = 2; $y = 3; echo ( ($x == 2) xor ($y == 3) ); ?>
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Let $x and $y be the two arrays in PHP. Which array operator is used for the union of $x and $y?
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A switch statement in PHP is used to ________
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The_______ loops through a block of code for each element in an array 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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?