Which method is used to add a Fragment to an Activity at runtime?
Correct Answer: D — beginTransaction().add()
Explanation:
The beginTransaction().add() method is used to dynamically add a Fragment to an Activity during runtime. The operation is then completed using commit().