1.
How many peers do you need to endorse a transaction?
Correct Answer
D. It depends on chain code logic.
Explanation
The number of peers required to endorse a transaction depends on the chain code logic. Chain code is the code that defines the rules and conditions for executing transactions on a blockchain network. Different chain codes may have different requirements for the number of endorsements needed for a transaction to be considered valid. Therefore, the number of peers needed to endorse a transaction can vary based on the specific chain code being used.
2.
The orders see the transaction data.
Correct Answer
B. False
Explanation
The statement is suggesting that the orders have access to the transaction data. However, the correct answer is False. This means that the orders do not have access to the transaction data.
3.
Users can use __________ to design assets.
Correct Answer(s)
A. Smart contract
B. Chain code
Explanation
Users can use smart contracts and chain code to design assets in a blockchain network. Smart contracts are self-executing contracts with predefined rules and conditions written in code. They automate the execution of transactions and enforce the terms of the contract. Chain code, on the other hand, refers to the code that defines the business logic of a blockchain application. It is used to define the assets, their properties, and the rules for their creation, transfer, and modification. Therefore, both smart contracts and chain code are essential tools for designing assets in a blockchain network.
4.
What is the first fully supported language to write chain code?
Correct Answer
C. Golang
Explanation
Golang, also known as Go, is the first fully supported language to write chain code. Golang is a statically-typed, compiled programming language that was developed by Google. It is specifically designed for creating efficient and reliable software, making it a suitable choice for writing chain code. Golang's simplicity, strong typing, and concurrency support make it an ideal language for building blockchain applications.
5.
The blockchain ledger is decentralized.
Correct Answer
A. True
Explanation
The statement that the blockchain ledger is decentralized is true. In a decentralized system, there is no central authority or single point of control. Instead, the ledger is distributed across multiple nodes or computers, and each node maintains a copy of the entire ledger. This ensures that no single entity has complete control over the ledger, making it more secure, transparent, and resistant to tampering or fraud. Decentralization is one of the key features of blockchain technology, allowing for trustless transactions and eliminating the need for intermediaries.
6.
Smart contracts are also called chain codes.
Correct Answer
A. True
Explanation
Smart contracts are indeed also called chain codes. Chain codes are a type of smart contract that are used in blockchain platforms such as Hyperledger Fabric. They contain the business logic and rules that govern the transactions and interactions between participants on the blockchain network. Chain codes are written in programming languages such as Go or JavaScript and are deployed and executed on the blockchain. Therefore, the statement that smart contracts are also called chain codes is correct.
7.
Hyperledger Fabric is one of the blockchain projects.
Correct Answer
B. False
Explanation
Hyperledger Fabric is not one of the blockchain projects. It is a permissioned blockchain framework and one of the projects under the Hyperledger umbrella. Hyperledger Fabric is designed for enterprise use and provides a modular architecture that allows for flexibility and scalability in building blockchain-based solutions.
8.
State data is one of the two parts of Hyperledger Fabric Ledger.
Correct Answer
A. True
Explanation
In Hyperledger Fabric Ledger, state data is indeed one of the two parts. The ledger in Hyperledger Fabric consists of two main components: the state database and the transaction log. The state database holds the current state of the ledger, which includes the current values of all the assets and their respective ownership. The transaction log, on the other hand, records all the transactions that have occurred on the ledger. Therefore, state data is an integral part of the Hyperledger Fabric Ledger.
9.
Which of these is another part of Hyperledger Fabric Ledger?
Correct Answer
A. Transaction Logs
Explanation
Transaction logs are another part of the Hyperledger Fabric Ledger. Transaction logs are used to record all the transactions that occur within the network. They provide a detailed history of all the changes made to the ledger, allowing for transparency and accountability. Transaction logs are crucial for auditing purposes and ensuring the integrity of the ledger. By analyzing the transaction logs, participants can verify the authenticity and validity of transactions, making them an essential component of the Hyperledger Fabric Ledger.
10.
By default, the ledger system in Hyperledger Fabric uses this database.
Correct Answer
D. LevelDB
Explanation
Hyperledger Fabric, by default, utilizes LevelDB as its database for the ledger system. LevelDB is a lightweight, key-value storage library that provides high performance and scalability. It is well-suited for managing the distributed ledger in Hyperledger Fabric due to its efficient storage and retrieval capabilities. LevelDB allows for fast and reliable data access, making it an ideal choice for maintaining the ledger system in Hyperledger Fabric.