PHP MCQ Questions and Answers
Practice ModeShowing 10 of 130 questions
Q21
When compared to the compiled program, scripts run
Answer: Option B
Q22
PHP is a widely used ……………. scripting language that is especially suited for web development and can be embedded into html
Answer: Option A
Q23
Which of the following is not true?
Answer: Option D
Q24
The most portable version of PHP tag that is compatible to embed in XML or XHTML too is:
Answer: Option D
Q25
The most portable version of PHP tag that is compatible to embed in XML or XHTML too is:
Answer: Option D
Q26
Which of the following variables is not a predefined variable?
Answer: Option A
Q27
You can define a constant by using the define() function. Once a constant is defined
Answer: Option A
Q28
The following piece of script will output:
<?
$email=’admin@psexam.com’;
$new=strstr($email, ‘@’Wink;
print $new;
?>
Answer: Option C
Q29
Which of the following function returns the number of characters in a string variable?
Answer: Option D
Q30
When you need to obtain the ASCII value of a character which of the following function you apply in PHP?
Answer: Option C