Exam 200-710 All QuestionsBrowse all questions from this exam
Question 6

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

    Correct Answer: B

    The md5 function generates a 32-character hexadecimal number by default. When you call md5 with any input, including the concatenation of rand() and TRUE, the output will be a 32-character hash. Therefore, the length of the string returned by md5(rand(). TRUE) is 32.

Discussion
girisssOption: B

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

thuanpt

Thank you!

jslemelinOption: B

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.

jslemelinOption: B

I dit this and obtained 32: echo strlen(md5(rand(). TRUE));

[Removed]Option: D

Correct answer will be D (16) in case if the question was md5(rand(), TRUE); (, instead of .)

[Removed]Option: B

The answer should be B (32).