InterviewPitch

Land the job you want — prepare
with Real interviews Q&A

Curated interview questions, company-wise guides and coding rounds. Practice mock interviews, improve with feedback, and track your progress.

Q&A
Top curated interview packs
Company-wise & role-wise packs, quality assured.
Mock interview
AI scoring
Coding rounds
Top 10 sets
Beginner
1. What is Solidity?
Solidity is an object-oriented programming language used to write smart contracts on the Ethereum blockchain.
Beginner
2. What is a smart contract?
A smart contract is a self-executing program stored on the blockchain that runs when predefined conditions are met.
Beginner
3. What is Ethereum?
Ethereum is a decentralized blockchain platform that supports smart contracts and decentralized applications (dApps).
Beginner
4. What is a contract in Solidity?
A contract is similar to a className in OOP. It contains state variables and functions.
Beginner
5. What are state variables?
Variables stored permanently on the blockchain.
Beginner
6. What are local variables?
Variables declared inside functions and stored temporarily in memory.
Beginner
7. What is pragma in Solidity?
It specifies the compiler version to be used.pragma solidity ^0.8.0;
Beginner
8. What are visibility specifiers?
public, private, internal, external.
Beginner
9. What is msg.sender?
It returns the address of the account that called the function.
Beginner
10. What is msg.value?
Amount of Ether (in wei) sent with a transaction.
Beginner
11. What is require()?
Used for input validation and error handling.
Beginner
12. What is assert()?
Used to check internal errors and invariants.
Beginner
13. What is revert()?
Stops execution and reverts state changes.
Beginner
14. What is uint?
Unsigned integer data type.
Beginner
15. What is address type?
Stores Ethereum addresses (20 bytes).
Intermediate
16. What is mapping?
A key-value data structure.Answer Here
Intermediate
17. What is an event?
Logs information to the blockchain for frontend listening.
Intermediate
18. What is modifier?
Used to modify function behavior.Answer Here
Intermediate
19. What is constructor?
Special function executed once during contract deployment.
Intermediate
20. What is fallback function?
Executes when contract receives Ether without matching function.
Intermediate
21. What is receive()?
Special function to receive plain Ether transfers.
Intermediate
22. What is inheritance?
A contract can inherit properties from another contract using "is".
Intermediate
23. What is interface?
Defines function declarations without implementation.
Intermediate
24. What is library?
Reusable code deployed once and shared across contracts.
Intermediate
25. What is gas?
Fee required to execute operations on Ethereum.
Intermediate
26. What is gas limit?
Maximum gas a transaction can consume.
Intermediate
27. What is payable?
Allows a function to receive Ether.
Intermediate
28. What is view function?
Reads blockchain data without modifying state.
Intermediate
29. What is pure function?
Does not read or modify blockchain state.
Intermediate
30. What is ABI?
Application Binary Interface used to interact with smart contracts.
Advanced
31. What is reentrancy attack?
A vulnerability where a contract calls back into itself before state update.
Advanced
32. How to prevent reentrancy?
Use Checks-Effects-Interactions pattern or ReentrancyGuard.
Advanced
33. What is delegatecall?
Executes code of another contract in caller’s context.
Advanced
34. What is upgradeable contract?
Contract design allowing logic updates using proxy pattern.
Advanced
35. What is proxy pattern?
Separates storage and logic contracts for upgradeability.
Advanced
36. What is ERC-20?
Standard interface for fungible tokens.
Advanced
37. What is ERC-721?
Standard interface for NFTs (non-fungible tokens).
Advanced
38. What is ERC-1155?
Multi-token standard supporting fungible and non-fungible tokens.
Advanced
39. What is block.timestamp?
Returns the current block time.
Advanced
40. What is block.number?
Returns current block number.
Coding Round
41. Simple storage contract
Answer Here
Coding Round
42. Only owner modifier
Answer Here
Coding Round
43. Transfer Ether
payable(recipient).transfer(amount);
Coding Round
44. Mapping example
Answer Here
Coding Round
45. Emit event
emit Transfer(msg.sender, to, amount);
Coding Round
46. Require example
Answer Here
Coding Round
47. Constructor example
Answer Here
Coding Round
48. Fallback function
fallback() external payable
Coding Round
49. Receive function
receive() external payable
Coding Round
50. Simple ERC20 transfer logic
Answer Here