You need to use ____________ to get the address that initiated the transaction.
Show answerHide answer
Correct answer: ATx.origin
Question 22Choose 1
To compare a String in Solidity you use:
Show answerHide answer
Correct answer: Cyou can't directly compare two strings, but one method would be to hash both strings
and compare the hashes.
Question 23Choose 1
Smart Contracts:
Show answerHide answer
Correct answer: Care sitting on their own address. The Address is created from the nonce and the EOA
address and could be known in advance before deploying the smart contract.
Question 24Choose 1
View and Pure Functions:
Show answerHide answer
Correct answer: Bcan be accessed during transactions and calls.
Correct answer: A2, because the decimal is truncated.
Question 27Choose 1
Variables of the type address store:
Show answerHide answer
Correct answer: Aa 20 bytes value
Question 28Choose 1
Truffle has an integrated in-memory blockchain which makes unit-testing very easy:
Show answerHide answer
Correct answer: ATrue, but it's still good to use Ganache, or even a real private network for testing.
Question 29Choose 1
Consensus is reached:
Show answerHide answer
Correct answer: Bby every single node in the blockchain network executing the same transaction.
Question 30Choose 1
You interact with a smart contract and see a gas usage of 50,000 gas with a gas cost of
15Gwei.
How much Ether would you have to pay to the miner?
Show answerHide answer
Correct answer: A750,000,000,000,000 Wei
That's the last free question
You've seen the free 30% (30 of 101 questions). Full access unlocks every question and full-length CBDE mock exams (65 questions, 105 minutes), a different mock on every attempt.
Full-length mocks with the same number of questions and the same time limit as the real CBDE exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.