Docsity

BCA Certified Solidity Smart Contract Developer (EVM) Certification Exam, Exams of Technology

Partial preview of the text

Download BCA Certified Solidity Smart Contract Developer (EVM) Certification Exam and more Exams Technology in PDF only on Docsity!

BCA Certified Solidity Smart

Contract Developer (EVM)

Certification Exam

Question 1

Which example belongs with “Transaction Lifecycle”, alongside “signing”?

A. storage layout B. bytecode execution C. Transaction ordering dependencies D. Creation Correct Answer: D

Full Explanation: Transaction Lifecycle includes Creation, signing, broadcasting, mining/validation, state updates on the EVM.

Question 2

The activities “Storage Packing: How variables are packed into 32-byte storage slots, layout rules for dynamic arrays and mappings” and “Math usage versus built-in checks in modern Solidity versions” need separate classifications. Which ordered assignment accurately classifies both?

A. First: EVM Storage Layout and Gas Optimization; second: Smart Contract Security and Common Vulnerabilities B. First: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); second: Smart Contract Security and Common Vulnerabilities C. First: EVM Storage Layout and Gas Optimization; second: Introduction to Blockchain and the Ethereum Virtual Machine (EVM) D. First: Smart Contract Security and Common Vulnerabilities; second: EVM Storage Layout and Gas Optimization Correct Answer: A

Full Explanation: The first task concerns EVM Storage Layout and Gas Optimization: Storage Packing: How variables are packed into 32-byte storage slots, layout rules for dynamic arrays and mappings. The second concerns Smart Contract Security and Common Vulnerabilities: Math usage versus built-in checks in modern Solidity versions. Swapping the areas reverses these task-to-focus relationships.

Question 3

Complete this set of examples of “Functions and Modifiers”: Function visibility (public, private, internal, external), view and pure functions, function modifiers, and which other item?

A. public B. Missing modifiers C. fallback/receive functions D. cryptographic functions Correct Answer: C

Full Explanation: Functions and Modifiers includes Function visibility (public, private, internal, external), view and pure functions, function modifiers, fallback/receive functions.

Question 7

When distinguishing “Compilation and Artifacts” from “Control Structures”, “Object-Oriented Programming in Solidity”, which concept-to-description association is accurate?

A. Object-Oriented Programming in Solidity: Using call, delegatecall, staticcall, and managing low-level error returns B. Compilation and Artifacts: Understanding ABIs (Application Binary Interfaces), bytecode generation, and compiler optimizations C. Low-Level Calls: Stack-based architecture, memory model, storage layout, bytecode execution, and the role of opcodes D. Control Structures: Contracts, inheritance (single and multiple), interface implementation, and abstract contracts Correct Answer: B

Full Explanation: Compilation and Artifacts: Understanding ABIs (Application Binary Interfaces), bytecode generation, and compiler optimizations.

Question 8

For the tasks (1) “Fundamentals of Distributed Ledgers: Decentralization, consensus mechanisms (Proof of Work / Proof of Stake), and state transition models”; (2) “Syntax and Structure: Layout of a Solidity source file, pragmas, version control, comments, and import statements”; (3) “Functions and Modifiers: Function visibility (public, private, internal, external), view and pure functions, function modifiers, and fallback/receive functions”; (4) “Memory vs. Storage vs. Calldata: Gas cost implications of choosing different data locations”, which ordered association correctly identifies each task's principal focus?

A. 1: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 2: Advanced Solidity & Contract Architecture; 3: Solidity Programming Language Fundamentals; 4: EVM Storage Layout and Gas Optimization B. 1: Advanced Solidity & Contract Architecture; 2: Solidity Programming Language Fundamentals; 3: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 4: EVM Storage Layout and Gas Optimization C. 1: Solidity Programming Language Fundamentals; 2: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 3: Advanced Solidity & Contract Architecture; 4: EVM Storage Layout and Gas Optimization D. 1: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 2: Solidity Programming Language Fundamentals; 3: Advanced Solidity & Contract Architecture; 4: EVM Storage Layout and Gas Optimization Correct Answer: D

Full Explanation: Activity 1 concerns Introduction to Blockchain and the Ethereum Virtual Machine (EVM): Fundamentals of Distributed Ledgers: Decentralization, consensus mechanisms (Proof of Work / Proof of Stake), and state transition models. Activity 2 concerns Solidity Programming Language Fundamentals: Syntax and Structure: Layout of a Solidity source file, pragmas, version control, comments, and import statements. Activity 3 concerns Advanced Solidity & Contract Architecture: Functions and Modifiers: Function visibility (public, private, internal, external), view and pure functions, function modifiers, and fallback/receive functions. Activity 4 concerns EVM Storage Layout and Gas Optimization: Memory vs. Storage vs. Calldata: Gas cost implications of choosing different data locations.

Question 9

Two parallel reviews address “Gas Optimization Techniques: Short-circuiting, minimizing storage reads/writes, looping optimizations, unchecked math, and layout reordering” and “Compilation and Artifacts: Understanding ABIs (Application Binary Interfaces), bytecode generation, and compiler optimizations”. Which ordered pair identifies the most direct area for each review?

A. First: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); second: Smart Contract Testing, Tooling, and Deployment B. First: EVM Storage Layout and Gas Optimization; second: Introduction to Blockchain and the Ethereum Virtual Machine (EVM) C. First: EVM Storage Layout and Gas Optimization; second: Smart Contract Testing, Tooling, and Deployment D. First: Smart Contract Testing, Tooling, and Deployment; second: EVM Storage Layout and Gas Optimization Correct Answer: C

Full Explanation: The first task concerns EVM Storage Layout and Gas Optimization: Gas Optimization Techniques: Short-circuiting, minimizing storage reads/writes, looping optimizations, unchecked math, and layout reordering. The second concerns Smart Contract Testing, Tooling, and Deployment: Compilation and Artifacts: Understanding ABIs (Application Binary Interfaces), bytecode generation, and compiler optimizations. Swapping the areas reverses these task-to-focus relationships.

Question 10

When distinguishing “Functions and Modifiers” from “Compilation and Artifacts”, “Memory vs. Storage vs. Calldata”, which concept-to-description association is accurate?

A. Functions and Modifiers: Function visibility (public, private, internal, external), view and pure functions, function modifiers, and fallback/receive functions B. Memory vs. Storage vs. Calldata: How variables are packed into 32-byte storage slots, layout rules for dynamic arrays and mappings C. Compilation and Artifacts: Gas cost implications of choosing different data locations D. Storage Packing: Writing unit tests, fuzz testing, invariant testing, and mocking state using JavaScript/TypeScript or native Solidity testing frameworks Correct Answer: A

Full Explanation: Functions and Modifiers: Function visibility (public, private, internal, external), view and pure functions, function modifiers, and fallback/receive functions.

Question 14

Which concept is characterized by “Understanding ABIs (Application Binary Interfaces), bytecode generation, and compiler optimizations”?

A. Testing Methodologies B. Compilation and Artifacts C. Functions and Modifiers D. Gas Optimization Techniques Correct Answer: B

Full Explanation: Compilation and Artifacts: Understanding ABIs (Application Binary Interfaces), bytecode generation, and compiler optimizations.

Question 15

Complete this set of examples of “Low-Level Calls”: Using call, delegatecall, staticcall, and which other item?

A. error handling patterns B. require C. managing private keys securely D. managing low-level error returns Correct Answer: D

Full Explanation: Low-Level Calls includes Using call, delegatecall, staticcall, managing low-level error returns.

Question 16

Which statement correctly distinguishes “EVM Internals” and “Front-Running and MEV (Miner Extractable Value)”?

A. EVM Internals: Stack-based architecture, memory model, storage layout, bytecode execution, and the role of opcodes / Front-Running and MEV (Miner Extractable Value): Transaction ordering dependencies, slippage manipulation, and commit-reveal schemes B. EVM Internals: Transaction ordering dependencies, slippage manipulation, and commit-reveal schemes / Front-Running and MEV (Miner Extractable Value): Stack-based architecture, memory model, storage layout, bytecode execution, and the role of opcodes C. EVM Internals: Single-function and cross-function reentrancy, checks-effects-interactions pattern, and reentrancy guards / Front-Running and MEV (Miner Extractable Value): Transaction ordering dependencies, slippage manipulation, and commit-reveal schemes D. EVM Internals: Stack-based architecture, memory model, storage layout, bytecode execution, and the role of opcodes / Front-Running and MEV (Miner Extractable Value): Single-function and cross-function reentrancy, checks-effects-interactions pattern, and reentrancy guards Correct Answer: A

Full Explanation: EVM Internals: Stack-based architecture, memory model, storage layout, bytecode execution, and the role of opcodes. Front-Running and MEV (Miner Extractable Value): Transaction ordering dependencies, slippage manipulation, and commit-reveal schemes.

Question 17

A task centers on “Decentralization, consensus mechanisms (Proof of Work / Proof of Stake), and state transition models”. Which focus most directly addresses the task?

A. EVM Internals B. Low-Level Calls C. Access Control Flaws D. Fundamentals of Distributed Ledgers Correct Answer: D

Full Explanation: Fundamentals of Distributed Ledgers: Decentralization, consensus mechanisms (Proof of Work / Proof of Stake), and state transition models.

Question 18

A practical task requires “Access Control Flaws: Missing modifiers, unauthorized ownership transfers, and privilege escalation vectors”. Which area is being assessed?

A. Smart Contract Testing, Tooling, and Deployment B. Smart Contract Security and Common Vulnerabilities C. Advanced Solidity & Contract Architecture D. EVM Storage Layout and Gas Optimization Correct Answer: B

Full Explanation: The focus on Smart Contract Security and Common Vulnerabilities includes the following: Access Control Flaws: Missing modifiers, unauthorized ownership transfers, and privilege escalation vectors.

Question 19

Which description correctly characterizes the scope of “Storage Packing”?

A. Layout of a Solidity source file, pragmas, version control, comments, and import statements B. Transaction ordering dependencies, slippage manipulation, and commit-reveal schemes C. How variables are packed into 32-byte storage slots, layout rules for dynamic arrays and mappings D. Gas cost implications of choosing different data locations Correct Answer: C

Full Explanation: Storage Packing: How variables are packed into 32-byte storage slots, layout rules for dynamic arrays and mappings.

Question 22

The following tasks belong in different areas: (1) “EVM Internals: Stack-based architecture, memory model, storage layout, bytecode execution, and the role of opcodes”; (2) “Advanced Features: Events and logging, error handling patterns, cryptographic functions, and mathematical operations”; (3) “Integer Overflows/Underflows: Safe”. Which complete mapping avoids reversing the assignments?

A. 1: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 2: Advanced Solidity & Contract Architecture; 3: Smart Contract Security and Common Vulnerabilities B. 1: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 2: Smart Contract Security and Common Vulnerabilities; 3: Advanced Solidity & Contract Architecture C. 1: Smart Contract Security and Common Vulnerabilities; 2: Advanced Solidity & Contract Architecture; 3: Introduction to Blockchain and the Ethereum Virtual Machine (EVM) D. 1: Advanced Solidity & Contract Architecture; 2: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 3: Smart Contract Security and Common Vulnerabilities Correct Answer: A

Full Explanation: Activity 1 concerns Introduction to Blockchain and the Ethereum Virtual Machine (EVM): EVM Internals: Stack-based architecture, memory model, storage layout, bytecode execution, and the role of opcodes. Activity 2 concerns Advanced Solidity & Contract Architecture: Advanced Features: Events and logging, error handling patterns, cryptographic functions, and mathematical operations. Activity 3 concerns Smart Contract Security and Common Vulnerabilities: Integer Overflows/Underflows: Safe.

Question 23

Complete this set of examples of “Ethereum Architecture”: transactions, blocks, gas economics, and which other item?

A. Accounts (Externally Owned Accounts vs. Contract Accounts) B. Contract Accounts C. Stack-based architecture D. Externally Owned Accounts Correct Answer: A

Full Explanation: Ethereum Architecture includes Accounts (Externally Owned Accounts vs. Contract Accounts), transactions, blocks, gas economics.

Question 24

Which pair consists entirely of examples of “Advanced Features”, when considering “cryptographic functions” and its related components?

A. invariant testing; abstract contracts B. cryptographic functions; invariant testing C. private; mathematical operations D. cryptographic functions; mathematical operations Correct Answer: D

Full Explanation: Both cryptographic functions and mathematical operations belong within Advanced Features. The complete focus includes Events and logging, error handling patterns, cryptographic functions, mathematical operations.

Question 25

Which pair consists entirely of examples of “Ethereum Architecture”, when considering “transactions” and its related components?

A. Creation; blocks B. booleans; view and pure functions C. transactions; booleans D. transactions; blocks Correct Answer: D

Full Explanation: Both transactions and blocks belong within Ethereum Architecture. The complete focus includes Accounts (Externally Owned Accounts vs. Contract Accounts), transactions, blocks, gas economics.

Question 26

How should the activity “Decentralization, consensus mechanisms (Proof of Work / Proof of Stake), and state transition models” be classified?

A. Access Control Flaws B. Low-Level Calls C. EVM Internals D. Fundamentals of Distributed Ledgers Correct Answer: D

Full Explanation: Fundamentals of Distributed Ledgers: Decentralization, consensus mechanisms (Proof of Work / Proof of Stake), and state transition models.

Question 30

An assessment contains these activities: (1) “Ethereum Architecture: Accounts (Externally Owned Accounts vs. Contract Accounts), transactions, blocks, and gas economics”; (2) “Data Types: Value types (integers, booleans, addresses, enums) and reference types (arrays, structs, mapping)”; (3) “Low-Level Calls: Using call, delegatecall, staticcall, and managing low-level error returns”. Which area assignment keeps all activities correctly aligned?

A. 1: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 2: EVM Storage Layout and Gas Optimization; 3: Solidity Programming Language Fundamentals B. 1: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 2: Solidity Programming Language Fundamentals; 3: EVM Storage Layout and Gas Optimization C. 1: Solidity Programming Language Fundamentals; 2: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 3: EVM Storage Layout and Gas Optimization D. 1: EVM Storage Layout and Gas Optimization; 2: Solidity Programming Language Fundamentals; 3: Introduction to Blockchain and the Ethereum Virtual Machine (EVM) Correct Answer: B

Full Explanation: Activity 1 concerns Introduction to Blockchain and the Ethereum Virtual Machine (EVM): Ethereum Architecture: Accounts (Externally Owned Accounts vs. Contract Accounts), transactions, blocks, and gas economics. Activity 2 concerns Solidity Programming Language Fundamentals: Data Types: Value types (integers, booleans, addresses, enums) and reference types (arrays, structs, mapping). Activity 3 concerns EVM Storage Layout and Gas Optimization: Low-Level Calls: Using call, delegatecall, staticcall, and managing low-level error returns.

Question 31

Which component most directly fits the category “Transaction Lifecycle”, alongside “broadcasting”?

A. storage layout B. Transaction ordering dependencies C. signing D. bytecode execution Correct Answer: C

Full Explanation: Transaction Lifecycle includes Creation, signing, broadcasting, mining/validation, state updates on the EVM.

Question 32

Consider these objectives in order: (1) “Ethereum Architecture: Accounts (Externally Owned Accounts vs. Contract Accounts), transactions, blocks, and gas economics”; (2) “Low-Level Calls: Using call, delegatecall, staticcall, and managing low-level error returns”; (3) “Development Frameworks: Setting up environments using Hardhat, Foundry, and Truffle”. Which sequence of areas corresponds to all of them?

A. 1: EVM Storage Layout and Gas Optimization; 2: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 3: Smart Contract Testing, Tooling, and Deployment B. 1: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 2: Smart Contract Testing, Tooling, and Deployment; 3: EVM Storage Layout and Gas Optimization C. 1: Smart Contract Testing, Tooling, and Deployment; 2: EVM Storage Layout and Gas Optimization; 3: Introduction to Blockchain and the Ethereum Virtual Machine (EVM) D. 1: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 2: EVM Storage Layout and Gas Optimization; 3: Smart Contract Testing, Tooling, and Deployment Correct Answer: D

Full Explanation: Activity 1 concerns Introduction to Blockchain and the Ethereum Virtual Machine (EVM): Ethereum Architecture: Accounts (Externally Owned Accounts vs. Contract Accounts), transactions, blocks, and gas economics. Activity 2 concerns EVM Storage Layout and Gas Optimization: Low-Level Calls: Using call, delegatecall, staticcall, and managing low-level error returns. Activity 3 concerns Smart Contract Testing, Tooling, and Deployment: Development Frameworks: Setting up environments using Hardhat, Foundry, and Truffle.

Question 33

A learner sorts the activities (1) “Ethereum Architecture: Accounts (Externally Owned Accounts vs. Contract Accounts), transactions, blocks, and gas economics”; (2) “Compilation and Artifacts: Understanding ABIs (Application Binary Interfaces), bytecode generation, and compiler optimizations”; (3) “Math usage versus built-in checks in modern Solidity versions”. Which set of labels gives the correct placement for each one?

A. 1: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 2: Smart Contract Testing, Tooling, and Deployment; 3: Smart Contract Security and Common Vulnerabilities B. 1: Smart Contract Security and Common Vulnerabilities; 2: Smart Contract Testing, Tooling, and Deployment; 3: Introduction to Blockchain and the Ethereum Virtual Machine (EVM) C. 1: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 2: Smart Contract Security and Common Vulnerabilities; 3: Smart Contract Testing, Tooling, and Deployment D. 1: Smart Contract Testing, Tooling, and Deployment; 2: Introduction to Blockchain and the Ethereum Virtual Machine (EVM); 3: Smart Contract Security and Common Vulnerabilities Correct Answer: A

Full Explanation: Activity 1 concerns Introduction to Blockchain and the Ethereum Virtual Machine (EVM): Ethereum Architecture: Accounts (Externally Owned Accounts vs. Contract Accounts), transactions, blocks, and gas economics. Activity 2 concerns Smart Contract Testing, Tooling, and Deployment: Compilation and Artifacts: Understanding ABIs (Application Binary Interfaces), bytecode generation, and compiler optimizations. Activity 3 concerns Smart Contract Security and Common Vulnerabilities: Math usage versus built-in checks in modern Solidity versions.

Question 36

When distinguishing “Syntax and Structure” from “Libraries and Using For”, “Transaction Lifecycle”, which concept-to-description association is accurate?

A. Reentrancy Attacks: Transaction ordering dependencies, slippage manipulation, and commit-reveal schemes B. Libraries and Using For: Creation, signing, broadcasting, mining/validation, and state updates on the EVM C. Transaction Lifecycle: Single-function and cross-function reentrancy, checks-effects-interactions pattern, and reentrancy guards D. Syntax and Structure: Layout of a Solidity source file, pragmas, version control, comments, and import statements Correct Answer: D

Full Explanation: Syntax and Structure: Layout of a Solidity source file, pragmas, version control, comments, and import statements.

Question 37

Complete this set of examples of “Deployment Workflows”: Configuring networks, deployment scripts, verifying contracts on block explorers, and which other item?

A. managing private keys securely B. managing low-level error returns C. Function visibility (public, private, internal, external) D. library deployment Correct Answer: A

Full Explanation: Deployment Workflows includes Configuring networks, managing private keys securely, deployment scripts, verifying contracts on block explorers.

Question 38

A proposed plan must distinguish the activity “Development Frameworks: Setting up environments using Hardhat, Foundry, and Truffle” from the activity “Front-Running and MEV (Miner Extractable Value): Transaction ordering dependencies, slippage manipulation, and commit-reveal schemes”. Which matching of areas supports that distinction?

A. First: Smart Contract Testing, Tooling, and Deployment; second: Smart Contract Security and Common Vulnerabilities B. First: Smart Contract Security and Common Vulnerabilities; second: Smart Contract Testing, Tooling, and Deployment C. First: Smart Contract Testing, Tooling, and Deployment; second: Advanced Solidity & Contract Architecture D. First: Advanced Solidity & Contract Architecture; second: Smart Contract Security and Common Vulnerabilities Correct Answer: A

Full Explanation: The first task concerns Smart Contract Testing, Tooling, and Deployment: Development Frameworks: Setting up environments using Hardhat, Foundry, and Truffle. The second concerns Smart Contract Security and Common Vulnerabilities: Front-Running and MEV (Miner Extractable Value): Transaction ordering dependencies, slippage manipulation, and commit-reveal schemes. Swapping the areas reverses these task-to-focus relationships.

Question 39

Which description best matches “Access Control Flaws”?

A. Conditional statements (if/else), loops (for, while, do/while), and error handling (require, revert, assert, custom errors) B. Missing modifiers, unauthorized ownership transfers, and privilege escalation vectors C. Events and logging, error handling patterns, cryptographic functions, and mathematical operations D. Creation, signing, broadcasting, mining/validation, and state updates on the EVM Correct Answer: B

Full Explanation: Access Control Flaws: Missing modifiers, unauthorized ownership transfers, and privilege escalation vectors.

Question 43

A task centers on “Contracts, inheritance (single and multiple), interface implementation, and abstract contracts”. Which focus most directly addresses the task?

A. Object-Oriented Programming in Solidity B. Gas Optimization Techniques C. Memory vs. Storage vs. Calldata D. Low-Level Calls Correct Answer: A

Full Explanation: Object-Oriented Programming in Solidity: Contracts, inheritance (single and multiple), interface implementation, and abstract contracts.

Question 44

Which description best matches “Memory vs. Storage vs. Calldata”?

A. Gas cost implications of choosing different data locations B. Layout of a Solidity source file, pragmas, version control, comments, and import statements C. Missing modifiers, unauthorized ownership transfers, and privilege escalation vectors D. How variables are packed into 32-byte storage slots, layout rules for dynamic arrays and mappings Correct Answer: A

Full Explanation: Memory vs. Storage vs. Calldata: Gas cost implications of choosing different data locations.

Question 45

A task centers on “Single-function and cross-function reentrancy, checks-effects-interactions pattern, and reentrancy guards”. Which focus most directly addresses the task?

A. Reentrancy Attacks B. Transaction Lifecycle C. Advanced Features D. Memory vs. Storage vs. Calldata Correct Answer: A

Full Explanation: Reentrancy Attacks: Single-function and cross-function reentrancy, checks-effects-interactions pattern, and reentrancy guards.

Question 46

Which pair consists entirely of examples of “Syntax and Structure”, when considering “Layout of a Solidity source file” and its related components?

A. layout reordering; pragmas B. Layout of a Solidity source file; looping optimizations C. looping optimizations; structs D. Layout of a Solidity source file; pragmas Correct Answer: D

Full Explanation: Both Layout of a Solidity source file and pragmas belong within Syntax and Structure. The complete focus includes Layout of a Solidity source file, pragmas, version control, comments, import statements.

Question 47

Complete this set of examples of “Reentrancy Attacks”: Single-function and cross-function reentrancy, checks-effects-interactions pattern, and which other item?

A. privilege escalation vectors B. unauthorized ownership transfers C. Missing modifiers D. reentrancy guards Correct Answer: D

Full Explanation: Reentrancy Attacks includes Single-function and cross-function reentrancy, checks-effects-interactions pattern, reentrancy guards.

Question 48

Which statement correctly distinguishes “Control Structures” and “Gas Optimization Techniques”?

A. Control Structures: Conditional statements (if/else), loops (for, while, do/while), and error handling (require, revert, assert, custom errors) / Gas Optimization Techniques: Short-circuiting, minimizing storage reads/writes, looping optimizations, unchecked math, and layout reordering B. Control Structures: Missing modifiers, unauthorized ownership transfers, and privilege escalation vectors / Gas Optimization Techniques: Short-circuiting, minimizing storage reads/writes, looping optimizations, unchecked math, and layout reordering C. Control Structures: Short-circuiting, minimizing storage reads/writes, looping optimizations, unchecked math, and layout reordering / Gas Optimization Techniques: Conditional statements (if/else), loops (for, while, do/while), and error handling (require, revert, assert, custom errors) D. Control Structures: Conditional statements (if/else), loops (for, while, do/while), and error handling (require, revert, assert, custom errors) / Gas Optimization Techniques: Missing modifiers, unauthorized ownership transfers, and privilege escalation vectors Correct Answer: A

Full Explanation: Control Structures: Conditional statements (if/else), loops (for, while, do/while), and error handling (require, revert, assert, custom errors). Gas Optimization Techniques: Short-circuiting, minimizing storage reads/writes, looping optimizations, unchecked math, and layout reordering.