200-530 Exam Questions
408 real 200-530 exam questions with expert-verified answers and explanations. Page 7 of 9.
- Question #459
You want to send an HTTP cookie without URL encoding the cookie value. Which of the Following functions will you use?
- Question #460
Ross creates a database for a school. He creates two tables named Students and Courses. Which of the following SELECT statements will he use to define an outer join?
- Question #461
You want to check whether the header has already been sent or not. Which of the following code segments will you use to accomplish the task?
- Question #462
Which of the following PHP file handling functions will you use if you want to retrieve only the texts from an HTML file and leave all HTML and PHP tags?
- Question #463
Which of the following keywords is used to prevent a method/class to be overridden by a subclass?
- Question #465
You run the following PHP script: <?php class number { public $a= 10; public $b=20; private $c=30; } $numbers = new number(); foreach($numbers as $var => $value) { echo "$value ";...
- Question #466
Consider the following PHP script: <?php $a = 5; $b = 10; function Mul() { $a =0; $b = $a * $b; } Mul(); print($b); ?> What will be the output of the above script?
- Question #467
You want to parse the following string in PHP: $some_string="Student\tJohn\nMichel\tMaria"; Which of the following PHP functions will you use to parse the string according to the \...
- Question #468
You run the following PHP script: <?php $array1 = array ('a' => 20, 30, 35); $array2 = array ('b' => 20, 35, 30); $array = array_intersect_assoc ($array1, $array2); var_dump ($arra...
- Question #469
You are using a database named SalesDB to keep all sales records. The SalesDB database contains a table named Orders. You are required to create a new table named OldOrders and tra...
- Question #470
Consider the following PHP script: <?php Zend 200-530 Exam $fp = fopen('file.txt', 'r'); $string1 = fgets($fp, 512); fseek($fp, 0); ?> Which of the following functions will give th...
- Question #471
Which of the following functions can you use to mitigate a command injection attack? Each correct answer represents a complete solution. Choose all that apply.
- Question #472
What is the work of simplexml_import_dom() in the following PHP code? <?php $dom = new domDocument; $dom->loadXML('<email><from>John</from></email>'); $xml = simplexml_import_dom($...
- Question #473
Which of the following equivalence operations evaluates to true if the two operands are not of the same data type or do not have the same value?
- Question #475
You run the following PHP script: <?php include("xml.inc"); if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the XML document\n"; exit; } $a = ********** print_r($...
- Question #476
You have a table created as follows: create table foo (c1 int, c2 char(30), c3 int, c4 char(10)) If column c1 is unique, which of the following indexes would optimize the statement...
- Question #477
Which of the following functions will you use to create new DomElement objects? Each correct answer represents a complete solution. Choose three.
- Question #479
Which of the following magic methods is executed when a non-existent method of a class is called?
- Question #480
Which of the following functions return the timestamp value? Each correct answer represents a complete solution. Choose all that apply.
- Question #481
You passed an associative array to the sort() function. What will happen?
- Question #482
Consider the following code: <?php $a=5; $b=12; $c=10; $d=7; $e=($a*$b)+$c*$d/$a; print($e); }?> What will be the output of the above code?
- Question #483
Consider the following array: $arr= array('apple', 'banana', 'cherry'); You want to display this array as the following string: apple, banana, cherry Which of the following functio...
- Question #485
You have been given the following PHP script: 1. <?php 2. $a = 'somevalue'; 3. $array = array("a" => "One","b" => "Two", "c" => "Three"); 4. ????????????? 5. echo "\$a = $a; \$b =...
- Question #486
You run the following PHP script: <?php $x = 'john'; echo substr_replace ($x, 'jenny', 0, 0); ?>
- Question #489
You want to know from which Web page a user has come to your Web site. Which of the following $_SERVER array elements will you use to accomplish the task?
- Question #490
Which of the following joins retrieves all rows from one table and only the matching rows from the joined table?
- Question #491
Which of the following can be used as a countermeasure against the SQL injection attack? Each correct answer represents a complete solution. Choose two.
- Question #492
Consider the following string: Zend 200-530 Exam ZeNd php After running a PHP script, the above string is converted in the following format: php dnez Which of the following PHP scr...
- Question #493
Which of the following are the limitations for the cross site request forgery (CSRF) attack? Each correct answer represents a complete solution. Choose all that apply.
- Question #495
You have created a table based on the following data: EmpID NUMBER (5) PRIMARY KEY EmpName VARCHAR2 (35) NOT NULL Salary NUMBER (9, 2) NOT NULL Commission NUMBER (4, 2) ManagerName...
- Question #496
Martin works as a Database Administrator for MTech Inc. He designs a database that has a table named Products. He wants to create a report listing different product categories. He...
- Question #497
You run the following script: <php $array1 = array ("a", "b", "c", "d", "e", "f"); $array2 = array_slice($array1, 2, 2); foreach ( $array2 as $val ) { print "$val"; } ?> What will...
- Question #498
Which of the following can be used to release the lock applied by the flock() function where fp is a file pointer? Each correct answer represents a complete solution. Choose two.
- Question #499
Consider the following PHP script: <?php function b($a = 4) { $a = $a / 2; return $a; } $a = 10; b($a); echo $a; ?> What will be the output?
- Question #500
Which of the following functions can be used to get whether or not a file is readable? Each correct answer represents a complete solution. Choose two.
- Question #502
What will be the output of the following code? <?php Zend 200-530 Exam $s = '13149'; $s[$s[1]] = $s[1]+$s[3]; print_r($s); ?>
- Question #503
Which of the following HTML code snippets can be used for the file uploading?
- Question #505
In which of the following ways does the identity operator === compare two values?
- Question #506
Mark works as a Web Developer for Unicorn Inc. He develops an application in PHP using the following code: <?php Zend 200-530 Exam switch(1) { case 1: print("Book Details<br>"); ca...
- Question #507
You want to enable compression for every Web page of your Website. Which of the following PHP.ini directives can you set to accomplish the task? Each correct answer represents a co...
- Question #508
You run the following PHP script: 1. <?php 2. for($x = 1; $x <= 2; $x++){ 3. for($y = 1; $y <= 3; $y++){ 4. if ($x == $y) continue; 5. print("x = $x y = $y<br>"); 6. } 7. } 8. ?> W...
- Question #509
Which of the following variables are NOT supported by type hinting? Each correct answer represents a complete solution. Choose two.
- Question #510
Which of the following methods of PDOStatement class returns the next result set in a multiquery statement?
- Question #511
Which of the following functions is used to delete a file?
- Question #512
Consider the following PHP script: <html> <head> <title> This is a test script. </title> </head> <body> <?php echo (int) ((0.1 + 0.6) * 10); ?> </body> </html> Zend 200-530 Exam Wh...
- Question #515
Which of the following statements will return the second parameter passed to a function?
- Question #516
What will be the output of the following PHP code snippet? <?php $array = array (1.1 => '1', 1.2 => '1'); echo count ($array); ?>
- Question #517
Celina works as a Database Administrator for Tech Mart Inc. The company uses an Oracle database. The database contains a table named Employees. Following is the structure of the ta...
- Question #518
You want to destroy session variables within a PHP session. Which of the following methods can you use to accomplish the task? mEach correct answer represents a complete solution....
- Question #519
Consider the following PHP script: 1. <?php 2. $a = 5; 3. $b = 10; 4. function Mul() 5. { 6. ********************** 7. } 8. Mul(); 9. print($b); 10. ?> What can you write instead o...