Zend认证模拟题(部分)

大白菜芯 2006-08-20 10:35:32
/*
*  以后我会陆续的在这里张贴关于PHP/ZEND的培训资料及题目,希望PHP版块不仅
* 仅是提问题的地方.而且还是大家学习的一个地方.
*/


Zend认证模拟题(部分)

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

...全文
128 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
iasky 2006-08-20
  • 打赏
  • 举报
回复
看论坛的帮助
大白菜芯 2006-08-20
  • 打赏
  • 举报
回复
哎.我可用分太少了.现在也不知道CSDN怎么加可用分了!
iasky 2006-08-20
  • 打赏
  • 举报
回复
1分也太少了吧……

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧