Free CBDE Exam Braindumps (page: 13)

Page 12 of 26

Multi-Line Comments in Solidity are:

  1. working with either // or ///
  2. working with /* comment */ or /** @.. natspec style */
  3. not possible, all comments must be single-line.

Answer(s): B



The following are value types in Solidity.

  1. Integer, Boolean, Struct, Mapping and Enum.
  2. Integer, Boolean, Enum and Addresses.
  3. Integer, Boolean, Structs and Fixed Point Numbers.

Answer(s): B



To compare a String in Solidity you use:

  1. string1 == string2
  2. the internal function "str_compare(str1,str2)"
  3. you can't directly compare two strings, but one method would be to hash both strings and compare the hashes.
  4. bytes32(string1) == bytes32(string2)

Answer(s): C



If we divide two integers: 5/2, the result is:

  1. 2, because the decimal is truncated.
  2. 3, because it's always rounded.
  3. 2.5, because it's automatically converted into a float.

Answer(s): A






Post your Comments and Discuss Blockchain CBDE exam with other Community members:

CBDE Exam Discussions & Posts