PHP QUIZ-2

Quiz
•
Computers
•
Professional Development
•
Hard
Nirmala Devi
Used 130+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Strings and Arrays

Quiz
•
Professional Development
15 questions
Python Class 1

Quiz
•
Professional Development
15 questions
Linux-2

Quiz
•
Professional Development
10 questions
python quiz

Quiz
•
6th Grade - Professio...
9 questions
Connecting to a Database using PHP (Part 2)

Quiz
•
Professional Development
15 questions
JF UIT 2022 - Game 3

Quiz
•
Professional Development
10 questions
C Code Master lvl 2 A

Quiz
•
Professional Development
10 questions
Python Basics

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade