[ { "id": 1, "question": "What is horizontal scaling?", "options": { "A": "Adding more CPU and RAM to a single machine", "B": "Replacing hardware with faster SSDs", "C": "Adding more machines to improve performance", "D": "Upgrading the operating system" } }, { "id": 2, "question": "Which statement about distributed vs decentralized systems is correct?", "options": { "A": "Every distributed system is decentralized", "B": "A decentralized system must be distributed", "C": "A distributed system must have no central authority", "D": "They are identical concepts" } }, { "id": 3, "question": "In a CP (Consistency + Partition tolerance) system, what happens during a network partition?", "options": { "A": "The system sacrifices Consistency to stay online", "B": "The system ignores the partition and continues normally", "C": "The system shuts down entirely", "D": "The system sacrifices Availability to ensure data accuracy" } }, { "id": 4, "question": "If gas runs out during the execution of a transaction:", "options": { "A": "Execution stops and state changes from the current call revert", "B": "Only part of the smart contract storage updates", "C": "Changes to state are partially applied", "D": "Transaction becomes free" } }, { "id": 5, "question": "A mnemonic (seed phrase) allows a user to:", "options": { "A": "Mine faster", "B": "Recover private keys", "C": "Increase gas fees", "D": "Modify blockchain rules" } }, { "id": 6, "question": "What is the role of the constructor() in a Solidity contract?", "options": { "A": "It is called every time a function is executed", "B": "It is used to delete the contract from the blockchain", "C": "Its code is run only once when the contract is created", "D": "It is used to calculate the gas price of the contract" } }, { "id": 7, "question": "If someone has your private key, they:", "options": { "A": "Can view your transactions only", "B": "Cannot do anything without your password", "C": "Have total control over your funds", "D": "Cannot do anything without the mnemonics" } }, { "id": 8, "question": "How does Raft differ from basic Paxos in its approach to reaching consensus?", "options": { "A": "Raft was designed to work via a single elected leader", "B": "Raft is used for strong consistency, while Paxos is for eventual consistency", "C": "Raft does not require a majority of nodes to agree", "D": "Raft is mathematically impossible to implement" } }, { "id": 9, "question": "What is the main difference between props and state in React?", "options": { "A": "Props are internal to a component; state is passed from parents", "B": "Props are handled by the browser; state is handled by the server", "C": "Props are passed from above; state is managed within the component", "D": "Props are only for strings; state is only for numbers" } }, { "id": 10, "question": "Why should you use className instead of class in JSX?", "options": { "A": "class is a reserved word in JavaScript", "B": "className is faster to process", "C": "className allows for more CSS features", "D": "class only works with class-based components" } }, { "id": 11, "question": "Which of the following is a rule of React hooks?", "options": { "A": "Hooks must be called inside loops", "B": "Hooks should only be called at the top level of a component", "C": "Hooks can be used inside regular JavaScript functions", "D": "Hooks must always be defined inside a try-catch block" } }, { "id": 12, "question": "What is sharding in distributed databases?", "options": { "A": "Data encryption", "B": "Backup process", "C": "Data duplication", "D": "Splitting data across machines" } } ]