Solidity Study Guide 2026

Everything you need to pass the Solidity exam in one place: the exam format, every topic to study, real practice questions with explanations, flashcards, and full-length practice tests. Free, no sign-up needed.

📋 Solidity Exam Format at a Glance

80
Questions
120 min
Time Limit
78.00%
Passing Score

📚 Solidity Topics to Study (21)

✍️ Sample Solidity Questions & Answers

1. Which Solidity type correctly declares a fixed-size byte array of exactly 32 bytes?
bytes32

bytes32 is Solidity's built-in fixed-size byte array type that holds exactly 32 bytes.

2. What is the gas benefit of using `unchecked` arithmetic blocks in Solidity 0.8+?
It skips the automatic overflow/underflow checks, saving ~20 gas per operation

Wrapping arithmetic in `unchecked {}` disables the compiler-inserted overflow checks, saving gas when you have already proven the values cannot overflow.

3. What is a 'price oracle manipulation' attack in DeFi?
Using flash loans or large trades to temporarily distort a price source that a vulnerable contract trusts for liquidations or borrowing

Attackers use large capital (often flash loans) to move prices on a DEX that a protocol uses as an oracle, triggering profitable liquidations or under-collateralized borrows.

4. What's an example of a calldata?
Memory location that sits in the memory of the EVM

Calldata is a special data location in Solidity used for function arguments of external calls. It is a read-only, non-modifiable area that exists only for the duration of a function call. This data resides in the EVM's memory space, providing an efficient way to pass arguments without modifying persistent storage.

5. What vulnerability arises when Solidity arithmetic operations exceed the maximum or minimum value of the data type?
Integer overflow/underflow

Integer overflow/underflow occurs when arithmetic results exceed the bounds of the integer type, wrapping around to unexpected values.

6. What is the Factory pattern in Solidity and what problem does it solve?
A contract that deploys other contracts programmatically, enabling on-chain contract creation with tracked addresses

The Factory pattern lets a single contract deploy and register many instances of another contract, enabling on-chain tracking of all deployed children.

🎯 Free Solidity Practice Tests

📖 Solidity Guides & Articles

Your Solidity Study Path
1. Learn with Flashcards → 2. Drill Practice Tests → 3. Take the Full Exam Simulation