Question
i) /?
ii) //
iii) #
iv) /* */
a.
Only ii)
b.
i), iii) and iv)
c.
ii), iii) and iv)
d.
Both ii) and iv)
Posted under PHP
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. We can use ___ to comment a single line? i) /? ii) // iii) # iv) /* */
Similar Questions
Discover Related MCQs
Q. Which of the following php statement/statements will store 111 in variable num?
i) int $num = 111;
ii) int mum = 111;
iii) $num = 111;
iv) 111 = $num;
View solution
Q. Which of following variables can be assigned a value to it?
i) $3hello
ii) $_hello
iii) $this
iv) $This
View solution
Q. Which of the following PHP statements will output Hello World on the screen?
i) echo (“Hello World”);
ii) print (“Hello World”);
iii) printf (“Hello World”);
iv) sprintf (“Hello World”);
View solution
Q. Which of the below statements is equivalent to $add += $add ?
View solution
Q. Which statement will output $x on the screen?
View solution
Q. Which of the below symbols is a newline character?
View solution
Q. Which of the conditional statements is/are supported by PHP?
i) if statements
ii) if-else statements
iii) if-elseif statements
iv) switch statements
View solution
Q. Which of the looping statements is/are supported by PHP?
i) for loop
ii) while loop
iii) do-while loop
iv) foreach loop
View solution
Q. If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?
View solution
Q. Who is the father of PHP?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond PHP? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!