Running a Room query on the main (UI) thread by default:

  1. Is recommended
  2. Throws an exception, because database work must be off the main thread
  3. Is faster
  4. Deletes the table
Answer

B) Throws an exception, because database work must be off the main thread

Room blocks main-thread access to keep the UI responsive.

Computer Science MCQ · More UI Events, Views, Preferences and Data Storage MCQs · Practise