Coding Quiz Zone
1.56K subscribers
18 photos
7 links
โœจ Part Of @OfficialCodingExpert

Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!
Download Telegram
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
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();
}
}
}
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();
}
}
 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();
}
}
Locating or identifying the bugs is known as ___________
Anonymous Quiz
4%
a) Design
29%
b) Testing
65%
c) Debugging
2%
d) Coding
___________ is done in the development phase by the debuggers.
Anonymous Quiz
20%
a) Coding
20%
b) Testing
58%
c) Debugging
2%
d) Implementation