Question: What is the execution order of init blocks and properties during initialization?

  1. All of the properties are executed in order of appearance, and then the init blocks are executed.
  2. The init blocks and properties are executed in the same order they appear in the code.
  3. All of the init blocks are executed in order of appearance, and then the properties are executed.
  4. The order of execution is not guaranteed, so code should be written accordingly.

Answer: The correct answer of the above question is Option B:The init blocks and properties are executed in the same order they appear in the code.