Which of the following is an example of a database c onnection that needs to be created once at the beginning of a script and then used throughout its code?
A. Model-view-controller
B. ActiveRecord
C. Singleton
D. Factory pattern
正解:C
質問 2:
Which of the following methods dynamically loads the Adapter class file on demand using Zend_Loader::loadClass()?
A. Zend_Db_Adapter_Pdo_Mysql()
B. Zend_Db::factory()
C. Zend_load_Adaptor()
D. fetchAll()
正解:B
質問 3:
Which of the following code segments can be used to check the form validity?
A. if ($form->isValid($_POST)) {
// success!
} else {
// failure!
}
B. if (Zend_Form::isValid($_Post)) {
// success!
} else {
// failure!
}
C. if (Zend_Form->isValid($form)) {
// success!
} else {
// failure!
}
D. if (Zend_Form::isValid($form)) {
// success!
} else {
// failure!
}
正解:A
質問 4:
In which of the following situations will you use the set_exception_handler() function?
A. When you want to restore a previously defined exception handler function.
B. When you want to generate a user-level error/warning/notice message.
C. When you want to set a user -defined function to handle errors.
D. When the try/catch block is unable to catch an exception.
正解:D
質問 5:
Fill in the blank with the appropriate method name. The__________ method is used to retrieve headers when the storage has been opened.
A. getHeader()
正解:A
質問 6:
You work as a Database Administrator for Dolliver Inc. The company uses an Oracle database. The database contains two tables, named Employees and Departments. You want to retrieve all matched and unmatched rows from both the tables. Which of the following types of joins will you use to accomplish this?
A. RIGHT OUTER JOIN
B. CROSS JOIN
C. FULL OUTER JOIN
D. LEFT OUTER JOIN
正解:C
近藤** -
重要なZF-100-500知識を整理している。ありがたい。まるで嘘のような的中率でした。ありがとうございます。