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 1 Question 10 Discussion

Address.Call vs. Address.Delegatecall:
A) Address.call() is used for calling other contracts using the scope of the called contract in terms of storage variables. Address.delegatecall() is used for libraries, which uses the storage variables of the contract who called. Libraries are a great way to re-use already existing code and delegatecall can make sure that no storage is used from the library, instead it looks like the code is directly copied into the calling contract.
B) Address.delegatecall() is used for calling other contracts using the scope of the called contract in terms of storage variables. Address.call() is used for libraries, which uses the storage variables of the contract who called. Libraries are a great way to re-use already existing code and call() can make sure that no storage is used from the library, instead it looks like the code is directly copied into the calling contract.

Blockchain CBDE Exam - Topic 1 Question 10 Discussion

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

Address.Call vs. Address.Delegatecall:

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Aileen
7 months ago
I think you got it mixed up, call() is for libraries, not delegatecall.
upvoted 0 times
...
Doug
7 months ago
Libraries really do help with code reuse, can't argue with that!
upvoted 0 times
...
Melissa
8 months ago
Wait, are you sure about that? I thought delegatecall was for libraries only.
upvoted 0 times
...
Kassandra
8 months ago
Totally agree, that's how I understand it too!
upvoted 0 times
...
Daryl
8 months ago
Address.call() uses the called contract's storage, while delegatecall uses the caller's.
upvoted 0 times
...
France
8 months ago
Okay, I've got this. The key is to remember that the leader replica handles all the produce requests, while the followers can handle consume requests. I'm pretty confident in my answer.
upvoted 0 times
...
Desmond
8 months ago
This is a tough one, but I think the best approach is to reprioritize the existing and new user stories. That way, we can fit everything into the project timeline without having to hire additional developers or completely neglecting the backlog. It's all about finding the right balance.
upvoted 0 times
...
Linwood
8 months ago
I'm pretty sure it's the Selfish Mining Attack because it's about making your chain longer, but I might confuse it with the 51% Attack.
upvoted 0 times
...
Malissa
8 months ago
This looks like a tricky one. I'll need to really focus and make sure I understand the question properly before selecting an answer. I don't want to rush and end up choosing the wrong option.
upvoted 0 times
...
Malinda
8 months ago
I'm not entirely sure about this one. The options seem a bit similar, and I'm not confident I fully understand the differences between them. I'll need to review the documentation on the OnDelete property to make sure I'm choosing the right answer.
upvoted 0 times
...
Dominga
8 months ago
I feel like I practiced a question about how the independent variable affects behavior change, maybe that's what I'm supposed to recall here?
upvoted 0 times
...

Save Cancel