Deal of The Day! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Blockchain Discussions
Exam CBDE Topic 3 Question 109 Discussion
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:
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.
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';'.
Show Suggested Answer
Hide Answer
Suggested Answer:
C
by
Herschel
at
Mar 03, 2025, 01:36 PM
Limited Time Offer
25%
Off
Get Premium CBDE Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Kallie
13 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
16 days 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
...
Rose
19 days 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
...
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
15 days ago
Yes, it definitely helps with keeping things organized and makes it easier to maintain and update the codebase.
upvoted
0
times
...
Chandra
20 days 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
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Kallie
13 days agoRene
16 days agoRose
19 days agoCarmelina
2 months agoAlbert
2 months agoRashad
15 days agoChandra
20 days agoAlbert
2 months agoCarmelina
2 months ago