MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Php
Quiz 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
What is the correct way to end a PHP statement?
;
</php>
.
New line
Q.2
Array values are keyed by ______ values (called indexed arrays) or using ______ values (called associative arrays). Of course, these key methods can be combined as well.
Float, string
Positive number, negative number
Even number, string
String, Boolean
E. Integer, string
Q.3
Which one of the following PHP function is used to determine a file’s last access time?
fileltime()
filectime()
fileatime()
filetime()
Q.4
What does SPL stand for?
Standard PHP Library
Source PHP Library
Standard PHP List
Source PHP List
Q.5
What is a correct way to add a comment in PHP?
/*...*/
<?comment...?>
//
/*...*/ & //
Q.6
PHP allows you to send emails directly from a script
TRUE
FALSE
Q.7
Which is the right way of declaring a variable in PHP?
Only ii)
Only iii)
ii), iii) and iv)
ii) and iv)
Q.8
What is the correct way to open the file "time.txt" as readable?
fopen("time.txt","r");
fopen("time.txt","r+");
open("time.txt");
open("time.txt","read");
Q.9
What should be the correct syntax to write a PHP code?
<php >
<?php ?>
<? ?>
<?php?>
Q.10
Which one of the following is a form element?
text box.
radio button.
submit button.
All of these.
Q.11
Which of the following is correct about variable naming rules?
Variable names must begin with a letter or underscore character.
A variable name can consist of numbers, letters, underscores.
you cannot use characters like + , - , % , ( , ) . & , etc in a variable name.
All of the above.
Q.12
Which of the following is NOT a valid PHP comparison operator?
!=
>=
<=>
<>
Q.13
What array will you get if you convert an object to an array?
An array with properties of that object as the array's elements
An array with properties of that array as the object's elements
An array with properties of that object as the Key elements
An array with keys of that object as the array's elements
Q.14
When defining identifier in PHP you should remember that ?
Identifier are case sensitive. So $result is different than $ result
Identifiers can be any length
Both of above
None of above
Q.15
What is the name of scripting engine in PHP?
Zend Engine 2.0
Motolite
Core 2 Duo
Windows Xp
Q.16
Which superglobal variable holds information about headers, paths, and script locations?
$GLOBALS
$_GET
$_SERVER
$_SESSION
Q.17
How many types of filtering are present in PHP?
3
2
4
None
Q.18
Which of the following is correct about PHP?
PHP performs system functions, i.e. from files on a system it can create, open, read, write, and close them.
PHP can handle forms, i.e. gather data from files, save data to a file, thru email you can send data, return data to the user.
You add, delete, modify elements within your database thru PHP.
All of the above.
Q.19
Which version of PHP was added with Exception handling?
PHP 4
PHP 5
PHP 5.3
PHP 6
Q.20
What are the advantages of PHP?
Run fast
Code is hidden
Interactivity decreased
Cheap
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page