|
2 | 2 | "title": "Quiz: Lesson 4",
|
3 | 3 | "questions": [
|
4 | 4 | {
|
5 |
| - "question": "Where do the values for event parameters get stored?", |
| 5 | + "question": "Which testing approach is recommended for ensuring a secure smart contract?", |
6 | 6 | "options": [
|
7 | 7 | {
|
8 |
| - "answer": "In the block data" |
| 8 | + "answer": "Only manual testing with thorough code review." |
9 | 9 | },
|
10 | 10 | {
|
11 |
| - "answer": "In transaction logs", |
| 11 | + "answer": "Automated testing using unit tests exclusively." |
| 12 | + }, |
| 13 | + { |
| 14 | + "answer": "A combination of manual testing, automated testing, and code auditing.", |
12 | 15 | "correct": true
|
13 | 16 | },
|
14 | 17 | {
|
15 |
| - "answer": "They are not stored" |
| 18 | + "answer": "Skipping testing to expedite the deployment process." |
16 | 19 | }
|
17 | 20 | ]
|
18 | 21 | },
|
19 | 22 | {
|
20 |
| - "question": "Which of these properties does Ethereum have?", |
| 23 | + "question": "What can automated testing of smart contracts help achieve?", |
21 | 24 | "options": [
|
22 | 25 | {
|
23 |
| - "answer": "Permissioned" |
| 26 | + "answer": "Faster development and deployment process." |
| 27 | + }, |
| 28 | + { |
| 29 | + "answer": "Finding every possible bug and vulnerability." |
| 30 | + }, |
| 31 | + { |
| 32 | + "answer": "Improving the overall code quality.", |
| 33 | + "correct": true |
24 | 34 | },
|
25 | 35 | {
|
26 |
| - "answer": "Trustless", |
| 36 | + "answer": "Ensuring the smart contract is free of errors.", |
27 | 37 | "correct": true
|
| 38 | + } |
| 39 | + ] |
| 40 | + }, |
| 41 | + { |
| 42 | + "question": "Which best describes 'gas' in the context of smart contracts?", |
| 43 | + "options": [ |
| 44 | + { |
| 45 | + "answer": "The cost of deploying a smart contract on the blockchain." |
| 46 | + }, |
| 47 | + { |
| 48 | + "answer": "The unit of currency used in smart contract transactions." |
28 | 49 | },
|
29 | 50 | {
|
30 |
| - "answer": "Decentralized", |
| 51 | + "answer": "A measure of the computational effort required to execute a transaction or contract.", |
31 | 52 | "correct": true
|
| 53 | + }, |
| 54 | + { |
| 55 | + "answer": "The reward given to validators for running a validator node." |
32 | 56 | }
|
33 | 57 | ]
|
34 | 58 | },
|
35 | 59 | {
|
36 |
| - "question": "What can we use a smart contract for?", |
| 60 | + "question": "What are some potential risks of deploying a smart contract without proper testing?", |
37 | 61 | "options": [
|
38 | 62 | {
|
39 |
| - "answer": "Storing or transfering value without the need of a central authority", |
| 63 | + "answer": "Loss of funds", |
| 64 | + "correct": true |
| 65 | + }, |
| 66 | + { |
| 67 | + "answer": "Security vulnerabilities", |
40 | 68 | "correct": true
|
41 | 69 | },
|
42 | 70 | {
|
43 |
| - "answer": "Making breakfast" |
| 71 | + "answer": "Lengthy deployment process" |
44 | 72 | },
|
45 | 73 | {
|
46 |
| - "answer": "Sending untraceable transactions" |
| 74 | + "answer": "Inefficient gas usage" |
47 | 75 | }
|
48 | 76 | ]
|
49 | 77 | }
|
|
0 commit comments