Unit 3: Introduction to Truffle and smart contracts development - Subjective Questions

CSC307 — Blockchain Architecture And Design-I • Practice Questions with Detailed Answers

20 questions

1

Define the Truffle framework and explain its primary purpose in blockchain application development.

2

Explain the main components and directory structure of a typical Truffle project.

3

Describe the step-by-step process of creating a simple smart contract using Truffle.

4

Explain the compilation process in Truffle. What artifacts are generated as a result?

5

Describe the concept of migrations in Truffle and explain how deployment is managed.

6

Distinguish between truffle compile and truffle migrate commands.

7

Explain the role of the truffle-config.js file. What key configurations does it hold?

8

Describe the purpose and use of Ganache in Truffle-based smart contract development.

9

Explain how testing is performed in Truffle. Illustrate with the structure of a test.

10

What are application templates (Truffle Boxes)? Explain their advantages in blockchain development.

11

Give an overview of popular blockchain application templates and the use cases they address.

12

Compare Ethereum and Hyperledger Fabric as blockchain platforms for application development.

13

Discuss the Ethereum platform as a foundation for smart contract applications.

14

Discuss Hyperledger as an enterprise blockchain framework and its key projects.

15

Explain the Application Binary Interface (ABI) and why it is essential for interacting with smart contracts.

16

Describe how the Truffle Console is used to interact with deployed smart contracts.

17

Distinguish between a public (permissionless) and a permissioned blockchain with reference to Ethereum and Hyperledger.

18

Explain the concept of 'gas' in Ethereum smart contract deployment and execution.

19

Describe the complete lifecycle of a smart contract from development to deployment using Truffle, highlighting each stage.

20

Explain the structure of a basic Solidity smart contract, identifying its essential elements.