Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 200-710 topic 1 question 14 discussion

Actual exam question from Zend's 200-710
Question #: 14
Topic #: 1
[All 200-710 Questions]

What is the length of a string returned by: md5(rand(). TRUE);

  • A. Depends on the value returned by rand() function
  • B. 32
  • C. 24
  • D. 16
  • E. 64
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
girisss
3 years, 8 months ago
If it is a dot then answer 32 If it is a comma then answer 16 > echo strlen(md5(rand(). TRUE)); 32 > echo strlen(md5(rand(), TRUE)); 16
upvoted 4 times
thuanpt
2 years, 6 months ago
Thank you!
upvoted 1 times
...
...
[Removed]
3 years, 10 months ago
Correct answer will be D (16) in case if the question was md5(rand(), TRUE); (, instead of .)
upvoted 1 times
...
[Removed]
3 years, 10 months ago
The answer should be B (32).
upvoted 1 times
...
jslemelin
4 years, 1 month ago
Also, the second parameter Refers hex or binary output format, Returns raw 16-bit binary format if raw_output sets TRUE and return 32-bit hex format for setting FALSE (default). If a comma would have been written instead of the dot, then 16 would have been the answer.
upvoted 2 times
...
jslemelin
4 years, 1 month ago
I dit this and obtained 32: echo strlen(md5(rand(). TRUE));
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...