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
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 # 2
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 # 3
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 # 4
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 # 5
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 # 6
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 # 7
Which of the following function return 1 when output is successful.
Choose an answer
echo()
Print ()
Both
None
Previous
Skip
Next
Question # 8
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 # 9
In PHP string data are
Choose an answer
Delimited by single uote
Delimited by double uoto
Delimited by <<< identifier
All of above
Previous
Skip
Next
Question # 10
The function setcookie () is used to.
Choose an answer
Enable or disable cookie support
Declare cookie variables
Store data in cookie variable
All of above
Previous
Skip
Next
Question # 11
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 # 12
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 # 13
Which of the following variable assignment is by value assignment in PHP
Choose an answer
$value 1 = $ value?
$value 1 = & $ value?
$value 1 = & $value?
None
Previous
Skip
Next
Question # 14
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 # 15
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
Question # 16
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 # 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 function returns the number of character in a string variable.
Choose an answer
Count ($ variable)
Len ($variable)
Strcount ($variable)
Strien ($variable)
Previous
Skip
Next
Question # 19
Which of the following type specifier is invalid in print f ( ) functions.
Choose an answer
% a
% b
% c
% d
Previous
Skip
Next
Question # 20
If Boolean variable $ alive =5
Choose an answer
$ alive is false
$ alive is true
$ alive is overflow
None of above
Previous
Skip
Next
Back