PHP PGM

PHP PGM

University

55 Qs

quiz-placeholder

Similar activities

BCS Software Languages

BCS Software Languages

12th Grade - University

59 Qs

Fundamental of Multimedia, Database, Network

Fundamental of Multimedia, Database, Network

University

60 Qs

IDMHS

IDMHS

University

54 Qs

RUTS Technology

RUTS Technology

9th Grade - Professional Development

50 Qs

S04L UTS Per4nc4ng4n & Pemrogr4m4n Web

S04L UTS Per4nc4ng4n & Pemrogr4m4n Web

University

50 Qs

QU12 PR4 U4S 81G D4T4

QU12 PR4 U4S 81G D4T4

University

50 Qs

The ICT Module #2.(Teacher)

The ICT Module #2.(Teacher)

University

57 Qs

Information and communications technology 51-100

Information and communications technology 51-100

University

50 Qs

PHP PGM

PHP PGM

Assessment

Quiz

Instructional Technology

University

Medium

Created by

shanil Thrippanikkara

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?