Skip to content

Commit 68db246

Browse files
authored
Merge pull request #204 from Developer-DAO/quiz-lesson-3
Lesson 3. Add mini-quizzes; update intro, outro, etc to conform to our lessons' standards
2 parents eacfac7 + 7363881 commit 68db246

File tree

24 files changed

+811
-113
lines changed

24 files changed

+811
-113
lines changed

pages/lessons/projects/3.mdx

Lines changed: 209 additions & 113 deletions
Large diffs are not rendered by default.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"question": "Which steps are needed to code a basic smart contract for deployment?",
3+
"options": [
4+
{
5+
"answer": "Create a smart contract using a code editor."
6+
},
7+
{
8+
"answer": "Create a project template."
9+
},
10+
{
11+
"answer": "Install dependencies."
12+
},
13+
{
14+
"answer": "All of the above.",
15+
"correct": true
16+
}
17+
]
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"question": "What does the term 'gas' refer to in the context of Ethereum?",
3+
"options": [
4+
{
5+
"answer": "Digital currency used for transactions."
6+
},
7+
{
8+
"answer": "Unit of measure for computational effort.",
9+
"correct": true
10+
},
11+
{
12+
"answer": "A poisonous fossil fuel."
13+
},
14+
{
15+
"answer": "Encryption algorithm used in smart contracts."
16+
}
17+
]
18+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"question": "Which of the following describes a URI?",
3+
"options": [
4+
{
5+
"answer": "A Uniform Resource Identifier.",
6+
"correct": true
7+
},
8+
{
9+
"answer": "A web address that points to content and information.",
10+
"correct": true
11+
}
12+
]
13+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"question": "Which of the following go into `hardhat.config.js` in an NFT project?",
3+
"options": [
4+
{
5+
"answer": "NFT_NAME."
6+
},
7+
{
8+
"answer": "RPC_API_KEY.",
9+
"correct": true
10+
},
11+
{
12+
"answer": "tokenURI."
13+
},
14+
{
15+
"answer": "All of the above."
16+
}
17+
]
18+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "Which answer is 'truthier'?",
3+
"options": [
4+
{
5+
"answer": "We need a `.json` file to store our NFT data."
6+
},
7+
{
8+
"answer": "We can store NFT data in a smart contract.",
9+
"correct": true
10+
}
11+
]
12+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"question": "Which contract does the `TierNFT` contract inherit from?",
3+
"options": [
4+
{
5+
"answer": "ERC20"
6+
},
7+
{
8+
"answer": "ERC721",
9+
"correct": true
10+
},
11+
{
12+
"answer": "SafeMath"
13+
},
14+
{
15+
"answer": "OpenZeppelin"
16+
}
17+
]
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"question": "What is the `totalSupply` variable for in the contract?",
3+
"options": [
4+
{
5+
"answer": "Storing the value of the current tier."
6+
},
7+
{
8+
"answer": "It determines the price of each NFT"
9+
},
10+
{
11+
"answer": "Tracking the total number of NFTs minted",
12+
"correct": true
13+
},
14+
{
15+
"answer": "To calculate the total value of all NFTs"
16+
}
17+
]
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"question": "What does the `tokenTier` mapping do?",
3+
"options": [
4+
{
5+
"answer": "Store the total supply of each tier."
6+
},
7+
{
8+
"answer": " It maps the token ID to its corresponding tier.",
9+
"correct": true
10+
},
11+
{
12+
"answer": "It maps `tierId` to the public."
13+
},
14+
{
15+
"answer": "It maps `tokenTier` to the `totalSupply`."
16+
}
17+
]
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"question": "Which tier does an address belong to if they send a value of 0.03 ether to the mint function?",
3+
"options": [
4+
{
5+
"answer": "Tier 0 (Basic)."
6+
},
7+
{
8+
"answer": " Tier 1 (Medium).",
9+
"correct": true
10+
},
11+
{
12+
"answer": "Tier 2 (Premium)."
13+
},
14+
{
15+
"answer": "There is no possible token for 0.03 ether."
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)