MCQs / Computer Science / Course Project: Build a Modern Cloud App Step by Step

Course Project: Build a Modern Cloud App Step by Step MCQs — Computer Science (page 3)

52 multiple-choice questions on Course Project: Build a Modern Cloud App Step by Step from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.

51. SplashScreen.installSplashScreen(this) must be called:

  1. In onDestroy()
  2. Before super.onCreate() in the launcher activity
  3. After setContentView in every activity
  4. Inside a fragment

Answer: B) Before super.onCreate() in the launcher activity

Explanation: The Splash Screen API is installed first in onCreate.

Discuss this question

52. Why do Repository methods take a Result callback instead of returning the data?

  1. Because Java forbids return values
  2. To save battery by skipping them
  3. To run them twice
  4. The work may take time; the answer arrives later on the main thread without blocking the UI

Answer: D) The work may take time; the answer arrives later on the main thread without blocking the UI

Explanation: Callbacks keep the main thread free while data loads.

Discuss this question

Previous Page 3 of 3

Practise Course Project: Build a Modern Cloud App Step by Step MCQs

More Computer Science chapters