Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain Exam CBDE Topic 3 Question 109 Discussion

Actual exam question for Blockchain's CBDE exam
Question #: 109
Topic #: 3
[All CBDE Questions]

Solidity files:

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Kallie
28 days ago
Wait, so I can't just name my contract file whatever I want? That's a bit of a bummer, but I guess it makes sense for organization.
upvoted 0 times
...
Rene
1 months ago
Haha, trying to put everything in one file would be a nightmare! I'm glad Solidity allows us to modularize our code.
upvoted 0 times
Erasmo
3 days ago
I agree, having everything in one file would be a mess.
upvoted 0 times
...
...
Rose
1 months ago
I was hoping for a simpler answer, but C seems to be the right choice. Guess I'll have to get used to that import syntax.
upvoted 0 times
Herman
3 days ago
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';'.
upvoted 0 times
...
Raul
4 days ago
B) can be split across multiple files, but every contract must be in a file with the same name as the contract itself.
upvoted 0 times
...
Dortha
15 days ago
A) can't be split across multiple files, everything should be in one single file.
upvoted 0 times
...
...
Carmelina
2 months ago
Hmm, I see your point. Maybe I should reconsider my answer.
upvoted 0 times
...
Albert
2 months ago
Option C sounds like the way to go. Being able to split my code across multiple files and selectively import what I need is really important for large-scale projects.
upvoted 0 times
Rashad
1 months ago
Yes, it definitely helps with keeping things organized and makes it easier to maintain and update the codebase.
upvoted 0 times
...
Chandra
1 months ago
I agree, having the flexibility to organize your code in separate files is crucial for managing complexity.
upvoted 0 times
...
...
Albert
2 months ago
I disagree, I believe the answer is C. You can import contracts from multiple files.
upvoted 0 times
...
Carmelina
2 months ago
I think the answer is A, everything should be in one single file.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77