web11,12

web11,12

Professional Development

24 Qs

quiz-placeholder

Similar activities

Season 5 #Spaic Python Weekly Quiz

Season 5 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

ACC online exam

ACC online exam

Professional Development

20 Qs

Mocha Iced/Float CREW

Mocha Iced/Float CREW

Professional Development

20 Qs

PH Chat Quiz #3

PH Chat Quiz #3

Professional Development

20 Qs

Frontend Assignment

Frontend Assignment

Professional Development

20 Qs

Season 2 #Spaic Python Weekly Quiz

Season 2 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

DS Quiz 1

DS Quiz 1

University - Professional Development

22 Qs

Logical and Programming Questions

Logical and Programming Questions

Professional Development

20 Qs

web11,12

web11,12

Assessment

Quiz

Other

Professional Development

Medium

Created by

Karthika J

Used 2+ times

FREE Resource

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 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)
Pluto

2.

MULTIPLE CHOICE QUESTION

30 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

30 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

30 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

30 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

30 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

30 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?