Blockchain BTA Certified Blockchain Developer - Ethereum CBDE Question # 18 Topic 2 Discussion

Blockchain BTA Certified Blockchain Developer - Ethereum CBDE Question # 18 Topic 2 Discussion

CBDE Exam Topic 2 Question 18 Discussion:
Question #: 18
Topic #: 2

To compare a String in Solidity you use:


A.

string1 == string2


B.

the internal function "str_compare(str1,str2)"


C.

you can't directly compare two strings, but one method would be to hash both strings and compare the hashes.


D.

bytes32(string1) == bytes32(string2)


Get Premium CBDE Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.