Deal of The Day! 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 32 Discussion

Function and Variable Visibility:
A) a function that is marked as internal cannot be called by other contracts, unless the function is used by a derived contract. Private Functions cannot be called by any other outside contract and public variables are generating automatically a getter function.
B) a function that is marked as external can never be called internally. Private functions can also be called by derived contracts using inheritance. Private variables are accessible also in derived contracts.

Blockchain CBDE Exam - Topic 3 Question 32 Discussion

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

Function and Variable Visibility:

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Fausto
7 months ago
I think A is spot on, B just confuses the rules.
upvoted 0 times
...
Velda
7 months ago
Totally agree, public variables do get a getter function automatically.
upvoted 0 times
...
Erasmo
8 months ago
Wait, private functions can’t be called by derived contracts? That’s surprising!
upvoted 0 times
...
Muriel
8 months ago
I disagree, B is misleading about private functions.
upvoted 0 times
...
Herminia
8 months ago
A is correct about internal and private functions!
upvoted 0 times
...
Karma
8 months ago
Okay, I think I've got this. I'll select option A to register the devices and sign the app. That seems like the most straightforward solution.
upvoted 0 times
...
Brynn
8 months ago
Hmm, I'm a bit unsure about the difference between syncing non-recurring events and syncing recurring events. I'll need to read through the options carefully.
upvoted 0 times
...
Leonida
8 months ago
I recall discussing how incentivizing challenging the status quo can lead to risky behaviors in our case studies. So maybe B is right, but D could fit too.
upvoted 0 times
...
Sol
8 months ago
Hmm, I'm not sure about this. I'll have to review the networking concepts again.
upvoted 0 times
...

Save Cancel