Zend认证模拟题(部分)
来源:互联网 发布:矢量数据的编码方式 编辑:程序博客网 时间:2024/04/30 18:05
PHP 基础部分
1、What is the difference between "print()" and "echo()"?
A. "print()" can be used as part of an expression,while "echo()" can't
B. "echo()" can be used as part of an expression,while "print()" can't
C. "echo()" can be used in the CLI version of PHP,while "print()" can't
D. "print()"can be used in the CLI version of PHP,while "echo()" can't
E. There's no difference:both functions pirnt out come text!
PHP4面向对象的编程
2、How can you load classes on demand as they are required by the interpreter?
A. By using the _autoload magic function
B. By defining them as forward classes
C. By implementing a special error handler
D. It is not possible to load classes on demand
E. By including them in conditional include statements
PHP 网页开发
3、Under normal circumstances--and ignoring any brower bugs--how can a cookie
accessed from a domain other than the one it was set for?
A. By consulting the HTTP_REMOTE_COOKIE header
B. It cannot be done
C. By setting a different domain when calling setcookie()
D. By sending an additional request to the brower
E. By using Javascript to send the cookie as part of the URL
PHP 数组
4、What will the $array array contain at the end of the execution of the
following script?
<?php
$array = array('1','1');
foreach($array as $k => $v){
$v = 2;
}
?>
A. array ('2','2')
B. array ('1','1')
C. array (2,2)
D. array (Null,Null)
E. array (1,1)
字符串和表达式
5、What is the best all-purpose way of comparing two strings?
A. Using the strpos function
B. Using the == operator
C. Using strcasecmp()
D. Using strcmp()
文件和文件系统处理
6、What should you do if your script is having problem recognizing the file endings
from a text file saved on a platform different from the one you're reading it on?
A. Change the auto_detect_line_endings INI setting
B. Use a regular expression to detect the last letter of a line
C. Use fpos()
D. Use ftok()
E. Read the file one character at a time
日期和时间处理
7、What is the difference,in seconds,between the current timestamp in the GMT time
zone and the current timestamp in your local time zone?
A. It depends on the number of hours between the local time zone and GMT
B. There is no difference
C. The two will only match if the local time zone is GMT
D. The two will never match
E. None of the above
E-mail 处理
8、In an UNIX environment that makes use of a local sendmail installation,how would
you ensure that your script will be able to arbitrarily set the sender's name and
address in an e-mail?(Choose 3)
A. By adding a From header to the message
B. By passing -f as one of the extra parameters
C. By adding a Reply-to header to the message
D. By ensuring that the user under which Apache runs is marked as privileged in
the sendmail configuration
E. By ensuring the Apache process runs as root
数据库编程
9、Which of the following correctly identify the requirements for a column to be part
of the result set of a query that contains a GROUP BY clause?(Choose 2)
A. The column must be indexed
B. The column must be included in the GROUP BY clause
C. The column must contain an aggregate value
D. The column must be a primary key
E. The column must not contain NULL values
操作流程和网络编程
10、Assume that you would like to write a sript that reads plain-text data from an arbitrary
stream and writes it back to a second stream ROT13-encoded.The encoding must be performed as
you are writing to the second stream.What approach would be best suited for these purposes?
A. Storing the encoded data in a temporary variable and then writing that variable to the
stream.
B. Using stream filters to encode the data on-the-fly.
C. Creating a lookup table for ROT13,then encoding the data character by character on
the fly as you write it
D. There is no way to encode in ROT13 on the fly
E. None of the above
1、What is the difference between "print()" and "echo()"?
A. "print()" can be used as part of an expression,while "echo()" can't
B. "echo()" can be used as part of an expression,while "print()" can't
C. "echo()" can be used in the CLI version of PHP,while "print()" can't
D. "print()"can be used in the CLI version of PHP,while "echo()" can't
E. There's no difference:both functions pirnt out come text!
PHP4面向对象的编程
2、How can you load classes on demand as they are required by the interpreter?
A. By using the _autoload magic function
B. By defining them as forward classes
C. By implementing a special error handler
D. It is not possible to load classes on demand
E. By including them in conditional include statements
PHP 网页开发
3、Under normal circumstances--and ignoring any brower bugs--how can a cookie
accessed from a domain other than the one it was set for?
A. By consulting the HTTP_REMOTE_COOKIE header
B. It cannot be done
C. By setting a different domain when calling setcookie()
D. By sending an additional request to the brower
E. By using Javascript to send the cookie as part of the URL
PHP 数组
4、What will the $array array contain at the end of the execution of the
following script?
<?php
$array = array('1','1');
foreach($array as $k => $v){
$v = 2;
}
?>
A. array ('2','2')
B. array ('1','1')
C. array (2,2)
D. array (Null,Null)
E. array (1,1)
字符串和表达式
5、What is the best all-purpose way of comparing two strings?
A. Using the strpos function
B. Using the == operator
C. Using strcasecmp()
D. Using strcmp()
文件和文件系统处理
6、What should you do if your script is having problem recognizing the file endings
from a text file saved on a platform different from the one you're reading it on?
A. Change the auto_detect_line_endings INI setting
B. Use a regular expression to detect the last letter of a line
C. Use fpos()
D. Use ftok()
E. Read the file one character at a time
日期和时间处理
7、What is the difference,in seconds,between the current timestamp in the GMT time
zone and the current timestamp in your local time zone?
A. It depends on the number of hours between the local time zone and GMT
B. There is no difference
C. The two will only match if the local time zone is GMT
D. The two will never match
E. None of the above
E-mail 处理
8、In an UNIX environment that makes use of a local sendmail installation,how would
you ensure that your script will be able to arbitrarily set the sender's name and
address in an e-mail?(Choose 3)
A. By adding a From header to the message
B. By passing -f as one of the extra parameters
C. By adding a Reply-to header to the message
D. By ensuring that the user under which Apache runs is marked as privileged in
the sendmail configuration
E. By ensuring the Apache process runs as root
数据库编程
9、Which of the following correctly identify the requirements for a column to be part
of the result set of a query that contains a GROUP BY clause?(Choose 2)
A. The column must be indexed
B. The column must be included in the GROUP BY clause
C. The column must contain an aggregate value
D. The column must be a primary key
E. The column must not contain NULL values
操作流程和网络编程
10、Assume that you would like to write a sript that reads plain-text data from an arbitrary
stream and writes it back to a second stream ROT13-encoded.The encoding must be performed as
you are writing to the second stream.What approach would be best suited for these purposes?
A. Storing the encoded data in a temporary variable and then writing that variable to the
stream.
B. Using stream filters to encode the data on-the-fly.
C. Creating a lookup table for ROT13,then encoding the data character by character on
the fly as you write it
D. There is no way to encode in ROT13 on the fly
E. None of the above
- Zend认证模拟题(部分)
- ZEND+FLEX认证+收藏
- Java程序员认证模拟题及详细分析(转)
- Zend Framework 中的 Zend_Auth(访问认证与身份持久)
- Zend Framework 中的 Zend_Auth(访问认证与身份持久) .
- Zend PHP5认证模拟考试以及答案(一)
- zend-framwork 框架下的数据库认证(用户登录认证)
- zend framework 摘要式认证
- CCF CSP 认证真题部分题解
- 一组JAVA认证SCJP模拟测试题
- [Unity3D]Unity官方认证考试模拟题
- 走进Zend Framework框架编程(六):视图(第一部分)
- 算法机考模拟题题解(部分)
- WebSphere Business Modeler 认证考试 990 准备: 第 2 部分,模拟业务实践
- Sun java认证考试真题答案及部分解析(一)
- Sun java认证考试真题答案及部分解析(二)
- Sun java认证考试真题答案及部分解析(三)
- Zend Studio集成Apigility之添加和测试认证(1/2)
- 终于在同事的帮助下解决了IE主页被修改为PKPKPK.net并弹出广告的问题
- On Code Comment
- ucos资料
- 结构体对齐的具体含义
- 取得SQLServer字段的描述内容
- Zend认证模拟题(部分)
- 用于持久对象的本地查询 - 克服基于字符API的缺陷(译)
- PHP环境配置
- mldonkey——Linux下的电驴
- 狗的分类
- Web站点崩溃的原因总结
- stl在循环中删除一个元素
- 35岁前成功的12条黄金法则[转]
- 手动在数据源中添加行跟列小例