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
Which of the following delimiting method is known as string interpolation.
Choose an answer
Delimited by single uote
Delimited by double uote
Delimited by <<< identifier
All of above
Previous
Skip
Next
Question # 2
When uploading a file if the UPLOAD_ERR-OK contains value 0 it means.
Choose an answer
Upload is not successful error occurred
The file uploaded with success
Uploaded file size is 0
File upload progress is 0% completed
Previous
Skip
Next
Question # 3
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 # 4
Trace the odd data type
Choose an answer
Floats
Integer
Double
Real number
Previous
Skip
Next
Question # 5
Identify the variable scope that is not supported by PHP
Choose an answer
Local variables
Function parameters
Hidden variables
Global variables
Previous
Skip
Next
Question # 6
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 # 7
Which of the following function can assign the output to a string variable.
Choose an answer
echo ()
print (0
print f(0
s print f ()
Previous
Skip
Next
Question # 8
Which data types are treaded as arrays.
Choose an answer
Integer
Float
String
Booleans
Previous
Skip
Next
Question # 9
Which of the following data type is not seal or datA type supported by PHP
Choose an answer
Array
String
Float
Boolean
Previous
Skip
Next
Question # 10
A script is a
Choose an answer
Program or sequence of instructions that is interpreted of carried out by processor directly
Program or sequence of instruction that is interpreted or carried out by another program
Program or sequence of instruction that is interpreted or carried out by web server only
None
Previous
Skip
Next
Question # 11
Which of the following is not a session function.
Choose an answer
Session _decode
Session _ destroy
Session _id
Session _ pw
Previous
Skip
Next
Question # 12
Which of following commenting is supported by PHP
Choose an answer
Single line c++syntax -ii
Shell syntax -#
Both of above
None
Previous
Skip
Next
Question # 13
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 # 14
The left associative dot operator (0 is used in PHP for.
Choose an answer
Multiplication
Concatenation
Separate object and its member
Delimeter
Previous
Skip
Next
Question # 15
The difference between include ( ) and require()
Choose an answer
Are different how they handle failure
Both are same in every aspects
Is include () produced a fatal error while require results in a warning.
None
Previous
Skip
Next
Question # 16
Identify the invalid identifier
Choose an answer
my -function
size
-some word
This & That
Previous
Skip
Next
Question # 17
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 # 18
PHP is widely used ____ scriting language that is especially suited for web development and can be embedded into html.
Choose an answer
Open source general purpose
Proprietary general purpose
Open source special purpose
Proprietary special purpose
Previous
Skip
Next
Question # 19
If Boolean variable $ alive =5
Choose an answer
$ alive is false
$ alive is true
$ alive is overflow
None of above
Previous
Skip
Next
Question # 20
The left association operator % s used in PHP for
Choose an answer
Percentage
bit wise or
Division
Modulus
Previous
Skip
Next
Back