Which of the following web servers are required to run the PHP script?
Anonymous Quiz
39%
a) Apache and PHP
17%
b) IIS
33%
c) XAMPP
11%
d) Any of the mentioned
❤1
PHP recognizes constructors by the name _________
Anonymous Quiz
17%
a) function __construct()
61%
b) function _construct()
22%
c) classname()
0%
d) _construct()
The developers of PHP deprecated the safe mode feature as of which PHP version?
Anonymous Quiz
25%
a) PHP 5.3.1
50%
b) PHP 5.3.0
25%
c) PHP 5.1.0
0%
d) PHP 5.2.0
What does PDO stand for?
Anonymous Quiz
41%
a) PHP Database Orientation
14%
b) PHP Data Orientation
36%
c) PHP Data Object
9%
d) PHP Database Object
Which PHP statement will give output as $x on the screen?
Anonymous Quiz
28%
a) echo “\$x”;
39%
b) echo “$$x”;
22%
c) echo “/$x”;
11%
d) echo “$x;”;
Which one of the following is the default PHP session name?
Anonymous Quiz
21%
a) PHPSESSIONID
47%
b) PHPIDSESS
26%
c) PHPSESSID
5%
d) PHPSESID
Which variable is used to collect form data sent with both the GET and POST methods?
Anonymous Quiz
19%
a) $_BOTH
33%
b) $REQUEST
48%
c) $_REQUEST
0%
d) $BOTH
If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?
Anonymous Quiz
9%
a) 1
45%
b) 5
32%
c) 12
14%
d) Error
Which one of the following functions are used to search a string?
Anonymous Quiz
10%
a) preg_match
57%
b) preg_search
19%
c) preg_find
14%
d) preg_found
👍1
Which one of the following preg PHP function is used to do a find and replace on a string or an array?
Anonymous Quiz
39%
a) preg_replace()
22%
b) preg_find()
39%
c) preg_find_replace()
0%
d) preg_findre()
Which one of the following preg PHP functions is used to take a string, and put it in an array?
Anonymous Quiz
9%
a) preg_destroy()
55%
b) preg_split()
32%
c) preg_unchain()
5%
d) preg_divide()
Parameter flags was added in which version of PHP?
Anonymous Quiz
15%
a) PHP 4.0
46%
b) PHP 4.1
8%
c) PHP 4.2
31%
d) PHP 4.3
The updated MySQL extension released with PHP 5 is typically referred to as _______________
Anonymous Quiz
54%
a) MySQL
25%
b) mysql
21%
c) mysqli
0%
d) mysqly
Which one of the following lines need to be uncommented or added in the php.ini file so as to enable mysqli extension?
Anonymous Quiz
13%
a) extension=php_mysqli.dll
46%
b) extension=mysql.dll
25%
c) extension=php_mysqli.dl
17%
d) extension=mysqli.dl
class UnsafeCode
{
unsafe static void Main()
{
int[] nums = new int[10];
fixed (int* p = &nums[0], p2 = nums)
{
if (p == p2)
Console.WriteLine("p and p2 point to same address.");
Console.ReadLine();
}
}
}
Coding Quiz Zone
class UnsafeCode { unsafe static void Main() { int[] nums = new int[10]; fixed (int* p = &nums[0], p2 = nums) { if (p == p2) Console.WriteLine("p and p2 point to same address."); Console.ReadLine();…
What will be the output of the following C# code snippet?
Anonymous Quiz
20%
a) Run time error
40%
b) Compile time error
40%
c) p and p2 point to the same address
0%
d) Only p2
class UnsafeCode
{
struct MyStruct
{
public int a;
public int b;
public int Sum()
{
return a / b;
}
}
unsafe static void Main()
{
MyStruct o = new MyStruct();
MyStruct* p;
p = &o;
p->a = 60;
p->b = 15;
int c = 30;
Console.WriteLine("Value is : " + p->Sum()*c);
Console.ReadLine();
}
}
Coding Quiz Zone
class UnsafeCode { struct MyStruct { public int a; public int b; public int Sum() { return a / b; } } unsafe static void Main() { MyStruct o = new MyStruct(); MyStruct* p; …
What will be the output of the following C# code snippet?
Anonymous Quiz
32%
a) Compile time error
36%
b) 120
28%
c) Run time error
4%
d) 4
class UnsafeCode
{
unsafe static void Main()
{
int* p ;
int ch = 13*5;
p = &(ch);
Console.WriteLine(Convert.ToChar(*p));
if (*p == 'A')
Console.WriteLine(Convert.ToBoolean(1));
else
Console.WriteLine(Convert.ToBoolean(0));
Console.ReadLine();
}
}
Coding Quiz Zone
class UnsafeCode { unsafe static void Main() { int* p ; int ch = 13*5; p = &(ch); Console.WriteLine(Convert.ToChar(*p)); if (*p == 'A') Console.WriteLine(Convert.ToBoolean(1)); else…
What will be the output of the following C# code snippet?
Anonymous Quiz
32%
a) 65 False
41%
b) 65 1
21%
c) A True
6%
d) A 1
Locating or identifying the bugs is known as ___________
Anonymous Quiz
4%
a) Design
29%
b) Testing
65%
c) Debugging
2%
d) Coding