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
Q20: Externally Owned Accounts (EoA):
A) are changing their
Q21: GETH:
A) is the reference implementation of the
Q22: Function and Variable Visibility:
A) a function that
Q23: To Iterate through a mapping, you:
A) can
Q24: You interact with a smart contract and
Q26: Multi-Line Comments in Solidity are:
A) working with
Q27: If a User calls contract A and
Q28: A version pragma is a great way
Q29: Variables of the type address store:
A) a
Q30: Loops in Solidity:
A) are a great way
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents