Which wizard option creates a fragment class and its layout together?

  1. New → Service
  2. New → Fragment → Fragment (Blank)
  3. New → Activity → Basic
  4. New → Module
Answer

B) New → Fragment → Fragment (Blank)

The Fragment (Blank) template creates both the class and the layout.

Computer Science MCQ · More Lab: Bottom Navigation with Fragments MCQs · Practise