ExamGecko
Question list
Search
Search

Question 41 - CBDE discussion

Report
Export

Solidity files:

A.
can't be split across multiple files, everything should be in one single file.
Answers
A.
can't be split across multiple files, everything should be in one single file.
B.
can be split across multiple files, but every contract must be in a file with the same name as the contract itself.
Answers
B.
can be split across multiple files, but every contract must be in a file with the same name as the contract itself.
C.
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';".
Answers
C.
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';".
Suggested answer: C
asked 16/09/2024
Noor Amy
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first