New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain CBDE Exam - 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:

0/2000 characters
Jaime
3 months ago
B is misleading, contracts can be in different files without name matching.
upvoted 0 times
...
Elouise
3 months ago
Wait, can you really import like that? Sounds complicated.
upvoted 0 times
...
Ruby
4 months ago
Totally agree with C, importing is super useful!
upvoted 0 times
...
Shoshana
4 months ago
I thought everything had to be in one file, guess I was wrong!
upvoted 0 times
...
Franchesca
4 months ago
C is correct, you can definitely split files!
upvoted 0 times
...
Alonso
4 months ago
I remember discussing file structures in class, and I think we concluded that contracts can be in multiple files, so C seems correct.
upvoted 0 times
...
Clay
5 months ago
I’m a bit confused. I thought everything had to be in one file, but I also recall something about imports.
upvoted 0 times
...
Franklyn
5 months ago
I practiced a question similar to this, and I believe you can import contracts from other files. Option C sounds right to me.
upvoted 0 times
...
Glory
5 months ago
I think I remember that Solidity files can be split, but I'm not sure about the naming conventions for the files.
upvoted 0 times
...
Miesha
5 months ago
I'm pretty confident that C is the right answer here. Solidity's modular design allows you to split your code across multiple files and import the parts you need. This is a useful feature for organizing larger projects.
upvoted 0 times
...
Dorcas
5 months ago
Option C sounds right to me. I remember learning that you can use the import statement to bring in contracts from other files. That gives you a lot of flexibility in how you structure your Solidity projects.
upvoted 0 times
...
Aja
5 months ago
Hmm, I'm a bit unsure about this one. I know Solidity has some flexibility with file organization, but I'll need to double-check the details to make sure I select the right answer.
upvoted 0 times
...
Rashida
5 months ago
I think option C is the correct answer. Solidity allows you to split your code across multiple files and import contracts as needed.
upvoted 0 times
...
Kallie
10 months 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
10 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
Leah
8 months ago
It definitely makes the code more manageable.
upvoted 0 times
...
Ronald
8 months ago
I prefer to keep my contracts organized in separate files.
upvoted 0 times
...
Ty
9 months ago
Yes, it's great that Solidity allows us to split our code across multiple files.
upvoted 0 times
...
Erasmo
9 months ago
I agree, having everything in one file would be a mess.
upvoted 0 times
...
...
Rose
10 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
9 months 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
9 months 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
9 months ago
A) can't be split across multiple files, everything should be in one single file.
upvoted 0 times
...
...
Carmelina
11 months ago
Hmm, I see your point. Maybe I should reconsider my answer.
upvoted 0 times
...
Albert
11 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
10 months ago
Yes, it definitely helps with keeping things organized and makes it easier to maintain and update the codebase.
upvoted 0 times
...
Chandra
10 months ago
I agree, having the flexibility to organize your code in separate files is crucial for managing complexity.
upvoted 0 times
...
...
Albert
11 months ago
I disagree, I believe the answer is C. You can import contracts from multiple files.
upvoted 0 times
...
Carmelina
11 months ago
I think the answer is A, everything should be in one single file.
upvoted 0 times
...

Save Cancel