The Graph Protocol (GRT) multiple-choice questions with answers.

The Graph Protocol (GRT) multiple-choice questions with answers.

Certainly! Here’s a comprehensive quiz on The Graph Protocol (GRT), featuring 90 multiple-choice questions with answers. This quiz is divided into three sections:


πŸ“˜ Section 1: Fundamentals of The Graph MCQ

  1. What is The Graph?
    A. A decentralized storage network
    B. A blockchain consensus algorithm
    C. An indexing protocol for querying blockchain data βœ…
    D. A smart contract language
  2. What are subgraphs in The Graph?
    A. Private blockchain networks
    B. Open APIs that anyone can query βœ…
    C. Smart contracts
    D. Data visualization tools
  3. Which query language does The Graph use?
    A. SQL
    B. GraphQL βœ…
    C. REST
    D. JSON-RPC
  4. What is the native token of The Graph?
    A. GRT βœ…
    B. ETH
    C. BTC
    D. DOT
  5. What role do indexers play in The Graph ecosystem?
    A. They create smart contracts
    B. They provide data visualization
    C. They index data and serve queries βœ…
    D. They mine new tokens
  6. Why do indexers need to stake GRT tokens?
    A. To earn interest
    B. For economic security and to be slashed if they misbehave βœ…
    C. To participate in governance
    D. To access premium features
  7. What is the role of curators in The Graph?
    A. They validate transactions
    B. They signal on quality subgraphs by depositing GRT βœ…
    C. They develop dApps
    D. They manage network upgrades
  8. What is the purpose of delegators in The Graph?
    A. To write smart contracts
    B. To delegate GRT to indexers and earn a portion of query fees βœ…
    C. To create subgraphs
    D. To validate blocks
  9. Which of the following best describes a subgraph manifest?
    A. A list of smart contracts
    B. A document defining how to index data from a blockchain βœ…
    C. A visualization of data
    D. A governance proposal
  10. What is the primary function of The Graph Node?
    A. To mine GRT tokens
    B. To serve as a wallet
    C. To process and index blockchain data βœ…
    D. To validate transactions
  11. What is the primary advantage of using The Graph over manual data parsing?
    A. Lower transaction fees
    B. Decentralized node mining
    C. Fast and reliable access to indexed blockchain data βœ…
    D. Ability to transfer tokens cross-chain
  12. What is a common use case for The Graph in dApp development?
    A. Providing liquidity
    B. Creating tokens
    C. Indexing and querying blockchain events and data βœ…
    D. Minting NFTs
  13. Where are subgraphs deployed when using the decentralized Graph Network?
    A. Ethereum mainnet
    B. Centralized servers
    C. On-chain storage
    D. On the decentralized Graph protocol βœ…
  14. Who decides which subgraphs are useful in The Graph?
    A. Delegators
    B. Curators βœ…
    C. Validators
    D. Indexers
  15. Which of the following components is not part of a subgraph?
    A. Manifest
    B. Schema
    C. Mappings
    D. Wallet βœ…
  16. In a subgraph manifest (subgraph.yaml), what does the dataSources field specify?
    A. Node configuration
    B. Data visualization methods
    C. Smart contract addresses and ABIs to index βœ…
    D. Token staking information
  17. What is a key feature of GraphQL used in The Graph?
    A. Procedural data retrieval
    B. Over-fetching of data
    C. Ability to query only the required data βœ…
    D. Querying multiple blockchains at once
  18. What is the default indexing strategy in The Graph?
    A. Full table scans
    B. Indexed block-by-block event parsing βœ…
    C. Precompiled SQL queries
    D. On-demand crawling
  19. How does The Graph ensure data integrity?
    A. Through Ethereum mining
    B. By using zero-knowledge proofs
    C. With indexer staking and slashing mechanisms βœ…
    D. By hashing all events
  20. What triggers the execution of a mapping function in a subgraph?
    A. Every block
    B. API requests
    C. Smart contract event emissions βœ…
    D. Token transfers
  21. What language is used for writing mapping functions in subgraphs?
    A. TypeScript
    B. Solidity
    C. AssemblyScript βœ…
    D. Rust
  22. What is required to signal on a subgraph as a curator?
    A. An NFT
    B. ETH
    C. GRT tokens βœ…
    D. IPFS hash
  23. What is the function of the graph init command?
    A. To start a local node
    B. To create a new subgraph scaffold βœ…
    C. To deploy a contract
    D. To add a wallet
  24. What is a key benefit of delegating GRT to an indexer?
    A. Voting power
    B. Data upload rights
    C. Passive income via query rewards βœ…
    D. Access to testnets
  25. Who receives slashing penalties in the case of indexer misbehavior?
    A. Indexers βœ…
    B. Delegators
    C. Curators
    D. Validators
  26. What kind of data does The Graph index?
    A. Non-token metadata only
    B. Private user data
    C. On-chain blockchain data such as logs and events βœ…
    D. Web server logs
  27. Which tool is used to test queries in The Graph Hosted Service?
    A. Remix IDE
    B. Graph Playground βœ…
    C. Web3.js
    D. Etherscan
  28. What is the Hosted Service in The Graph ecosystem?
    A. Centralized development dashboard to deploy and test subgraphs βœ…
    B. Ethereum testnet
    C. Delegation tool
    D. Liquidity service
  29. Which storage network does The Graph utilize for subgraph metadata?
    A. Dropbox
    B. Filecoin
    C. IPFS βœ…
    D. Arweave
  30. How can dApps query The Graph from the frontend?
    A. Using GraphQL queries via HTTP βœ…
    B. Using Solidity
    C. With JSON-RPC
    D. Using WebSockets only

πŸ“˜ Section 2: Intermediate The Graph Concepts MCQ

  1. Which consensus mechanism does The Graph use?
    A. Proof of Work
    B. Proof of Stake
    C. Delegated Proof of Stake
    D. The Graph doesn’t have its own consensus mechanism; it indexes data from other blockchains βœ…
  2. What is the purpose of the Graph Explorer?
    A. To visualize blockchain transactions
    B. To browse and interact with deployed subgraphs βœ…
    C. To manage GRT tokens
    D. To develop smart contracts
  3. How are query fees distributed in The Graph?
    A. Entirely to indexers
    B. Shared among indexers, curators, and delegators βœ…
    C. Burned
    D. Sent to a development fund
  4. What is the role of the Graph Council?
    A. To develop dApps
    B. To oversee protocol upgrades and governance decisions βœ…
    C. To manage wallets
    D. To index data
  5. Which of the following is a benefit of using The Graph?
    A. Slower data retrieval
    B. Centralized data indexing
    C. Efficient and decentralized querying of blockchain data βœ…
    D. Requires manual data parsing
  1. What mechanism ensures economic incentives for indexers to provide accurate data?
    A. Token airdrops
    B. Off-chain signatures
    C. Staking and slashing βœ…
    D. Gas fee subsidies
  2. What is the primary reason delegators do not run Graph Nodes?
    A. They don’t know how to program
    B. The protocol prohibits it
    C. They delegate responsibility to indexers and earn passively βœ…
    D. It’s illegal in some countries
  3. Why might a curator choose to signal on a subgraph?
    A. To add liquidity
    B. To increase their ranking
    C. To earn a share of query fees from a high-quality subgraph βœ…
    D. To receive gas fee discounts
  4. What is the bonding curve in The Graph protocol used for?
    A. Calculating staking returns
    B. Governing network inflation
    C. Managing curation shares and pricing βœ…
    D. Indexing speed
  5. What type of smart contract events does a subgraph typically listen to?
    A. HTTP requests
    B. Solidity constructor calls
    C. Blockchain event logs (logs triggered by emit) βœ…
    D. File uploads
  6. What is a “proof of indexing” (POI) in The Graph?
    A. A gas optimization strategy
    B. A cryptographic proof that an indexer processed a specific subgraph query βœ…
    C. A storage contract
    D. A reputation metric
  7. What role does IPFS play in The Graph protocol?
    A. Runs subgraph logic
    B. Stores raw blockchain data
    C. Stores subgraph deployment files and metadata βœ…
    D. Provides DNS resolution
  8. How is query volume priced in The Graph Network?
    A. Based on ETH gas prices
    B. Based on length of queries
    C. Dynamically by indexers according to market forces βœ…
    D. Fixed by The Graph Council
  9. What happens when a delegator unstakes GRT?
    A. They receive rewards immediately
    B. There is an unbonding period before withdrawal βœ…
    C. Their GRT is burned
    D. They must pay a penalty
  10. What is the minimum staking requirement for an indexer?
    A. No minimum
    B. 1 ETH
    C. 1000 GRT βœ…
    D. 0.01 BTC
  11. Which framework is used for writing and managing subgraph projects?
    A. Hardhat
    B. Truffle
    C. The Graph CLI βœ…
    D. Substrate
  12. Which component defines the entities and relationships in a subgraph?
    A. ABI file
    B. Manifest
    C. GraphQL Schema βœ…
    D. config.js
  13. What is the “graph codegen” command used for?
    A. Deploying dApps
    B. Generating typed classes from the GraphQL schema βœ…
    C. Running queries
    D. Uploading to IPFS
  14. Which type of contract events are required in the manifest to trigger mappings?
    A. payable
    B. fallback
    C. emitted βœ…
    D. constructor
  15. What is the primary tool to deploy a subgraph to the hosted service?
    A. graph deploy βœ…
    B. graph execute
    C. deploy.js
    D. node indexer.js
  16. What are “mappings” in a subgraph project?
    A. Functions that transform on-chain data into entities βœ…
    B. JSON files that define metadata
    C. GraphQL resolvers
    D. Smart contracts
  17. What happens if an indexer serves incorrect data?
    A. They’re promoted
    B. They receive more GRT
    C. They’re slashed and lose part of their stake βœ…
    D. Nothing happens
  18. What is the role of the Graph Council?
    A. Writing smart contracts
    B. Enforcing legal compliance
    C. Managing protocol upgrades and governance βœ…
    D. Building UIs
  19. What programming paradigm do subgraph mappings follow?
    A. Event-driven βœ…
    B. Object-oriented
    C. Functional
    D. Imperative
  20. Why is AssemblyScript used in mappings instead of TypeScript?
    A. It’s more widely used
    B. It’s more secure
    C. It compiles to WebAssembly for performance βœ…
    D. It supports REST APIs
  21. What are curation shares?
    A. NFTs
    B. Governance tokens
    C. Tokens representing a curator’s stake in a subgraph βœ…
    D. ERC-20 rewards
  22. How are subgraphs versioned?
    A. Using GitHub tags
    B. With semantic versioning in the manifest βœ…
    C. Through time-based snapshots
    D. Random IDs
  23. What is the function of graph auth?
    A. Running a Graph node
    B. Managing permissions for deployments βœ…
    C. Uploading to IPFS
    D. Creating schemas
  24. Which blockchain does The Graph support natively as its initial source?
    A. Solana
    B. Polygon
    C. Ethereum βœ…
    D. Avalanche
  25. What is the format of the subgraph.yaml file?
    A. JSON
    B. YAML βœ…
    C. XML
    D. CSV

πŸ“˜ Section 3: Advanced Topics and Ecosystem of the graph MCQ

  1. What is the purpose of the Graph CLI?
    A. To manage wallets
    B. To interact with The Graph protocol via command-line βœ…
    C. To mine GRT tokens
    D. To visualize data
  2. Which programming language is primarily used to write subgraph mappings?
    A. Python
    B. JavaScript
    C. AssemblyScript βœ…
    D. Rust
  3. What is the function of the graph deploy command?
    A. To deploy smart contracts
    B. To deploy a subgraph to The Graph’s hosted service or decentralized network βœ…
    C. To start a local blockchain
    D. To create a new wallet
  4. What does the graph codegen command do?
    A. Generates wallet addresses
    B. Compiles smart contracts
    C. Generates TypeScript/AssemblyScript types from a subgraph’s GraphQL schema βœ…
    D. Deploys a subgraph
  5. Which of the following best describes a subgraph’s schema?
    A. A JSON file
    B. A GraphQL schema defining the data to be indexed and queried βœ…
    C. A CSV file
    D. A YAML configuration
  1. What does an indexer’s allocation represent?
    A. Number of queries they’ve served
    B. Amount of GRT delegated to them
    C. Commitment to index a subgraph with a specific amount of stake βœ…
    D. Number of subgraphs they have created
  2. What happens when an indexer closes an allocation?
    A. It auto-renews
    B. They forfeit their GRT
    C. They can claim query fees and rewards βœ…
    D. The subgraph gets deleted
  3. What is the maximum curation signal a curator can give to a subgraph?
    A. Unlimited, subject to bonding curve pricing βœ…
    B. Fixed at 10,000 GRT
    C. Capped at 1% of total supply
    D. Only 1 signal per user
  4. What does GNS stand for in the context of The Graph?
    A. Graph Naming Service
    B. Graph Network State
    C. Graph Name System βœ…
    D. Global Node Sync
  5. What defines the economic equilibrium between query fees, curation, and indexing?
    A. Inflation rate
    B. Bonding curve and market dynamics βœ…
    C. Governance proposal
    D. Indexer uptime
  6. Which technology helps The Graph process requests in parallel?
    A. Docker
    B. Web Workers
    C. Multithreading
    D. WebAssembly (WASM) βœ…
  7. In subgraph mappings, what is the purpose of store.set()?
    A. Logs a message
    B. Stores an entity instance to the database βœ…
    C. Deploys the schema
    D. Signals curation
  8. What command is used to build a subgraph before deploying?
    A. graph run
    B. graph init
    C. graph build βœ…
    D. subgraph create
  9. What is the main use of the graph codegen command?
    A. Export ABI
    B. Generate AssemblyScript types βœ…
    C. Create a local GraphQL server
    D. Compile Rust contracts
  10. What does “attestations” refer to in The Graph Network?
    A. On-chain governance votes
    B. Proof that a query response was accurate and verified βœ…
    C. ERC-721 metadata
    D. Private key signatures
  11. What is the relationship between a subgraph manifest and the subgraph schema?
    A. Schema defines deployment metadata
    B. Manifest defines schema logic
    C. Manifest configures data sources, while schema defines the data model βœ…
    D. Both must be written in JSON
  12. What happens if a subgraph contains an invalid mapping function?
    A. Deployment will be halted βœ…
    B. Indexer will skip that block
    C. Network will charge extra fees
    D. It silently fails
  13. What tool allows developers to test a subgraph locally?
    A. graph run
    B. graph-node βœ…
    C. localhost:3000
    D. truffle test
  14. What is the purpose of the graph init command?
    A. Launch GraphQL server
    B. Create a new subgraph project with scaffold files βœ…
    C. Initialize Docker
    D. Deploy smart contracts
  15. How does an indexer choose which subgraphs to index?
    A. Randomly
    B. Based on total rewards
    C. Based on curation signal and expected query volume βœ…
    D. Via protocol mandates
  16. Which data structure best represents the entities in subgraph schema files?
    A. Arrays
    B. Classes
    C. GraphQL Object Types βœ…
    D. Maps
  17. How does The Graph ensure decentralized query processing?
    A. Off-chain aggregation
    B. Centralized consensus
    C. Indexer competition and economic incentives βœ…
    D. Manual peer review
  18. What is the primary risk of being a delegator?
    A. Slashing of their delegated GRT if the indexer misbehaves βœ…
    B. Network fees
    C. Governance exposure
    D. Account suspension
  19. Why do curators signal early on high-quality subgraphs?
    A. To test them
    B. To support developers
    C. To earn more share of query fees due to early bonding curve pricing βœ…
    D. For marketing
  20. What is the Graph Explorer?
    A. Blockchain debugger
    B. GUI to stake ETH
    C. Web interface to discover and interact with subgraphs βœ…
    D. Token faucet
  21. Can a single subgraph index multiple smart contracts?
    A. No
    B. Yes βœ…
    C. Only with EIP-712
    D. Only if using MetaMask
  22. What happens when you call graph deploy with an IPFS hash?
    A. Deploys your dApp
    B. Uploads mapping to Arweave
    C. Deploys your subgraph to the hosted or decentralized Graph network βœ…
    D. Sets GNS domain
  23. What is the minimum delegation amount on the decentralized network?
    A. 0 GRT
    B. 1000 GRT βœ…
    C. 1 ETH
    D. 0.1 BTC
  24. Which metric is most important to monitor indexer performance?
    A. GitHub stars
    B. Node version
    C. Effective query fee rebate ratio βœ…
    D. Number of tokens staked
  25. Which web technology allows The Graph to serve GraphQL queries efficiently?
    A. WebRTC
    B. REST APIs
    C. GraphQL resolvers over WebAssembly βœ…
    D. SOAP

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *