200-710 Exam QuestionsBrowse all questions from this exam

200-710 Exam - Question 6


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

Show Answer
Correct Answer: B,D

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

5 comments
Sign in to comment
girisssOption: B
Jul 28, 2020

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
Oct 9, 2021

Thank you!

jslemelinOption: B
Mar 11, 2020

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

jslemelinOption: B
Mar 11, 2020

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.

[Removed]Option: B
Jun 20, 2020

The answer should be B (32).

[Removed]Option: D
Jun 21, 2020

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