Podcast
Questions and Answers
ERC-20 tokens are non-fungible tokens (NFT)
ERC-20 tokens are non-fungible tokens (NFT)
False
View functions can modify states or call other non-view functions
View functions can modify states or call other non-view functions
False
Payable address can receive Ether
Payable address can receive Ether
True
The fallback function must be external and payable
The fallback function must be external and payable
Signup and view all the answers
ERC-721 is an extension of the ERC-20 interface
ERC-721 is an extension of the ERC-20 interface
Signup and view all the answers
Decimals are used to specify how many decimal places a token has
Decimals are used to specify how many decimal places a token has
Signup and view all the answers
ERC-1155 is a multi-token standard
ERC-1155 is a multi-token standard
Signup and view all the answers
The receive function has no function keyword, no arguments, and no return values
The receive function has no function keyword, no arguments, and no return values
Signup and view all the answers
Event EVM logging facilities are used for ERC-20 tokens
Event EVM logging facilities are used for ERC-20 tokens
Signup and view all the answers
The total token supply is calculated as the displayed amount multiplied by 10^decimals
The total token supply is calculated as the displayed amount multiplied by 10^decimals
Signup and view all the answers
Smart contracts were first proposed in the 1990s as a digital form of promises
Smart contracts were first proposed in the 1990s as a digital form of promises
Signup and view all the answers
Solidity is designed for Ethereum and also used by Binance Smart Chain, Avalanche, XinFin
Solidity is designed for Ethereum and also used by Binance Smart Chain, Avalanche, XinFin
Signup and view all the answers
Solidity is a dynamically-typed language
Solidity is a dynamically-typed language
Signup and view all the answers
Smart contract state variables of value types are stored in the stack
Smart contract state variables of value types are stored in the stack
Signup and view all the answers
Storage variables are written in the blockchain and stored permanently
Storage variables are written in the blockchain and stored permanently
Signup and view all the answers
Local variables of reference types in a function are stored in memory or storage
Local variables of reference types in a function are stored in memory or storage
Signup and view all the answers
Solidity is a Turing-complete language
Solidity is a Turing-complete language
Signup and view all the answers
The cost of storing data in the memory scales quadratically per operation
The cost of storing data in the memory scales quadratically per operation
Signup and view all the answers
Smart contracts can be modified after they are deployed
Smart contracts can be modified after they are deployed
Signup and view all the answers
The cost of storing data in the stack is cheaper than in memory or storage
The cost of storing data in the stack is cheaper than in memory or storage
Signup and view all the answers
Study Notes
ERC Tokens
- ERC-20 tokens are not non-fungible tokens (NFT), they are a standard for fungible tokens.
- ERC-721 is an extension of the ERC-20 interface.
- ERC-1155 is a multi-token standard.
Function Types
- View functions cannot modify states or call other non-view functions.
- Payable address can receive Ether.
- The fallback function must be external and payable.
- The receive function has no function keyword, no arguments, and no return values.
Token Supply
- Decimals are used to specify how many decimal places a token has.
- The total token supply is calculated as the displayed amount multiplied by 10^decimals.
Smart Contracts
- Smart contracts were first proposed in the 1990s as a digital form of promises.
- Solidity is designed for Ethereum and also used by Binance Smart Chain, Avalanche, XinFin.
- Solidity is a dynamically-typed language.
- Solidity is a Turing-complete language.
Storage and Memory
- Smart contract state variables of value types are stored in the stack.
- Storage variables are written in the blockchain and stored permanently.
- Local variables of reference types in a function are stored in memory or storage.
- The cost of storing data in the stack is cheaper than in memory or storage.
- The cost of storing data in the memory scales quadratically per operation.
- Smart contracts cannot be modified after they are deployed.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your understanding of smart contracts, Solidity programming, token standards, and smart contract security with this quiz based on the principles of blockchains. Explore the basic structure of smart contracts, token standards like ERC20 and ERC721, and the lifecycle of smart contracts.