Zend 200-530 - Zend PHP 5.3 Certification Exam
Page: 2 / 51
Total 254 questions
Question #6 (Topic: )
What is the ideal method of copying data between two opened files?
A. copy($source_file, $destination_file);
B. copy(destination_file, $source_file);
C. stream_copy_to_stream($source_file, $destination_file);
D. stream_copy_to_stream($destination_file, $source_file);
E. stream_bucket_prepend($source_file, $destination_file);
Answer: C
Question #7 (Topic: )
What is the name of the key in $_FILES['name'] that contains the number of bytes of the
uploaded file?
uploaded file?
Answer: size
Question #8 (Topic: )
Which of the following rules must every correct XML document adhere to? (Choose 2)
A. It has to be well-formed.
B. It has to be valid.
C. It has to be associated to a DTD.
D. It may only contain UTF-8 encoded characters.
Answer: A,B
Question #9 (Topic: )
Assuming UTF-8 encoding, what is the value of $count?
A. false
B. 4
C. 6
D. 7
Answer: B
Question #10 (Topic: )
Which of the following code snippets writes the content of the “source.txt” to “target.txt”?
A. file_put_contents("target.txt", fopen("source.txt", "r"));
B. file_put_contents("target.txt", readfile("source.txt"));
C. file_put_contents("target.txt", join(file("source.txt"), ""));
D. file_put_contents("target.txt", file_get_contents("source.txt"));
E. $handle = fopen("target.txt", "w+"); fwrite($handle, file_get_contents("source.txt")); fclose($handle);
Answer: A,D,E