Language:
Hindi
Bangla
Home
Guideline
Basic IT Test
HTML Test
CSS Test
JavaScript Test
SQL Test
PHP Test
(current)
Language:
Hindi
Bangla
Basic PHP Skill Tester
The exam was given 76 times.
If you answer by guessing you will not get the accurate result.
Advertisement
Which of the following is Modulus operator ?
&&
%
=
>
There no difference between $_GET and $_POST.
True
False
To learn PHP, you have to make your computer a ______.
Mail server
web server
database server
DNS server
What is the full form of PHP ?
Procesing Home Page
Hyper Markup Processor
Hypertext Preprocessor
Procesing Home Processor
Which of the following is not PHP loop ?
while
for
do for
do while
Which of the following is Multiplication operator ?
++
/
?
*
$number =(42 + 122) * 52 / 2 - 7; $number = ?
4257
7740
100
70
How many ways added external PHP code in html ?
4 ways
2 ways
3 ways
6 ways
Which of the following is used to perform different actions based on different conditions ?
logical statements
Loops
Conditional statements
How many ways to add PHP code to HTML code ?
6 ways
3 ways
2 ways
5 ways
____ is a PHP super global variable which is used to access global variables from anywhere in the PHP script.
$LOCALE
$ALL
$GLOBAL
$GLOBALS
$number =42 + 122 * 52 / 2 - 7; $number = ?
3207
545
-3
10
______ is a PHP super global variable which holds information about headers, paths, and script locations.
$_SERVER
$GLOBALS
$_REQUEST
$_FILES
There difference between echo and print.
False
True
Which of the following is float data ?
True
Shamol Singha
22.22
22
What is PHP script usually starting with ?
<php>
<?php>
<?php
<?p
Which of the following is used to prints a message and exits the current script ?
evel()
end()
exit()
close()
There is no difference between switch and if else statement.
False
True
Which of the following is Subtraction operator ?
-
+
*
/
What kind of PHP language ?
client side programming
Markup
server side scripting
client side scripting
Which of the following is used to counts the number of words in string ?
str_word_count()
word_count()
count()
strlen()
PHP variable names are ____ .
case insensitive
case sensitive
Which of the following assignment operator ?
--
==
=
+
Which software can easily make server for your computer ?
Ubuntu Server
Windows Server 2008
Windows Server 2012
XMPP
Which of the following is a Arithmetic operator ?
+
&&
!
|
Which of the following is used to determine the logic between variables ?
Comparison
Logical
Conditional
Arithmetic
Which of the following is used to get out of the loop ?
off
exit
Continue
break
Which of the following is increment operator ?
--
++
>=
&&
How to write HTML in PHP code ?
html "<h1> This is html code <h1>";
code "<h1> This is html code <h1>";
echo "<h1> This is html code <h1>";
echo_code "<h1> This is html code <h1>";
The PHP code can be written to any place.
False
True
A PHP variable name cannot start with a _______.
character
capital letter
number
small letter
Who invented PHP ?
Charles Babbage
Alan Turing
Rasmus Lerdorf
Sir Tim Berners-Lee
All PHP variable name must be identified with_________.
unique names
unique number
unique symbol
name
Which of the following is Logical operator ?
+
>=
!
--
Which of the following can be kept multiple values ?
arrays
variable
function
loop
How to declare while loop ?
while (code executed) {condition}
while (condition) {code executed}
if (condition) {code executed}
else if (condition) {code executed}
In PHP Language variables name starts with _____.
*
#
@
$
Which of the following boolean data ?
5
5.25
Shamol Singha
False
Keywords cannot be used as names for variables.
False
True
Which of the following loop ?
while
if
switch
if.......else
Which of the following is Decrement operator ?
--
++
%
>+
What kind of PHP language ?
not case sensitive
case sensitive
case insensitive
Which of the following is Array operator ?
++
==
--
*
নিচের কোন স্টেটমেন্ট ব্যবহার করে নির্দিষ্ট শর্ত পরীক্ষা করবেন ?
Select
For
while
if
If the condition is true, which of the following is executed ?
else
if
echo
print
What is the end of a statement to write ?
comma
quotation mark
colon
semicolon
PHP is an object-oriented programming language.
False
True
Which of the following is used to create a file ?
fwrite()
fclose()
fopen()
fgets()
How to assign value in variable ?
$person = "Shamol Singha";
$person + Shamol Singha
$person == "Shamol Singha";
$person // "Shamol Singha";
PHP supports all modern web servers.
False
True
Which of the following is not a superglobal variable ?
$GLOBALS
$_SERVER
$FILES
$_SESSION
How to write an IF statement ?
if x==5 { }
if { x==5 }( )
if(x==5){ }
if(x==5)[ ]
Which is used to created the cookie ?
setcookie()
cookie()
set_cookie()
cookie_set()
Which of the following is a comma operator ?
""
,
^
@@
How to open the file ("time.txt") ?
open("time.txt","r");
fopen("time.txt","x");
open("time.txt");
fopen("time.txt","a");
Which of the following operators is used in logical statements to define equality or differences between variables or values ?
Logical
Comparison
Conditional
Arithmetic
What is the PHP file extension ?
.hpp
.ph
.php
.html
A good practice is to put ________ around operators.
colon
semicolon
comma
spaces
How to show "Hello World" with PHP ?
Document.Write("Hello World");
"Hello World";
echo "Hello World";
Write("Hello World");
Which of the following is integer data ?
Shamol Singha
True
6.6
6
Which of the following is the Concatenation Operator?
__
-
^
.
Where is the PHP code render ?
DNS server
Compiler
Web Browser
web Server
Which of the following is used to returns the length of a string ?
substr_count()
strlen()
count_chars()
count()
Which of the following is used to return the current date/time of the server ?
date_default_timezone_set( )
date( )
strtotime( )
mktime( )
Which of the following is Division operator ?
*
/
--
>=
Which of the following is used to set the time zone ?
timezone(time zone)
default_timezone_set(time zone)
timezone_set(time zone)
date_default_timezone_set(time zone)
Which is the latest version of PHP ?
5
7
6
Which of the following is used to returns the number of elements in an array ?
valu_count()
count()
substr_count()
str_word_count()
What is PHP Script usually ending with ?
?>
php>
/php>
?php>
How to add multi line comments ?
\* comment here */
\* comment here *\
/* comment here */
/* comment here *\
How to declare For loop ?
for (condition) {code executed}
for (statement1; statement2; statement3) {code executed}
while (statement1; statement2; statement3) {code executed}
if (statement1; statement2; statement3) {code executed}
Which of the following is the string data ?
Shamol Singha
55
55.5
0.2
Which of the following is data type test function ?
gettype( )
check( )
print( )
echo( )
Which of the following must be installed on your computer so as to run PHP script ?
Apache
PHP
xmpp
wmpp
How to PHP string replace ?
replace.string("Microsoft", "W3Schools")
str_replace("Microsoft", "W3Schools")
replace("Microsoft", "W3Schools")
string.replace("Microsoft", "W3Schools")
Which of the following is used to test for true or false.
Comparison and Arithmetic Operators
Comparison and Logical operators
Logical operators and Arithmetic Operators
Arithmetic Operators
There a difference between include() and include_once().
False
True
Which of the following is correct ?
myFunction{p1, p2} ( )
function myFunction{p1, p2} ( )
function myFunction(p1, p2) {}
myFunction(p1, p2){ }
There no difference between include() and require().
True
False
There is not difference between session_unset() and session_destroy().
True
False
Which is used to destroy the session ?
session_destroy()
destroy()
delete()
session_delete()
Which is the function name of this
function developer(Shamol_Singha){}
code ?
developer
Shamol_Singha
function
developer(Shamol_Singha)
How to declare new line ?
nuli/
/nuli
n/
/n
How to declare PHP variables ?
myname
$myname
var myname
#myname
Which is used to print ?
echo
Write
Display
show
How many types of PHP variable ?
6 type
3 type
4 type
8 type
Which of the following is addition operator ?
/
+
-
*
When is the PHP discovered ?
1993
1997
1994
1996
Which of the following is Comparison operator ?
==
=
&&
||
Which is the Parameter of this
function developer(Shamol_Singha){}
code?
Shamol_Singha
developer
function
developer(Shamol_Singha)
$number = 55 + "100" ; $number = ?
155
55100
650
45
Which is used to started the session ?
start()
session_start()
s_start()
session()
Using the POST method does not show up in the variable URL.
False
True
How many data types in PHP ?
5
7
6
8
$y = 5; $y *= 5; $y = ?
6
10
55
25
Where is the PHP setting to change ?
cpanel
php.ini
host account
phpmyadmin
How does external PHP code add in HTML page ?
<script href="path"> </script>
incloud_one("filename.php")
<link src="path">
<link href="path">
PHP is an open-source programming language.
False
True
There no difference between include() and require().
False
True
How to write PHP single line comments ?
#write a PHP comment
/ write a PHP comment
\ write a PHP comment
\ write a PHP comment