PHP MULTIPLE CHOICE Questions
Answeres are Conduct in BOLD Letter
Learn All programming and scriptting languages inside youtube with avadh tutor channel
PHP Basic MCQ
|
|||||||
17
|
PHP FI Was Created By
_______________________
|
||||||
A
|
Rasmus
Lerdorf
|
B
|
Resemas
Lardorfi
|
C
|
Rasmass
Lardorfe
|
D
|
None
|
18
|
PHP FI Create since___ ___
|
||||||
A
|
1995
|
B
|
1998
|
C
|
2000
|
D
|
2002
|
19
|
Full Form of PHP?
|
||||||
A
|
Personal
Home Page
|
B
|
Personal
High Page
|
C
|
Private
Home Page
|
D
|
None
|
20
|
Full Form Of PHP?
|
||||||
A
|
HyperText
Preprocessor
|
B
|
High
Text Program
|
C
|
Heming
tram per
|
D
|
None
|
21
|
PHP 3rd is created
in__________
|
||||||
A
|
1995
|
B
|
1996
|
C
|
1997
|
D
|
1998
|
22
|
.htaccess is_________ file
|
||||||
A
|
Server
File
|
B
|
Personal
File
|
C
|
Configuration
File
|
D
|
NOne
|
23
|
How to declare Variable in PHP?
|
||||||
A
|
Var
sign
|
B
|
#
sign
|
C
|
$
sign
|
D
|
none
|
24
|
Get method is passed By?
|
||||||
A
|
URL
|
B
|
Body
Portion
|
C
|
Page
|
D
|
None
|
25
|
Range of GET method is ______
Characters
|
||||||
A
|
253
|
B
|
255
|
C
|
257
|
D
|
259
|
26
|
______________ Method is Secure
|
||||||
A
|
GET
|
B
|
POST
|
C
|
Server
|
D
|
None
|
27
|
Full form of URL?
|
||||||
A
|
Uniform
Resource Locator
|
B
|
Uniform
Resource Location
|
C
|
Universal
Resource Locator
|
D
|
none
|
28
|
Returns
the number of arguments passed to the function
|
||||||
A
|
Func_num_args()
|
B
|
Func_get_arg()
|
C
|
Func_get_args()
|
D
|
None
|
29
|
_____________ function is used
to Get a string value of Variable
|
||||||
A
|
intval
|
B
|
Stringval
|
C
|
Strval
|
D
|
none
|
30
|
________________ Prints human-readable information about a
variable
|
||||||
A
|
print
|
B
|
Print_r
|
C
|
Echo
|
D
|
none
|
31
|
Print is _________
|
||||||
A
|
Function
|
B
|
Constructor
|
C
|
Argument
|
D
|
none
|
32
|
______________ Returns the ASCII
value of the first character of string.
|
||||||
A
|
Chr
|
B
|
Ord
|
C
|
Intval
|
D
|
strval
|
33
|
_________________
function is Find position of last occurrence of a char in a string
|
||||||
A
|
Strrpos
|
B
|
Strops
|
C
|
Strstr
|
D
|
none
|
34
|
____________
function returns the floating point remainder of the division of the rguments
|
||||||
A
|
Min
|
B
|
mod
|
C
|
fmod
|
D
|
none
|
35
|
_________
function Finds whether a variable is an array
|
||||||
A
|
List
|
B
|
Is_array
|
C
|
count
|
D
|
none
|
36
|
_________ function returns Sort
an array and maintain index association
|
||||||
A
|
Assort()
|
B
|
Sort()
|
C
|
Arsort()
|
D
|
none
|
37
|
____________________ function
is check whether
a file or directory exists
|
||||||
A
|
Exists()
|
B
|
File_exists()
|
C
|
File()
|
D
|
Is_open()
|
38
|
Mail function is passed ____
argument.
|
||||||
A
|
2
|
B
|
3
|
C
|
4
|
D
|
5
|
39
|
__________________ function is used to Set the type of a
variable
|
||||||
A
|
Gettype()
|
B
|
Settype()
|
C
|
Intval()
|
D
|
Floatval()
|
40
|
_______ loops
are the simplest type of loop in PHP. They behave just like their C
counterparts.
|
||||||
A
|
foreach
|
B
|
for
|
C
|
while
|
D
|
none
|
41
|
What is the default execution time set in
set_time_limit()
|
||||||
A
|
20 secs
|
B
|
30 secs
|
C
|
40 secs
|
D
|
50 secs
|
42
|
What does explode() do?
|
||||||
A
|
Used to split string into two equal halves
|
B
|
Used to split a string by a string
|
C
|
String to integer
|
D
|
None
|
43
|
In which variable is the users IP address
stored?
|
||||||
A
|
$_SERVER
|
B
|
Remote_addr()
|
C
|
$_SESSION
|
D
|
None
|
44
|
What is the default size of a file set in
upload_max_filesize
|
||||||
A
|
3 MB
|
B
|
2
MB
|
C
|
1 MB
|
D
|
None
|
Handling Form &
Session Cookie Tracking Using PHP
|
|||||||
45
|
How do you get information from
a form that is submitted using the "get" method?
|
||||||
A
|
Request.Form;
|
B
|
Request.QueryString;
|
C
|
$_GET[];
|
D
|
$_POST[];
|
46
|
PHP code is executed on the
_______, and the plain HTML result is sent on to the ______.
|
||||||
A
|
Server,Browser
|
B
|
Server,
Client
|
C
|
Server,Server
|
D
|
Browser,Browser
|
47
|
The ____ function is used to
set a cookie
|
||||||
A
|
setcookie()
|
B
|
Getcookie()
|
C
|
Setcokie()
|
D
|
None
|
48
|
A PHP _____ variable is used to
store the information about, or change settings for a user session.
|
||||||
A
|
Session
|
B
|
Cookie
|
C
|
Section
|
D
|
None
|
49
|
Which method is secured for
securing data in PHP?
|
||||||
A
|
$_POST
|
B
|
$_GET
|
C
|
$_ABC
|
D
|
$_COOKIE
|
50
|
Session is Start Using
______________
|
||||||
A
|
SESSION_START()
|
B
|
$_SESSION()
|
C
|
$_COOKIE
|
D
|
None
|
51
|
__________________ To destroy
all Session values.
|
||||||
A
|
Session_destroy()
|
B
|
Unset($_SESSION[])
|
C
|
$_COOKIE
|
D
|
None
|
52
|
Session is Stored On
______________
|
||||||
A
|
Client
Side
|
B
|
Server
Side
|
C
|
Browser
|
D
|
None
|
53
|
Cookie is Stored on
________________
|
||||||
A
|
Client
Side
|
B
|
Server
Side
|
C
|
Browser
|
D
|
None
|
54
|
_______________ is a server
variable in PHP
|
||||||
A
|
$_SERVER
|
B
|
$_COOKIE
|
C
|
$_XYZ
|
D
|
None
|
55
|
_______The
IP address of the server under which the current script is executing.
|
||||||
A
|
SERVER_ADDR
|
B
|
REMOTE_ADDR
|
C
|
PHP_SELF
|
D
|
None
|
56
|
__________
is return name of the server host under which the current script is
executing.
|
||||||
A
|
SERVER_ADDR
|
B
|
SERVER_NAME
|
C
|
PHP_SELF
|
D
|
None
|
57
|
A cookie is
often used to identify a user.
|
||||||
A
|
True
|
B
|
False
|
C
|
Both
A and B
|
D
|
None
|
PHP Component MCQ
|
|||||||
58
|
Full form of GD?
|
||||||
A
|
Graphics
Digital
|
B
|
Graphical
Display
|
C
|
Graphics
Dynamic
|
D
|
None
|
59
|
_______
version supports GIF images and not PNG
|
||||||
A
|
GD 1.6
|
B
|
GD 2.0.28
|
C
|
GD
2.0.11
|
D
|
None
|
60
|
_____________
Version supports all kinds of images including PNG.
|
||||||
A
|
GD 1.6
|
B
|
GD 2.0.28
|
C
|
GD
2.0.11
|
D
|
None
|
61
|
Imageline has ______________
parameters.
|
||||||
A
|
5
|
B
|
6
|
C
|
7
|
D
|
8
|
62
|
imagearc()
function is used to draw an arc. It takes __________ arguments.
|
||||||
A
|
5
|
B
|
6
|
C
|
7
|
D
|
8
|
63
|
___________ Type of Regular
Expression in PHP
|
||||||
A
|
1
|
B
|
2
|
C
|
3
|
D
|
4
|
64
|
Full form of SMTP?
|
||||||
A
|
Simple
mail Transfer Protocol
|
B
|
Simple
message Term Program
|
C
|
Since
Merge Tar Project
|
D
|
None
|
65
|
Which is a Gmail SMTP Port
|
||||||
A
|
465
|
B
|
256
|
C
|
456
|
D
|
None
|
66
|
Full form of POP
|
||||||
A
|
Post
office Protocol
|
B
|
Peer
to peer
|
C
|
Past
of Past
|
D
|
NOne
|
67
|
How many parameters passed in
mail function
|
||||||
A
|
2
|
B
|
3
|
C
|
4
|
D
|
5
|
Interacting with PHP mysql
|
|||||||
68
|
Mysql is _________________
|
||||||
A
|
Open
Source
|
B
|
Costly
|
C
|
CMS
|
D
|
None
|
69
|
________ is function is used to
connect mysql
|
||||||
A
|
Mysql_select_db()
|
B
|
Mysql_connect()
|
C
|
Mysql_close()
|
D
|
None
|
70
|
__________ Function is used to Move internal result pointer
|
||||||
A
|
B
|
Mysql_Connect()
|
C
|
Mysql_Close()
|
D
|
None
|
|
71
|
________Returns
the numerical value of the error message from previous MySQL operation
|
||||||
A
|
Mysql_error()
|
B
|
Mysql_errno()
|
C
|
Mysql_drop()
|
D
|
None
|
72
|
__________Fetch
a result row as an associative array, a numeric array, or both
|
||||||
A
|
Mysql_fetch_array()
|
B
|
Mysql_fetch_assoc()
|
C
|
Mysql_close()
|
D
|
none
|
73
|
______Fetch
a result row as an associative array
|
||||||
A
|
Mysql_fetch_array()
|
B
|
Mysql_fetch_assoc()
|
C
|
Mysql_close()
|
D
|
none
|
74
|
Which
function is used to Get column information from a result and return as an
object
|
||||||
A
|
Mysql_fetch_field()
|
B
|
Mysql_field()
|
C
|
Mysql_select_db()
|
D
|
None
|
75
|
___________Get
the name of the specified field in a result
|
||||||
A
|
Mysql_field_name()
|
B
|
Mysql_fetch_array()
|
C
|
Mysql_select_db()
|
D
|
None
|
76
|
___________Set
result pointer to a specified field offset
|
||||||
A
|
Mysql_field_seek()
|
B
|
Mysql_fetch_array()
|
C
|
Mysql_close()
|
D
|
None
|
77
|
Get
the ID generated in the last query
|
||||||
A
|
Mysql_insert_id()
|
B
|
Mysql_query()
|
C
|
Mysql_close()
|
D
|
None
|
78
|
______________function
gives List databases available on a MySQL server
|
||||||
A
|
Mysql_list_dbs()
|
B
|
Mysql_connect()
|
C
|
Mysql_select_db()
|
D
|
None
|
79
|
List
tables in a MySQL database
|
||||||
A
|
Mysql_list_tables()
|
B
|
Mysql_select_db()
|
C
|
Mysql_connect()
|
D
|
None
|
80
|
______ function is used to Select a MySQL database
|
||||||
A
|
Mysql_select_db()
|
B
|
Mysql_query()
|
C
|
Mysql_list_dbs()
|
D
|
None
|
81
|
____________ Is not a mysql
function
|
||||||
A
|
Mysql_select_db()
|
B
|
Mysql_fetch_array()
|
C
|
Mysql_close()
|
D
|
None
|
82
|
SQL stand for?
|
||||||
A
|
Struct
Queue Learn
|
B
|
Structured
Query Language
|
C
|
Stream
Query Language
|
D
|
None
|
Advance PHP with OOP
|
|||||||
83
|
Abstraction
means to ________
|
||||||
A
|
Hide
|
B
|
Seek
|
C
|
Absolutely
|
D
|
NOne
|
84
|
______is
a special type of subroutine which is called at the creation of the object of
the class
|
||||||
A
|
Class
|
B
|
Constructor
|
C
|
Inheritance
|
D
|
None
|
85
|
______method
will be called automatically when all the references to a particular object
are removed or when the object is explicitly destroyed
|
||||||
A
|
Constructor
|
B
|
destructor
|
C
|
Serialize
|
D
|
None
|
86
|
________is
used to store a value in byte-stream representation
|
||||||
A
|
serialize object
|
B
|
Inheritance
|
C
|
Class
|
D
|
None
|
87
|
____________
is used to recreate the original values.
|
||||||
A
|
unserialize ()
|
B
|
Serialize()
|
C
|
Destruct()
|
D
|
None
|
88
|
Full form of AJAX?
|
||||||
A
|
Assembly
Javascript & XHTML
|
B
|
Asynch
JS & XML
|
C
|
Asynchronous JavaScript and XML
|
D
|
None
|
89
|
AJAX is ___________ Process
|
||||||
A
|
Front
-end
|
B
|
Back-end
|
C
|
Client
|
D
|
None
|
90
|
Jquery is ____________ Library
|
||||||
A
|
JavaScript
|
B
|
Ajax
|
C
|
HTML
|
D
|
None
|
91
|
Extension of Jquery file is
|
||||||
A
|
.js
|
B
|
.html
|
C
|
.CSS
|
D
|
.php
|
|
SMARTY
|
||||||
92
|
__________is a PHP-based
templating engine/framework
|
||||||
A
|
Smarty
|
B
|
AJAX
|
C
|
Clock
|
D
|
None
|
93
|
How Write Comment in Smarty
|
||||||
A
|
//
|
B
|
/* */
|
C
|
{* *}
|
D
|
None
|
94
|
Displaying Variable in smarty
File.
|
||||||
A
|
{$varName}
|
B
|
$varname
|
C
|
Varname
|
D
|
None
|
95
|
__________ smarty Variables
assigned from PHP
|
||||||
A
|
Assign(“Varname”,”value”)
|
B
|
$varname=Value
|
C
|
Value
|
D
|
None
|
96
|
___________ function is used to
First character area Capital letter
|
||||||
A
|
Capital
|
B
|
capitalize
|
C
|
UCfirst
|
D
|
None
|
97
|
How to Concat value using
smarty
|
||||||
A
|
Cat
|
B
|
.
(Dot)
|
C
|
$
(Dollar)
|
D
|
None
|
98
|
________ is a variable Modifier
in Smarty
|
||||||
A
|
Count_characters
|
B
|
Count
|
C
|
Ucfirst
|
D
|
None
|
99
|
_________ function is used to
break (New) line
|
||||||
A
|
Count
|
B
|
Nl2br
|
C
|
replace
|
D
|
String_format
|
100
|
________ is used to replaces all
repeated spaces,
|
||||||
A
|
upper
|
B
|
truncat
|
C
|
replace
|
D
|
strip
|
101
|
__________is used for loading config #variables# from a configuration file into the template
|
||||||
A
|
config
|
B
|
{config_load}
|
C
|
Config_load
|
D
|
none
|
102
|
______________is used to alternate a set of values
|
||||||
A
|
CYCLE
|
B
|
truncat
|
C
|
lower
|
D
|
None
|
PHP Based Web service
|
|||||||
103
|
Full form of SOAP
|
||||||
A
|
Simple
Object Access Protocol
|
B
|
Simple
Oriented Active Protocol
|
C
|
Since
Object Apple Protocol
|
D
|
None
|
104
|
Full form of WSDL
|
||||||
A
|
Web
services description language
|
B
|
Web
Server dynamic Language
|
C
|
Web
Site Dynamic Location
|
D
|
None
|
105
|
_________ provides a model and an XML format
for describing Web services
|
||||||
A
|
SOAP
|
B
|
WSDL
|
C
|
Json
|
D
|
None
|
106
|
WSDL define in _________
|
||||||
A
|
AJAX
|
B
|
Json
|
C
|
SOAP
|
D
|
XML
|
107
|
WSDL is often used in
combination with ____ and a _______ Schema to provide Web services
over the Internet.
|
||||||
A
|
AJAX,
XML
|
B
|
SOAP,
XML
|
C
|
Xml,
Json
|
D
|
None
|
108
|
WSDL 1.0 developed Since ______
|
||||||
A
|
Sept
2000
|
B
|
Sept
2001
|
C
|
Sept
2002
|
D
|
Sept
2003
|
109
|
SOAP can form the foundation layer of a _________________
|
||||||
A
|
Json
|
B
|
C
|
Soap
|
D
|
None
|
|
110
|
Which is a Characteristics of
SOAP
|
||||||
A
|
Extensibility,
Neutrality, Independence
|
B
|
Json,
WebService, Stack
|
C
|
Extensibility,
Neutrality, Platform
|
D
|
|
111
|
Full form of Json
|
||||||
A
|
Java
Secure Number
|
B
|
JavaScript
Object Notation
|
C
|
JavaSon
|
D
|
None
|
112
|
__________ is a json file
extension
|
||||||
A
|
.js
|
B
|
.json
|
C
|
.xml
|
D
|
None
|
113
|
|||||||
A
|
JSON
|
B
|
AJAX
|
C
|
WEBSITE
|
D
|
None
|
PHP CMS
|
|||||||
114
|
Full form of CMS
|
||||||
A
|
Content
Manage Software
|
B
|
Content
Management system
|
C
|
Commerce
Market Style
|
D
|
None
|
115
|
first content management system (CMS) was
announced at the end of the
|
||||||
A
|
1990
|
B
|
1992
|
C
|
1994
|
D
|
1996
|
116
|
Joomla is __________________
|
||||||
A
|
Free
ware (Open Source)
|
B
|
Costly
|
C
|
Budge
|
D
|
None
|
117
|
Joomla Developed Since
_________
|
||||||
A
|
August
18, 2004
|
B
|
August 17,
2005
|
C
|
August
17, 2008
|
D
|
None
|
118
|
Joomla 1.0 was released on
__________
|
||||||
A
|
January
22, 2010
|
B
|
September 22,
2005
|
C
|
January 24,
2012
|
D
|
None
|
119
|
Joomla 1.5 was released on _____________
|
||||||
A
|
January
22, 2010
|
B
|
January 22,
2008
|
C
|
September
22, 2005
|
D
|
None
|
120
|
Joomla 3.1 was released on ________
|
||||||
A
|
September
22, 2005
|
B
|
April 24, 2013
|
C
|
January 24,
2012
|
D
|
None
|
121
|
Joomla 2.5 was released on _________
|
||||||
A
|
September
22, 2005
|
B
|
January 24,
2012
|
C
|
January
22, 2010
|
D
|
None
|
122
|
|||||||
A
|
AJAX
|
B
|
WordPress
|
C
|
SOAP
|
D
|
None
|
123
|
Wordpress was
first released on ___________
|
||||||
A
|
May 28, 2003
|
B
|
May 27, 2003
|
C
|
May 29, 2003
|
D
|
May 30, 2003
|
No comments:
New comments are not allowed.