PHP PGM

PHP PGM

University

55 Qs

quiz-placeholder

Similar activities

tin học  beoooo làm

tin học beoooo làm

KG - University

51 Qs

Mock Test – Integrated Systems Technology

Mock Test – Integrated Systems Technology

University

50 Qs

Ақпарат 50-100

Ақпарат 50-100

University

50 Qs

PMQLKS

PMQLKS

University

52 Qs

504L UT5 CL)UD C)MPUT1NG 2021-1

504L UT5 CL)UD C)MPUT1NG 2021-1

University

50 Qs

EC TTL 2 Final Examination, Second Sem, S.Y. 2024-2025

EC TTL 2 Final Examination, Second Sem, S.Y. 2024-2025

University

60 Qs

bài số 9

bài số 9

University

50 Qs

ICT Final Exam

ICT Final Exam

University

50 Qs

PHP PGM

PHP PGM

Assessment

Quiz

Instructional Technology

University

Medium

Created by

shanil Thrippanikkara

Used 3+ times

FREE Resource

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) ); ?>
Displays “” (false)
Displays 1 (true)
Displays 2
Displays 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?
+
U
,
&

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A switch statement in PHP is used to ________
switch between functions
switch between variables
switch between lines
choose from multiple possibilities

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The_______ loops through a block of code for each element in an array in PHP.
for
while
do...while
foreach

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Instructional Technology