Question: When placed in a valid execution context, which statement will dynamically allocate memory from the heap for an integer of value 11?

  1. `int anInt = new int(11);`
  2. `int* anInt = new int[11];`
  3. `int anInt = new int[11];`
  4. `int* anInt = new int(11);`

Answer: The correct answer of the above question is Option D:`int* anInt = new int(11);`