Zend-Technologies Zend PHP 5.3 Certification 認定 200-530 試験問題:
1. What is the output of the following code?
$first = "second";
$second = "first";
echo $$$first;
A) an empty string
B) first
C) an error
D) second
2. An object can be counted with count() and sizeof() if it.....
A) has a public__count() method
B) None of the above
C) implements ArrayAccess
D) was cast to an object from an array
3. What is the output of the following code?
$a = 1;
++$a;
$a*=$a;
echo $a--;
A) 4
B) 1
C) 5
D) 0
E) 3
4. Which PHP function relieves a 1st of HTTP headers that have been sent as part of the HTTP response or are ready to be sent?
A) header_list()
B) header_sent()
C) header()
D) getresponseheaders0
E) headers()
5. How to read a single line, no matter how long from an file opened in the example below?
$fp = fopen("my_file.txt", "w");
A) fread($fp, 1024);
B) fgets($fp, -1);
C) fgetss($fp);
D) fgets($fp);
E) None of the above
質問と回答:
質問 # 1 正解: D | 質問 # 2 正解: B | 質問 # 3 正解: A | 質問 # 4 正解: A | 質問 # 5 正解: C |