Multiple Choice
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)
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q16: On a consortium network:<br>A) everybody can become
Q17: Proof of Work (PoW) vs. Proof of
Q18: The following are value types in Solidity.<br>A)
Q19: A Hashing Algorithm is deterministic. What does
Q20: Why is Unit-Testing so important?<br>A) It helps
Q22: With the truffle config file you can
Q23: To store almost all data in the
Q24: When a new block is mined:<br>A) a
Q25: In order to implement an ERC20 token
Q26: Events:<br>A) are stored on chain and are