Dear candidates you will find MCQ questions of PHP here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
S
Q. Which of the following PHP statements will output Hello World on the screen? 1. echo (“Hello World”); 2. print (“Hello World”); 3. printf (“Hello World”); 4. sprintf (“Hello World”);
S
Q. What will be the output of the following PHP code?
<?php $color = "maroon"; $var = $color[2]; echo "$var"; ?>
S
Q. What will be the output of the following PHP code?
<?php $score = 1234; $scoreboard = (array) $score; echo $scoreboard[0]; ?>
S
Q. What will be the output of the following PHP code?
<?php $total = "25 students"; $more = 10; $total = $total + $more; echo "$total"; ?>
S
Q. Which of the below statements is equivalent to $add += $add ?
S
Q. Which statement will output $x on the screen?
S
Q. What will be the output of the following code?
<?php function track() { static $count = 0; $count++; echo $count; } track(); track(); track(); ?>
S
Q. What will be the output of the following PHP code?
<?php $a = "clue"; $a .= "get"; echo "$a"; ?>
S
Q. What will be the output of the following PHP code?
<?php $a = 5; $b = 5; span class="sys-fun">echo ($a === $b); ?>
S
Q. Which of the below symbols is a newline character?
What are the advantages of CSS?
What is the purpose of the z-index and how is it used?
What is CSS Box Model and what are its elements?
What are the benefits of CSS sprites?
Discuss the merits and demerits of Embedded Style Sheets?
What benefits and demerits do External Style Sheets have?
How can you integrate CSS on a web page?
Don't have account? Register here.