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
10 questions
CIT JULY 2022

Quiz
•
Professional Development
10 questions
Sains Komputer Tingkatan 5 - 3.3.6 Menggunakan Bahasa

Quiz
•
1st Grade - Professio...
8 questions
Code Like a Woman

Quiz
•
Professional Development
10 questions
C - Programming ( Output based - Loop )

Quiz
•
Professional Development
10 questions
Day 4 C Programming Quiz

Quiz
•
Professional Development
15 questions
CodeHS - Intro to Python - Conditionals Quiz

Quiz
•
9th Grade - Professio...
10 questions
PHP Tours Meetup #45 La petite histoire d'une fonctionnalité

Quiz
•
Professional Development
10 questions
7/2/2024

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development