PL-100 · Question #109
Case Study 1 - Wide World Importers Background Overview Wide World Importers is an importer and supplier of fair trade, handmade home goods to independent retailers in North America. The company has…
The correct answer is C. Determine whether the application is offline when a user selects the submit button and call the. The correct approach is to check whether the application is offline at the moment the user taps the submit button, then call the appropriate function (such as SaveData()) to cache the data locally for later submission. Checking connectivity at submit time ensures the most…
Question
Options
- ADetermine whether the application is offline when a user selects submit button and call the Set()
- BDetermine whether the application is offline when the app loads. Use the SaveData() function in
- CDetermine whether the application is offline when a user selects the submit button and call the
- DDetermine whether the application is offline when the app loads. Use the LoadData() function in
How the community answered
(63 responses)- A5% (3)
- B14% (9)
- C73% (46)
- D8% (5)
Explanation
The correct approach is to check whether the application is offline at the moment the user taps the submit button, then call the appropriate function (such as SaveData()) to cache the data locally for later submission. Checking connectivity at submit time ensures the most current network state is evaluated before acting. Option A is partially correct in timing but references Set(), which is a general variable function, not an offline-handling function. Option B checks at app load time, which is too early - the network state may change between launch and submission. Option D uses LoadData(), which retrieves previously saved local data rather than saving new data for deferred submission.
Topics
Community Discussion
No community discussion yet for this question.