Free CBDE Exam Braindumps (page: 12)

Page 11 of 26

Solidity files:

  1. can't be split across multiple files, everything should be in one single file.
  2. can be split across multiple files, but every contract must be in a file with the same name as the contract itself.
  3. can be spread across multiple files. To import all contract from a file you can use "import 'myfile.sol'. To import Contract MyContract from myfile.sol you use "import {MyContract as SomeContract} from 'myfile.sol';".

Answer(s): C



Files can be imported:

  1. using relative and absolute paths, where the "." And the ".." depict that it's a relative path.
  2. only via GitHub using the Repository and Username.
  3. using the special requirefile(...) statement, which looks in a specific library path to import files.

Answer(s): A



Importing from GitHub:

  1. works across all compilers and platforms the same way.
  2. is generally possible, but currently works only in Remix, but doesn't work in Truffle.

Answer(s): B



Single line comments in Solidity are:

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

Answer(s): A






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

CBDE Exam Discussions & Posts