PHP
Test
Model Test
Ebook
Quiz-1 : PHP Fundamental
Quiz-2 : PHP Variables and Datatypes
Quiz - PHP Basic 1
Quiz - PHP Fundamental 3
Quiz - PHP Advanced Concept, Networking, Super G.
Quiz - PHP Networking
Quiz PHP Object Oriented Programming
Quiz - PHP string,oop,regular expression
Quiz - PHP and MySQL
Quiz - PHP String,Security,Webservice
Index
PHP Home
PHP Fundamentals
230
PHP Input/Output
16
PHP Object Oriented Programming
59
PHP Installation & Configuration
17
Reported Questions
80
PHP Functions
16
PHP Regular Expression
33
PHP Variables and Datatypes
62
PHP Arrays
104
PHP Operators and Expressions
6
PHP Built-in Constants and Standard PHP .
10
PHP Advanced Concepts
120
PHP Error Handling
34
PHP String Operation
36
PHP Language Syntax
11
PHP Super Globals
21
PHP Datetime and timezone
4
PHP Networking
12
PHP with MySQL
5
PHP Web Service
10
PHP Security
15
PHP File Handling
9
PHP PEAR
7
PHP Control Structure
7
PHP Form Handling
1
Schools
Ebook
Question:
What’s the special meaning of the following metacharacter(^p)?
A
Matches the beginning of the line
B
Matches the end of the line
C
Matches the middle of the line
D
It count the number of p in a sentence
Note:
Not available
Show answer
Show Note
Report
Question:
What’s the special meaning of the following metacharacter($:)?
A
Matches the beginning of the line
B
Matches the end of the line
C
Matches the middle of the line
D
It’s just used before a variable
Note:
Not available
Show answer
Show Note
Report
Question:
What means ($a == 12) ? 5 : -1?
A
If $a equals 12, return value is 5; Otherwise, return value is –1
B
If $a equals 12, return value is -1; Otherwise, return value is 5
C
If $a equals 5, return value is 12; Otherwise, return value is –1
D
If $a equals -1, return value is 5; Otherwise, return value is 12
Note:
Not available
Show answer
Show Note
Report
Question:
Why preg_grep() function wiil you use?
A
Searches all elements of an array
B
For grapping the array
C
For grapping the character
D
Searches define elements of an array
Note:
Not available
Show answer
Show Note
Report
Question:
select the correct output of the following’s syntax? <?php $v=array("public","policy","support","Republic"); $p=preg_grep("/^p/",$v); print_r($p); ?>
A
Array ( [0] => public [1] => policy )
B
[0] => public [1] => policy
C
Array ( [2] => support [3] => Republic )
D
[2] => support [3] => Republic
Note:
Not available
Show answer
Show Note
Report
Question:
What means $a .= 5?
A
$a equals $a concatenated with 5
B
$a equals $a divided with 5
C
$a equals $a concatenated with .5
D
$a equals $a concatenated with 5.5
Note:
Not available
Show answer
Show Note
Report
Question:
Which one matches any string enclosed within <b> and</b>?
A
<b>(.*)</b>
B
<b>(*)</b>
C
^b(.*)</b>
D
^b(.*)b
Note:
Not available
Show answer
Show Note
Report
Question:
printf("The value of Pi is %f", PI); $pi2 = 2 * PI; printf("Pi doubled equals %f", $pi2); This code produces the following results:
A
The value of pi is 3.141592 Pi doubled equals 6.283184
B
The value of pi is 3.141592 Pi doubled equals 2*3.141592
C
The value of pi is 3.141592. Pi doubled equals 6.283184.
D
The value of pi is 3.141592. 2 * PI
Note:
Not available
Show answer
Show Note
Report
Question:
Select the correct output__ <?php $string1 = "10"; $string2 = "15"; $result = strcmp($string1, $string2); if ($result !== 0) { echo "The strings do not match"; } else { echo "The strings match"; } ?>
A
The strings do not match
B
The strings match
C
Both incorrect
D
Error
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following function returns the number of characters in a string variable?
A
count($variable)
B
len($variable)
C
strcount($variable)
D
strlen($variable)
Note:
Not available
Show answer
Show Note
Report
First
Prev
41
42
43
44
45
Next
Last
/93
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2025. Powered by
Intellect Software Ltd