PHP QUIZ-2

PHP QUIZ-2

Professional Development

10 Qs

quiz-placeholder

Similar activities

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

everisCodeFest 2

everisCodeFest 2

Professional Development

10 Qs

5. Control statement

5. Control statement

Professional Development

10 Qs

C String Array MCQs

C String Array MCQs

Professional Development

10 Qs

IoT Design Methodology

IoT Design Methodology

University - Professional Development

15 Qs

ระบบคอมพิวเตอร์ ม.2

ระบบคอมพิวเตอร์ ม.2

Professional Development

10 Qs

โปรแกรมกราฟิก 3-4

โปรแกรมกราฟิก 3-4

Professional Development

10 Qs

CSS

CSS

Professional Development

15 Qs

PHP QUIZ-2

PHP QUIZ-2

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Nirmala Devi

Used 130+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct output of the given code <?php

$NUM1 = 3;

$NUM2 = 4;

$NUM3 = $NUM1 ** $NUM2;

echo $NUM3;

?>

12

81

Garbage Value

None of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The "**" operator belongs to which category of operators?

Arithmetic operator

Logical operator

Comparison operator

Conditional operator

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following are comparison operators in PHP?

A. ==

B. !=

C. ===

D. < = >

A and B

C and D

A,B and C

A,B,C and D

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the Output:

<?php

$color= "red";

echo "$color";

echo "$COLOR";

echo "$Color";

?>

redredred

redred

red

Error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the Output?

<?php

#echo "Hello World"

echo "#Hello World";

?>

Hello World #Hello World

Hello World

#Hello World

Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the Output


<?php

$color=red;

echo "$color";

?>

red

$color

No answer

Error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the Ouput

<?php

$color1="green";

$color2="yellow";

echo "$color1" + "$color2";

?>

greenyellow

green yellow

Error

0

Access all questions and much more by creating a free account

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

Already have an account?