1. What is blockchain technology?
A) A centralized database system
B) A distributed ledger that records transactions in a secure, immutable way
C) A type of cloud computing service
D) A traditional relational database
Answer: B
Explanation: Blockchain is a distributed ledger that securely records transactions without a
central authority.
2. Which of the following is a primary difference between blockchain and traditional
databases?
A) Blockchain uses a centralized model while databases are decentralized
B) Blockchain data is immutable, whereas traditional databases allow modification
C) Traditional databases use cryptography for security, unlike blockchains
D) Blockchains support SQL queries by default
Answer: B
Explanation: Blockchains are designed to be immutable, meaning once data is recorded it cannot
be altered, unlike traditional databases.
3. What does the term “ledger” refer to in blockchain technology?
A) A digital wallet for cryptocurrencies
B) A record of all transactions in a blockchain network
C) A smart contract script
D) A network consensus algorithm
Answer: B
Explanation: In blockchain, the ledger is the digital record that stores every transaction in the
network.
4. Which blockchain type is characterized by permissioned access and often used by
enterprises?
A) Public blockchain
B) Private blockchain
C) Consortium blockchain
D) Both B and C
Answer: D
Explanation: Both private and consortium blockchains restrict access and are typically used by
organizations.
5. What is the role of consensus algorithms in blockchain?
A) They control network firewalls
B) They help ensure all nodes agree on the ledger’s state
C) They encrypt user data only
D) They generate blockchain addresses
Answer: B
,Explanation: Consensus algorithms ensure that all participants agree on a single version of the
truth in the ledger.
6. Which of the following best defines smart contracts?
A) Contracts signed with a digital pen
B) Self-executing code that runs on the blockchain
C) Legal documents stored on a server
D) A blockchain node’s configuration file
Answer: B
Explanation: Smart contracts are self-executing pieces of code stored on the blockchain that
automatically enforce rules and agreements.
7. What distinguishes Hyperledger Fabric from other blockchain platforms?
A) It only supports Bitcoin transactions
B) It is designed with a modular architecture for flexibility
C) It exclusively uses proof-of-work
D) It does not support smart contracts
Answer: B
Explanation: Hyperledger Fabric is known for its modular architecture that allows for plug-and-
play components.
8. In Hyperledger Fabric, what is a “peer”?
A) A node that orders transactions
B) A client application
C) A node that maintains the ledger and endorses transactions
D) A smart contract deployment tool
Answer: C
Explanation: Peers in Hyperledger Fabric maintain the ledger and validate transactions.
9. Which component in Hyperledger Fabric is responsible for ordering transactions into
blocks?
A) Peer node
B) Orderer
C) Client
D) Chaincode
Answer: B
Explanation: The Orderer collects endorsed transactions and orders them into blocks for the
network.
10. What is the purpose of channels in Hyperledger Fabric?
A) To isolate transaction data among a subset of network participants
B) To broadcast transactions to all nodes
C) To encrypt blockchain data
D) To serve as smart contract repositories
Answer: A
,Explanation: Channels enable data isolation, allowing a private sub-network among
organizations.
11. Which of the following languages is NOT commonly used to write chaincode in
Hyperledger Fabric?
A) Go
B) JavaScript
C) Python
D) Java
Answer: C
Explanation: Hyperledger Fabric chaincode is typically developed in Go, JavaScript (Node.js), or
Java, not Python.
12. What is the primary purpose of the chaincode lifecycle in Hyperledger Fabric?
A) To manage node communication
B) To install, instantiate, and upgrade smart contracts
C) To design user interfaces for blockchain apps
D) To create encryption keys
Answer: B
Explanation: The chaincode lifecycle encompasses installation, instantiation, invocation, and
upgrades of smart contracts.
13. How does Hyperledger Fabric ensure privacy between different organizations on the
same network?
A) By using a public ledger
B) By implementing channels for data segmentation
C) Through the use of blockchain forks
D) By encrypting the entire network with a single key
Answer: B
Explanation: Channels provide data isolation and privacy among specific groups of
organizations.
14. What is the function of Fabric-CA in Hyperledger Fabric?
A) To serve as a smart contract compiler
B) To provide certificate authority services for identity management
C) To order transactions into blocks
D) To deploy chaincode
Answer: B
Explanation: Fabric-CA is used to manage identities and issue certificates for network
participants.
15. In Hyperledger Fabric, what does the endorsement policy determine?
A) How transactions are encrypted
B) Which peers must validate and endorse a transaction before it is committed
C) The order of transactions
D) The programming language for chaincode
, Answer: B
Explanation: Endorsement policies specify which and how many peers must verify a transaction
before it is accepted.
16. What is the purpose of using Docker in setting up a Hyperledger Fabric network?
A) To compile chaincode automatically
B) To containerize and manage different Fabric components easily
C) To provide an alternative consensus mechanism
D) To develop client applications
Answer: B
Explanation: Docker is used to containerize the components, making deployment and
management of the network simpler.
17. Which of the following best describes the transaction flow in Hyperledger Fabric?
A) Transaction submission, block creation, mining reward distribution
B) Transaction proposal, endorsement, ordering, validation, and commitment
C) Transaction signing, broadcasting, and immediate commitment
D) Transaction encryption, decryption, and storage
Answer: B
Explanation: Hyperledger Fabric follows a sequence of proposal, endorsement, ordering,
validation, and commitment for transactions.
18. What is the main difference between transaction endorsement and transaction
validation in Fabric?
A) Endorsement occurs by peers before ordering; validation happens during block commit
B) Endorsement encrypts data while validation decrypts it
C) Endorsement uses a public key; validation uses a private key
D) There is no difference
Answer: A
Explanation: Endorsement is performed by peers prior to ordering, and validation occurs during
the block commit phase.
19. Which state database options are available in Hyperledger Fabric?
A) MySQL and PostgreSQL
B) CouchDB and LevelDB
C) MongoDB and Redis
D) OracleDB and SQLServer
Answer: B
Explanation: Hyperledger Fabric supports CouchDB and LevelDB for maintaining the world
state.
20. What does “immutability” in a blockchain refer to?
A) The inability to change or delete data once it is recorded
B) The ability to edit transactions at will
C) The flexibility of adding new data
D) The encrypted nature of data