โ† All NFT Flashcard Decks

Skills Flashcards

7 cards from real NFT practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Skills flashcards as text
  1. Which Solidity visibility modifier should be used for a function that must only be callable from within the same contract or derived contracts?

    Answer: internal

    The internal modifier restricts a function to the contract itself and contracts that inherit from it.

  2. When implementing an ERC-721 contract, which function returns the metadata URI for a specific token?

    Answer: tokenURI(uint256 tokenId)

    tokenURI returns a string pointing to the JSON metadata associated with a given token ID.

  3. What is the primary purpose of using IPFS when developing NFTs?

    Answer: To store metadata and assets in a decentralized, content-addressed way

    IPFS provides decentralized, content-addressed storage so NFT assets and metadata are not tied to a single server.

  4. In Solidity, which keyword makes a function able to receive Ether?

    Answer: payable

    The payable modifier allows a function to accept Ether sent with the transaction.

  5. Which development framework provides a local Ethereum network, testing, and deployment scripts using JavaScript/TypeScript?

    Answer: Hardhat

    Hardhat is a popular development environment for compiling, testing, and deploying Ethereum smart contracts.

  6. What does the OpenZeppelin library primarily provide for NFT developers?

    Answer: Audited, reusable smart contract implementations and standards

    OpenZeppelin offers community-audited contract templates such as ERC-721 and ERC-1155 to build on safely.

  7. Why is it important to emit events like Transfer in an NFT contract?

    Answer: Events allow off-chain applications to track on-chain state changes

    Events provide an indexed log that front-ends and indexers use to monitor token transfers and ownership changes.