You are taking quiz solidityquiz.com/q/qmp8d. After 0 of 10 questions, you have 0.00 points.

Question #1 Difficulty: 1

According to the Solidity 0.8.17 compiler (200 optimization runs)

    // How many storage slots would this struct use as a state variable

struct S {
  address a;
  bool b;
  uint64 u1;
  uint64 u2;
}

Hint:

An address is 20 bytes, and storage slots are 32 bytes long and allow packing in structs used for storage!

Answer:

Mode : Quiz

If you want to quit the current quiz and go back to training mode, click here.