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
Which of the following are valid float values.
Choose an answer
4.5678
4.0
7 e4
All of above
Previous
Skip
Next
Question # 3
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 # 4
The left association operator % s used in PHP for
Choose an answer
Percentage
bit wise or
Division
Modulus
Previous
Skip
Next
Question # 5
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 # 6
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 # 7
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 # 8
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 # 9
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 # 10
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 # 11
Which of following are compound data type.
Choose an answer
array
Objects
Both
None
Previous
Skip
Next
Question # 12
Identify the invalid identifier
Choose an answer
my -function
size
-some word
This & That
Previous
Skip
Next
Question # 13
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 # 14
A variable $word is set to "HELLO WORLD" which of the following script returns in title case.
Choose an answer
Echo uc words ($word)
Echo uc words (strtolower ($word)
Echo uc first ($word)
None of above
Previous
Skip
Next
Question # 15
Which of the following type specifier is invalid in print f ( ) functions.
Choose an answer
% a
% b
% c
% d
Previous
Skip
Next
Question # 16
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 # 17
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 # 18
Which of the following method sends input to a script via a URL.
Choose an answer
Get
Post
Both
None
Previous
Skip
Next
Question # 19
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 # 20
When compared to the compiled program scripts run
Choose an answer
Faster
Slower
The execution speed in similar
All of above
Previous
Skip
Next
Question # 21
Which of the following variables is not a predefined variable.
Choose an answer
$get
$ask
#reuest
#post
Previous
Skip
Next
Question # 22
If Boolean variable $ alive =5
Choose an answer
$ alive is false
$ alive is true
$ alive is overflow
None of above
Previous
Skip
Next
Question # 23
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 # 24
Which of the following statement is more suitable if you want to output a blend of static text and dynamics information stored within one or several variables.
Choose an answer
Echo()
Print ()
print f()
None
Previous
Skip
Next
Question # 25
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
Back