SER 423 Midterm Questions with verified answers
Android uses java as its native language, and iOS uses Objective-C. Ans✓✓✓
False, Android uses Java and iOS now uses Swift.
Consider the following situation:
The User can log in and keep their progress across multiple devices.
Which type of storage should you use and why? Ans✓✓✓ Remote - each device
can upload and download the most recent progress
Consider the following situation:
The User changes the default brightness level in an app that has no log in feature.
T/F: This should use local storage. Ans✓✓✓ True
T/F: A key difference between ScrollView and FlatList is that FlatList renders all
items in the list at once, even those that are not showing. Ans✓✓✓ False,
ScrollView renders all items at once and FlatList only renders items being
displayed.
T/F: A style will be inherited by all children components. Ans✓✓✓ True
T/F: A synchronous action executes on the main thread. Ans✓✓✓ True
, T/F: An asynchronous action is one that the app will pause and wait for it to
complete before continuing. Ans✓✓✓ False
T/F: Android and iOS use the same terminology for the states of the life cycle of
views. Ans✓✓✓ False
Android: onCreate(), onStart(), onResume(), onPause(), onStop(), onRestart(),
onDestroy()
iOS: viewWill(Dis)appear, viewDid(Dis)appear, Appearing, Appeared,
Disappearing, Disappeared
T/F: Consider fetching airline flight times from Google.
This is a remote API call. Ans✓✓✓ True
T/F: Consider loading an image the user took on their device.
This is a remote API call. Ans✓✓✓ False
T/F: Consider running a function that will determine the orientation of the device.
This is a good action to make asynchronous. Ans✓✓✓ False, we don't want to
continue without knowing the orientation.
T/F: Consider running a function that will fetch a list of high and low tide times
from a remote server.
Android uses java as its native language, and iOS uses Objective-C. Ans✓✓✓
False, Android uses Java and iOS now uses Swift.
Consider the following situation:
The User can log in and keep their progress across multiple devices.
Which type of storage should you use and why? Ans✓✓✓ Remote - each device
can upload and download the most recent progress
Consider the following situation:
The User changes the default brightness level in an app that has no log in feature.
T/F: This should use local storage. Ans✓✓✓ True
T/F: A key difference between ScrollView and FlatList is that FlatList renders all
items in the list at once, even those that are not showing. Ans✓✓✓ False,
ScrollView renders all items at once and FlatList only renders items being
displayed.
T/F: A style will be inherited by all children components. Ans✓✓✓ True
T/F: A synchronous action executes on the main thread. Ans✓✓✓ True
, T/F: An asynchronous action is one that the app will pause and wait for it to
complete before continuing. Ans✓✓✓ False
T/F: Android and iOS use the same terminology for the states of the life cycle of
views. Ans✓✓✓ False
Android: onCreate(), onStart(), onResume(), onPause(), onStop(), onRestart(),
onDestroy()
iOS: viewWill(Dis)appear, viewDid(Dis)appear, Appearing, Appeared,
Disappearing, Disappeared
T/F: Consider fetching airline flight times from Google.
This is a remote API call. Ans✓✓✓ True
T/F: Consider loading an image the user took on their device.
This is a remote API call. Ans✓✓✓ False
T/F: Consider running a function that will determine the orientation of the device.
This is a good action to make asynchronous. Ans✓✓✓ False, we don't want to
continue without knowing the orientation.
T/F: Consider running a function that will fetch a list of high and low tide times
from a remote server.