Logo educatepk.com
MCQs & Books free for all subjects and educational help  
Subscribe email alerts:
MCQs Online
MCQs on PHP General
Books
MCQs on PHP General
All php mcq are available here.
Option image

Q No.1 of 10

What does PHP stand for?
Option 1
Private Home Page
Option 2
PHP: Hypertext Preprocessor
Option 3
Personal Home Page
Option 4
Personal Hypertext Processor
Q No.2 of 10

PHP server scripts are surrounded by delimiters, which?
Option 1
<script>----</script>
Option 2
<&>----</&>
Option 3
<?php>----</?>
Option 4
<?php --- ?>
Q No.3 of 10

How do you write "Hello World" in PHP?
Option 1
echo "Hello World";
Option 2
"Hello World";
Option 3
cout<<"Hellow world";
Option 4
Document.Write("Hello World");
Q No.4 of 10

All variables in PHP start with which symbol
Option 1
?
Option 2
$
Option 3
!
Option 4
&
Q No.5 of 10

What is the correct way to end a PHP statement
Option 1
.
Option 2
</php>
Option 3
end
Option 4
;
Q No.6 of 10

The PHP syntax is most similar to:
Option 1
JavaScript
Option 2
Perl and C
Option 3
VBScript
Option 4
non of these
Q No.7 of 10

How do you get information from a form that is submitted using the "get" method
Option 1
$_GET[];
Option 2
Request.QueryString;
Option 3
Request.Form;
Option 4
non of these
Q No.8 of 10

When using the POST method, variables are displayed in the URL
Option 1
False
Option 2
True
Q No.9 of 10

In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings
Option 1
True
Option 2
False
Q No.10 of 10

What is the correct way to create a function in PHP
Option 1
new_function myFunction()
Option 2
function myFunction()
Option 3
create myFunction()
Option 4
myFunction() function

Correct Answers