More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
PPSC Computer Science Chapter 9 PHP Online Test MCQs With Answers
Question # 1
Trace the function that does continue the script execution even if the file inclusion fails.
Choose an answer
Include ()
requre(0
Both of abvoe
None
Previous
Skip
Next
Question # 2
PHP supports all four different ways of delimiting in this context identify the false statement.
Choose an answer
You can use any of the delimiting style.
You can use different delimiting style in same page
You can use any delimiting style but must use a single style consistently for a page.
Variables declared in previous blocks are remembered on later blocks tool
Previous
Skip
Next
Question # 3
Trace the odd data type
Choose an answer
Floats
Integer
Double
Real number
Previous
Skip
Next
Question # 4
Which of the following mode of fopen () function opens a file only for writing if a file with that name does not exist, attempts to create a new file, If the file exist , place the file pointer at the end of the file after all other data.
Choose an answer
W
W+
A
A+
Previous
Skip
Next
Question # 5
Which data types are treaded as arrays.
Choose an answer
Integer
Float
String
Booleans
Previous
Skip
Next
Question # 6
For integer data type PHP 6 introduced.
Choose an answer
8 bit integer value
16 bit integer value
32 bit integer value
64 bit integer value
Previous
Skip
Next
Question # 7
Which of the following type specifier is invalid in print f ( ) functions.
Choose an answer
% a
% b
% c
% d
Previous
Skip
Next
Question # 8
Which of the following is not a session function.
Choose an answer
Session _decode
Session _ destroy
Session _id
Session _ pw
Previous
Skip
Next
Question # 9
Which of the following function return 1 when output is successful.
Choose an answer
echo()
Print ()
Both
None
Previous
Skip
Next
Question # 10
Which function includes the specified file even the statement evaluates to false in which block the function is placed.
Choose an answer
Include ()
require (0
Both of above
None
Previous
Skip
Next
Question # 11
To work with remote files in PHP you need to enable.
Choose an answer
Allow _url _fopen
Allow _ remote_files
Both of above
None
Previous
Skip
Next
Question # 12
In mail ($param2, $ param 2, $param3, $param 4), the $param 2 contains.
Choose an answer
The message
The recipient
The header
The subject
Previous
Skip
Next
Question # 13
f open ($file_doc."r+& rduo opens a file for.
Choose an answer
reading
writing
both above
None
Previous
Skip
Next
Question # 14
You can define a constant by using the define () function Once a constant is defined.
Choose an answer
It can never the changed of underdefined
It can never be changed but can be undefined.
It can be changed but can not be undefined
It can be changed and can be undefined
Previous
Skip
Next
Question # 15
Variable scope on which a variable does not loose its value when the function exists and use that value if the function is called again is.
Choose an answer
Local
Function parameter
Static
None
Previous
Skip
Next
Question # 16
When you need to obtain the ASCII value of a character which of the following unction you apply in PHP.
Choose an answer
chr ( ):
ace ( ):
ord ( ):
Val ( ):
Previous
Skip
Next
Question # 17
Which of the following method sends input to a script via a URL.
Choose an answer
Get
Post
Both
None
Previous
Skip
Next
Question # 18
Which of the following functions require the allow -rul -fopen must the enabled.
Choose an answer
Include ()
Require ()
Both above
None
Previous
Skip
Next
Question # 19
Which of the following method is suitable when you need to send larger form submissions.
Choose an answer
Get
Post
Both Get and post
None of above
Previous
Skip
Next
Question # 20
Which of the following is not true.
Choose an answer
PHP can be used to develop web application
PHP makes a website dynamic
PHP applications can not be complied
PHP can not be embedded into html
Previous
Skip
Next
Back