WorksheetsAndroid Final Exam Review
Total questions: 15
Worksheet time: 8mins
Which Android Lifecycle method is recommended to set state in?
onStop()
onStart()
onResume()
onPause()
Which action does not require a permission set in the AndroidManifest.xml file?
SMS
Alarm
Phone
Which of these statements is NOT true about Shared Preferences?
Works using Key - Value pairs
The data will not persist across user sessions
Works on primitive data types
Preferences must be modified using an Editor object
This method is where you do all of your set up: creating views, etc.
onPause()
onStart()
onCreate()
onResume()
The layer of the Android System Architecture is responsible for management of memory, power, devices, etc.
Linux Kernel
Native Libraries
Android Runtime
Application Framework
You should always input your strings in your strings table because (pick most correct answer)
It's easier and I'm lazy
To reduce spelling errors throughout app
Easier to translate your app to another language
Easier initialization of string variables
A _______ is the user interface screen of your application. An application can have zero or more of these.
Intent
Bundle
Activity
Fragment
What folder do you create to place your database in?
drawable
res
assets
values
Where can your shared preferences be located in your Device File Explorer?
data\data\packagename\shared_prefs
data\data\shared_prefs
data\username\data\shared_prefs
data\shared_prefs
This type of intent does not specify what app component should perform the action
PendingIntent
ImplicitIntent
ExplicitIntent
ActionIntent
These classes allow you to write to a file
FileOutputStream and OutputStreamWriter
FileOutput and OutputStream
FileInputStream and InputStreamReader
InputStream and OutputStream
This layer in the Android System Architecture is responsible for the Webkit library
Native Libraries
Android Runtime
Linux Kernel
Application Framework
This object defines each individual element in a RecyclerView, but does not have data associated with it
View
ViewHolder
ViewItem
ItemView
The RecyclerView binds the data in this adapter method
onCreateViewHolder()
onBindViewHolder()
getItemCount()
onCreateRecyclerView()
the loadAd() method belongs to the ______ class
AdRequest
BannerAd
AdView
BannerRequest
