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 compared to the compiled program scripts run
Choose an answer
Faster
Slower
The execution speed in similar
All of above
Previous
Skip
Next
Question # 2
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 # 3
Which of the following are valid float values.
Choose an answer
4.5678
4.0
7 e4
All of above
Previous
Skip
Next
Question # 4
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 # 5
Which data types are treaded as arrays.
Choose an answer
Integer
Float
String
Booleans
Previous
Skip
Next
Question # 6
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 # 7
Which of the following method sends input to a script via a URL.
Choose an answer
Get
Post
Both
None
Previous
Skip
Next
Question # 8
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 # 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
Casting operator introduced in PHP 6 IS.
Choose an answer
(array)
(in 64)
(real) or (double) or (float)
(object)
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
Which of following are compound data type.
Choose an answer
array
Objects
Both
None
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
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 # 15
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 # 16
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 # 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
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 # 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
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
Back