Free Zend ZF-100-500 Exam Braindumps (page: 5)

Consider the following code segment:
1. <?php
2. require_once 'Zend/Mail.php';
3. ?????????????????????????
4. $mail->setBodyText('This is the test email.');
5. $mail->setFrom('somebody@example.com', 'Send er');
6. $mail->addTo('somebody_else@example.com', 'Recipient');
7. $mail->setSubject('TestSubject');
8. $mail->send();
9. ?>
Which of the following code snippets will you use at line number 3 to initiate Zend_Mail?

  1. $mail = new Zend_Mail();
  2. $mail => initialize_Zend_Mail();
  3. $mail -> Zend_Mail();
  4. $mail => Zend_Mail();

Answer(s): A



Which of the following functions sets up start and end element handlers?

  1. xml_parse_into_struct()
  2. xml_parser_create_ns()
  3. xml_set_object()
  4. xml_set_element_handler()

Answer(s): D



Which of the following functions can be used as a countermeasure to a Shell Injection attack? Each correct answer represents a complete solution. Choose all that apply.

  1. mysql_real_escape_string()
  2. escapeshellcmd()
  3. regenerateid()
  4. escapeshellarg()

Answer(s): B,D



You have a table created as follows:
create table foo (c1int, c2 char(30), c3 int, c4 char(10))
If column c1 is unique, which of the following indexes would optimize the statement given
below? Select distinct (c1), c3 from foo where c1=10

  1. create unique index foox on foo (c1) include (c3)
  2. create index foox on foo (c1)
  3. create index foox on foo (c1, c3)
  4. create unique index foox on foo (c1, c3)

Answer(s): A



Viewing page 5 of 33
Viewing questions 17 - 20 out of 200 questions



Post your Comments and Discuss Zend ZF-100-500 exam prep with other Community members:

ZF-100-500 Exam Discussions & Posts