ExamGecko
Question list
Search
Search

Question 97 - CBDE discussion

Report
Export

When you are programming a game like poker of battleships where you need to hide opponents values is:

A.
with private state variables. This way nobody else other than the smart contract itself can see the information
Answers
A.
with private state variables. This way nobody else other than the smart contract itself can see the information
B.
with external contracts holding those values. This way we can make sure that the information flow is following a clear logic and nobody else can access this information.
Answers
B.
with external contracts holding those values. This way we can make sure that the information flow is following a clear logic and nobody else can access this information.
C.
You can't hide anything on the blockchain, because the information is public, just the call is private which means only other smart contracts would be limited in accessing that information.
Answers
C.
You can't hide anything on the blockchain, because the information is public, just the call is private which means only other smart contracts would be limited in accessing that information.
Suggested answer: C
asked 16/09/2024
Youssef El Akhal
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first