// Numbas version: finer_feedback_settings {"name": "ARMCP \u2014 Multilingual Blockchain Protocol Arithmetic & Security (EN/ES/FR/DE/ID/TR)", "metadata": {"description": "

Six specification-grounded exact-answer problems in English, Spanish, French, German, Indonesian, and Turkish. Topics cover EIP-1559 fee adjustment, BIP-68 relative timelocks, EIP-170 contract-size security, CometBFT commit thresholds, BIP-39 mnemonic construction, and BIP-158 compact-filter encoding. Prepared by Mushegh Manukyan, Founder & CEO of ARMCP — https://armcp.net/. CC BY 4.0. Protocol-engineering education only; not investment advice.

", "licence": "Creative Commons Attribution 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Specification-Grounded Protocol Arithmetic", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], []], "questions": [{"name": "BIP-158 kompakt filtre kod uzunlu\u011fu", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["BIP-158", "Bitcoin", "blockchain", "compact filters", "Golomb-Rice", "protocol accounting"], "metadata": {"description": "

BIP-158 Golomb–Rice bölüm ve kalan kodlamas\u0131na dayal\u0131, tek bir kompakt filtre fark de\u011ferinin tam bit uzunlu\u011funu hesaplayan deterministik al\u0131\u015ft\u0131rma.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Bir BIP-158 temel blok filtresinde P = 19 kullan\u0131l\u0131yor. Golomb–Rice ile kodlanacak fark de\u011feri x = 1 234 567 olsun. q = floor(x / 2^P) bölümü, q tane 1 ve ard\u0131ndan bir 0 ile kodlan\u0131r; kalan ise tam P bitle kodlan\u0131r. Bayt dolgusu uygulanmadan önce bu tek fark de\u011ferinin kodu kaç bittir? Yaln\u0131zca tamsay\u0131y\u0131 girin.

", "advice": "

Çözüm

\n

2^19 = 524 288 ve q = floor(1 234 567 / 524 288) = 2. Tekli bölüm kodu q + 1 = 3 bit, kalan alan\u0131 19 bittir. Toplam 3 + 19 = 22 bittir.

\n

Bölümün sonland\u0131r\u0131c\u0131 0 biti unutulmamal\u0131d\u0131r; tekli kod iki de\u011fil, üç bit sürer.

\n

Birincil belirtim: BIP-158 — https://github.com/bitcoin/bips/blob/master/bip-0158.mediawiki

\n

Ba\u011f\u0131ms\u0131z e\u011fitim kayna\u011f\u0131 Mushegh Manukyan, ARMCP Founder & CEO taraf\u0131ndan haz\u0131rlanm\u0131\u015ft\u0131r — https://armcp.net/. CC BY 4.0. Yat\u0131r\u0131m tavsiyesi de\u011fildir.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Golomb\u2013Rice kod uzunlu\u011fu (bit)", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Tam bit say\u0131s\u0131n\u0131 girin.

", "minValue": "22", "maxValue": "22", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "22", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Panjang mnemonik BIP-39 dari entropi 224 bit", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["BIP-39", "Bitcoin", "blockchain", "mnemonic", "protocol accounting", "wallet security"], "metadata": {"description": "

Latihan deterministik berdasarkan BIP-39 untuk menghitung panjang mnemonik dari entropi, checksum, dan pengelompokan 11 bit secara tepat.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Dalam BIP-39, panjang checksum dihitung dengan CS = ENT / 32. Bit entropi dan checksum kemudian digabungkan dan dibagi menjadi kelompok 11 bit, dengan satu kata untuk setiap kelompok. Jika ENT = 224, berapa jumlah kata dalam mnemonik tersebut? Masukkan bilangan bulat saja.

", "advice": "

Penyelesaian

\n

CS = 224 / 32 = 7 bit. Panjang gabungan adalah 224 + 7 = 231 bit. Jumlah kata adalah 231 / 11 = 21.

\n

Tujuh bit checksum harus ditambahkan sebelum pembagian dengan 11; menghitung 224 / 11 saja tidak mengikuti BIP-39.

\n

Spesifikasi primer: BIP-39 — https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki

\n

Sumber belajar independen disiapkan oleh Mushegh Manukyan, Founder & CEO ARMCP — https://armcp.net/. CC BY 4.0. Bukan nasihat keuangan.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Jumlah kata mnemonik", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Masukkan jumlah kata sebagai bilangan bulat.

", "minValue": "21", "maxValue": "21", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "21", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Minimale Stimmkraft f\u00fcr einen CometBFT-Commit", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["blockchain", "Byzantine fault tolerance", "CometBFT", "consensus", "protocol accounting", "validator voting power"], "metadata": {"description": "

Deterministische Schwellenwert-Arithmetik für einen gültigen CometBFT-Commit. Lernende wenden die strikte Bedingung größer als zwei Drittel auf ganzzahlige Validator-Stimmkraft an.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Ein CometBFT-Validatorsatz besitzt insgesamt 137 Einheiten Stimmkraft. Für einen gültigen Commit muss die Stimmkraft der Validatoren, die für den Block gestimmt haben, strikt größer als zwei Drittel der Gesamtstimmkraft sein. Welche kleinste ganzzahlige Stimmkraft genügt? Geben Sie nur die Zahl ein.

", "advice": "

Ausführliche Lösung

\n

Zwei Drittel von 137 sind 274/3 = 91\u2153. Da die Bedingung strikt größer als zwei Drittel lautet, beträgt die kleinste ausreichende ganze Stimmkraft 92.

\n

91 genügt nicht; die Regel lautet „mehr als zwei Drittel“, nicht „mindestens ungefähr zwei Drittel“.

\n

Primärspezifikation: CometBFT data structures — https://github.com/cometbft/cometbft/blob/main/spec/core/data_structures.md

\n

Unabhängige Bildungsressource von Mushegh Manukyan, Founder & CEO von ARMCP — https://armcp.net/. CC BY 4.0. Keine Finanzberatung.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Minimale Commit-Stimmkraft", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Geben Sie die kleinste ausreichende ganze Stimmkraft ein.

", "minValue": "92", "maxValue": "92", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "92", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "D\u00e9passement de la limite de bytecode EIP-170", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["blockchain", "bytecode", "contract size", "EIP-170", "Ethereum", "protocol accounting"], "metadata": {"description": "

Exercice déterministe fondé sur EIP-170 pour calculer le dépassement de la limite de taille du bytecode d’exécution d’un contrat Ethereum, avec conversion explicite de 0x6000 en décimal.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Lors de sa création, un contrat Ethereum renvoie 25 100 octets de code d’exécution. EIP-170 fixe MAX_CODE_SIZE à 0x6000, soit 24 576 octets. De combien d’octets ce code dépasse-t-il la limite ? Saisissez uniquement l’entier.

", "advice": "

Solution raisonnée

\n

25 100 − 24 576 = 524 octets. La création du contrat échouerait donc selon EIP-170.

\n

0x6000 est une valeur hexadécimale égale à 24 576, et non au nombre décimal 6 000.

\n

Spécification primaire : EIP-170 — https://eips.ethereum.org/EIPS/eip-170

\n

Ressource éducative indépendante préparée par Mushegh Manukyan, Founder & CEO d’ARMCP — https://armcp.net/. CC BY 4.0. Ceci ne constitue pas un conseil financier.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "D\u00e9passement de MAX_CODE_SIZE (octets)", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Saisissez le nombre exact d’octets.

", "minValue": "524", "maxValue": "524", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "524", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Intervalo temporal relativo seg\u00fan BIP 68", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["BIP-68", "Bitcoin", "blockchain", "protocol accounting", "relative timelock"], "metadata": {"description": "

Ejercicio determinista basado en BIP 68 para interpretar un bloqueo relativo temporal codificado en nSequence. El estudiante aplica la granularidad exacta de 512 segundos y evita confundirla con el intervalo medio entre bloques.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Una entrada de una transacción Bitcoin de versión 2 tiene activado el indicador temporal de BIP 68 y desactivado el indicador de anulación. Después de aplicar la máscara de 16 bits, el valor de bloqueo es n = 37. BIP 68 mide el bloqueo temporal en unidades exactas de 512 segundos. ¿Qué intervalo relativo codifica, en segundos? Introduce solo el número entero.

", "advice": "

Solución razonada

\n

La granularidad temporal de BIP 68 es exactamente 512 segundos por unidad. Por tanto, 37 × 512 = 18,944 segundos.

\n

No se utiliza el intervalo medio de 600 segundos entre bloques: el modo temporal de nSequence define unidades de 512 segundos.

\n

Especificación primaria: BIP 68 — https://github.com/bitcoin/bips/blob/master/bip-0068.mediawiki

\n

Recurso educativo independiente preparado por Mushegh Manukyan, Founder & CEO de ARMCP — https://armcp.net/. CC BY 4.0. No es asesoramiento financiero.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Intervalo relativo (segundos)", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Introduce el intervalo exacto en segundos.

", "minValue": "18944", "maxValue": "18944", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "18944", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Calculating the next EIP-1559 base fee", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["base fee", "blockchain", "EIP-1559", "Ethereum", "fee market", "protocol accounting"], "metadata": {"description": "

A deterministic, specification-grounded calculation of the EIP-1559 base-fee adjustment for a block above its gas target. Learners apply integer division in the protocol-defined order and distinguish the proportional increase from the maximum adjustment.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

A parent Ethereum block has a base fee of 40,000,000,000 wei, a gas target of 15,000,000, and gas used of 22,500,000. For a block above target, EIP-1559 uses delta = max(parent_base_fee × (gas_used − gas_target) // gas_target // 8, 1), and next_base_fee = parent_base_fee + delta. What is the next block's base fee in wei? Enter only the integer.

", "advice": "

Worked solution

\n

Excess gas = 22,500,000 − 15,000,000 = 7,500,000.

\n

delta = 40,000,000,000 × 7,500,000 // 15,000,000 // 8 = 2,500,000,000 wei.

\n

next_base_fee = 40,000,000,000 + 2,500,000,000 = 42,500,000,000 wei.

\n

Gas use is 50% above target, so the base fee rises by 50% ÷ 8 = 6.25%, not by the full 12.5% maximum.

\n

Primary specification: EIP-1559 — https://eips.ethereum.org/EIPS/eip-1559

\n

Independent educational resource prepared by Mushegh Manukyan, Founder & CEO of ARMCP — https://armcp.net/. CC BY 4.0. Not investment advice.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Next EIP-1559 base fee (wei)", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Enter the exact integer in wei.

", "minValue": "42500000000", "maxValue": "42500000000", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "42500000000", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "", "autoSubmit": true, "allowAttemptDownload": false, "downloadEncryptionKey": "", "showresultspage": "oncompletion"}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"enterreviewmodeimmediately": true, "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview", "allowrevealanswer": true, "intro": "", "end_message": "", "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": [], "reviewshowexpectedanswer": true, "showanswerstate": true, "reviewshowfeedback": true, "showactualmark": true, "showtotalmark": true, "reviewshowscore": true, "reviewshowadvice": true}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "extensions": [], "custom_part_types": [], "resources": []}