Skip to content

Commit 1a40da2

Browse files
committed
Add first mini-quiz of five
1 parent 8e9e5b9 commit 1a40da2

File tree

5 files changed

+33
-24
lines changed

5 files changed

+33
-24
lines changed

utils/questions/lesson-4/2-get-set-up/Q1.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
"question": "Which of the following can we achieve with automated testing?",
33
"options": [
44
{
5-
"answer": "bla bla bla."
5+
"answer": "Prove code actually works"
66
},
77
{
8-
"answer": "Create a project."
8+
"answer": "Help write more modular code"
99
},
1010
{
11-
"answer": "Create a smart contract using a code editor."
11+
"answer": "Ensure code doesn't break when changes are made"
12+
},
13+
{
14+
"answer": "Only a) and c)"
1215
},
1316
{
1417
"answer": "All of the above",
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
2-
"question": "When setting up dependencies, what is relevant to our testing environment? ",
2+
"question": "How does the tokenURI function generate the token metadata?",
33
"options": [
44
{
5-
"answer": "bla bla bla."
5+
"answer": "By reading from an external file"
66
},
77
{
8-
"answer": "It tells npm to save the dependencies in a development environment.",
8+
"answer": "By using a predefined JSON template"
9+
},
10+
{
11+
"answer": "By dynamically generating SVG image and JSON data",
912
"correct": true
1013
},
1114
{
12-
"answer": "It tells npm to save the dependencies in a production environment"
15+
"answer": "By querying an off-chain API"
1316
}
1417
]
1518
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"question": "What is the benefit of using Open Zeppelin contracts in smart contract development?",
2+
"question": "What should be added to the scripts section of package.json to run tests using Hardhat?",
33
"options": [
44
{
5-
"answer": "They reduce the amount of code we write"
5+
"answer": "\"scripts\": { \"test\": \"hardhat test\" }"
66
},
77
{
8-
"answer": "They provide rigorously audited and safe contracts"
8+
"answer": "\"scripts\": { \"runTests\": \"hardhat test\" }"
99
},
1010
{
11-
"answer": "They allow for easier human collaboration and technical interoperability"
11+
"answer": " \"scripts\": { \"test\": \"hardhat test --network hardhat\" }",
12+
"correct": true
1213
},
1314
{
14-
"answer": "All of the above",
15-
"correct": true
15+
"answer": "\"scripts\": { \"runTests\": \"hardhat test --network hardhat\" }"
1616
}
1717
]
1818
}
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
2-
"question": "We will cover this later, but what do you think the purpose of the .gitignore file created by Hardhat is?",
2+
"question": "Why should we verify the Solidity version in the hardhat.config.js file?",
33
"options": [
44
{
5-
"answer": "To hide your project's dependencies."
5+
"answer": " To check for any updates to the Solidity version"
66
},
77
{
8-
"answer": "To store your project's source code in a private Github repository."
8+
"answer": "To ensure compatibility with the contract being tested.",
9+
"correct": true
910
},
1011
{
11-
"answer": "To ensure that certain files not tracked by Git remain untracked",
12-
"correct": true
12+
"answer": "a) and b)"
13+
},
14+
{
15+
"answer": "neither a) nor b)"
1316
}
1417
]
1518
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"question": "What do you think the 'code .' command in your console is going to do? ",
2+
"question": "Which part of the contract do you think will present us with some extra work to do?",
33
"options": [
44
{
5-
"answer": "Create an empty file named ProjectNFT.sol. "
5+
"answer": "Testing the mint() function, because if the network is down, we won't see the tokens on a marketplace"
66
},
77
{
8-
"answer": "Open your code editor",
9-
"correct": true
8+
"answer": "Testing constructor() because it inherits from another contract"
109
},
1110
{
12-
"answer": "Copy the code of your new contract"
11+
"answer": "Testing tokenURI() because the SVG file is in the contract and not in a separate .json file",
12+
"correct": true
1313
},
1414
{
15-
"answer": "Compile your new contract"
15+
"answer": "Testing withdraw() because it involves more than one party for a transaction"
1616
}
1717
]
1818
}

0 commit comments

Comments
 (0)