Deck 11: Discover Persistent Data

Full screen (f)
exit full mode
Question
One of the most effective ways to save simple application data to an Android device is by using the SharedPreferences ____.

A) emulator
B) object
C) map
D) function
Use Space or
up arrow
down arrow
to flip the card.
Question
If you have a large amount of data to store as persistent data, a(n) ____ is the perfect choice.

A) database
B) list
C) array
D) frame
Question
The persistent data structure is available in some form in every programming language. 
Question
SharedPreferences are best when your app needs to save large chunks of data.
Question
SQL is short for ____.

A) Simple Quorum Language
B) Structured Query List
C) Structured Query Language
D) Structured Quorum List
Question
All applications on a device can access any files created by an app when they are saved with the internal storage method.
Question
Internal data stores  ____ data in key-value pairs.

A) cell phone
B) abstract
C) temporary
D) private
Question
All applications can read and write files placed on external storage.
Question
The SharedPreferences class stores private data as single values.
Question
The SharedPreferences class provides one of the easiest ways to save and load ____ data.

A) encrypted
B) dynamic
C) object
D) primitive
Question
The data stored within the SQLite database persists even after the app is ____.

A) initialized
B) instantiated
C) optimized
D) terminated
Question
Before an app attempts to connect to a ____ connection, it should check to see whether an Internet connection is available.

A) foreign
B) static
C) network
D) private
Question
When you write data using SharedPreferences, you can make changes using the SharedPreferences ____.

A) Manager
B) Editor
C) Memory
D) Status
Question
Persistent data stores values permanently by placing the information in a file.
Question
Android provides several options for you to save persistent application data.
Question
In a key-value pair, the key is a(n)____ that uniquely identifies the preference.

A) int
B) string
C) float
D) Boolean
Question
SharedPreferences can be used to save any primitive data.
Question
A SharedPreferences object is store user data only as long as the user has the application open.
Question
Android applications cannot save data in order for the data to be retrieved later.
Question
Android ____ can store data that can be used in different Activities of your application or by another application.

A) KeyTool
B) ListPreferences
C) ListSave
D) SharedPreferences
Question
Use a ____ method to store the data in a SharedPreferences object. 

A) place DataType ()
B) save DataType ()
C) put DataType ()
D) store DataType ()
Question
The method getString() has ____ parameters.

A) one
B) two
C) three
D) four
Question
The SharedPreferences object saves data to a(n) ____ file. 

A) .src
B) .res
C) .xml
D) .java
Question
The SharedPreferences class supports ____ data types.

A) one
B) five
C) six
D) three
Question
Shared Preferences stores private data in ____ pairs.

A) value-id
B) index-frame
C) key-value
D) data-target
Question
____ data can be stored using shared preferences, internal storage, external storage, a SQLite database, or a network connection.

A) Private
B) Overlay
C) Persistent
D) Fragment
Question
The persistent data ____________________ is available in some form in every programming language.
Question
Use a ____ method to retrieve the data in a SharedPreferences object.

A) get DataType ()
B) save DataType ()
C) retrieve DataType ()
D) store DataType ()
Question
For Shared Preferences methods, a default value is needed if the preference parameter is ____.

A) uncertified
B) undefined
C) unmapped
D) unbounded
Question
When data users enter in an Android app is stored in ____, it is lost when the app or the device stops running.

A) a cloud service
B) RAM
C) the device's driver
D) a memory card
Question
Data stored in ____________________ is lost when the app (or the device) stops running.
Question
​ The _____________________ stores structured data in a private database.
Question
_____________________ stores values permanently by placing the information in a file.
Question
________________________ stores data, which can be available to other apps on shared external storage.
Question
In an Android project, an ImageView control can display an image by assigning a ____ in the XML layout file.

A) source path
B) workspace
C) target grid
D) hashtag
Question
If a string value is undefined in a key's value, it is set to ____.

A) *
B) the number 0
C) null
D) the number 1
Question
Use the ____ object to save any primitive data.

A) Native
B) SetView
C) SharedBuilder
D) SharedPreferences
Question
The number of shared preferences you can create ____.

A) must be less than 10
B) is based on the number of apps
C) is unlimited
D) must be 25 or less
Question
To use ____ storage, the following permissions are necessary in the Android Manifest file:

A) internal
B) external
C) indexed
D) volatile
Question
If a numeric value is undefined in a key's value, it is set to ____.

A) numericOverlay
B) null
C) 0
D) missingContext
Question
To store data using the SharedPreferences editor, the code is ____________________.
Question
The name-value pair in a SharedPreferences object is saved to a(n)  ____________________ file that can be retrieved later in the app or after the app closes.
Question
Loading data saved in a SharedPreferences XML file begins by _______________ the SharedPreferences object.
Question
The ______________________ method retrieves string values.
Question
To write key-value pair assignments to an XML data file, type ____________________.
Question
The code to assign a key-value pair for key1 and strName is ____________________.
Question
The ______________________ method retrieves long values.
Question
A(n) _______________ stores persistent data on a Web server.
Question
The code to instantiate a valid SharedPreferences object is ____________________.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/49
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 11: Discover Persistent Data
1
One of the most effective ways to save simple application data to an Android device is by using the SharedPreferences ____.

A) emulator
B) object
C) map
D) function
B
2
If you have a large amount of data to store as persistent data, a(n) ____ is the perfect choice.

A) database
B) list
C) array
D) frame
A
3
The persistent data structure is available in some form in every programming language. 
True
4
SharedPreferences are best when your app needs to save large chunks of data.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
5
SQL is short for ____.

A) Simple Quorum Language
B) Structured Query List
C) Structured Query Language
D) Structured Quorum List
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
6
All applications on a device can access any files created by an app when they are saved with the internal storage method.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
7
Internal data stores  ____ data in key-value pairs.

A) cell phone
B) abstract
C) temporary
D) private
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
8
All applications can read and write files placed on external storage.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
9
The SharedPreferences class stores private data as single values.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
10
The SharedPreferences class provides one of the easiest ways to save and load ____ data.

A) encrypted
B) dynamic
C) object
D) primitive
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
11
The data stored within the SQLite database persists even after the app is ____.

A) initialized
B) instantiated
C) optimized
D) terminated
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
12
Before an app attempts to connect to a ____ connection, it should check to see whether an Internet connection is available.

A) foreign
B) static
C) network
D) private
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
13
When you write data using SharedPreferences, you can make changes using the SharedPreferences ____.

A) Manager
B) Editor
C) Memory
D) Status
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
14
Persistent data stores values permanently by placing the information in a file.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
15
Android provides several options for you to save persistent application data.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
16
In a key-value pair, the key is a(n)____ that uniquely identifies the preference.

A) int
B) string
C) float
D) Boolean
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
17
SharedPreferences can be used to save any primitive data.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
18
A SharedPreferences object is store user data only as long as the user has the application open.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
19
Android applications cannot save data in order for the data to be retrieved later.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
20
Android ____ can store data that can be used in different Activities of your application or by another application.

A) KeyTool
B) ListPreferences
C) ListSave
D) SharedPreferences
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
21
Use a ____ method to store the data in a SharedPreferences object. 

A) place DataType ()
B) save DataType ()
C) put DataType ()
D) store DataType ()
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
22
The method getString() has ____ parameters.

A) one
B) two
C) three
D) four
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
23
The SharedPreferences object saves data to a(n) ____ file. 

A) .src
B) .res
C) .xml
D) .java
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
24
The SharedPreferences class supports ____ data types.

A) one
B) five
C) six
D) three
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
25
Shared Preferences stores private data in ____ pairs.

A) value-id
B) index-frame
C) key-value
D) data-target
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
26
____ data can be stored using shared preferences, internal storage, external storage, a SQLite database, or a network connection.

A) Private
B) Overlay
C) Persistent
D) Fragment
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
27
The persistent data ____________________ is available in some form in every programming language.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
28
Use a ____ method to retrieve the data in a SharedPreferences object.

A) get DataType ()
B) save DataType ()
C) retrieve DataType ()
D) store DataType ()
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
29
For Shared Preferences methods, a default value is needed if the preference parameter is ____.

A) uncertified
B) undefined
C) unmapped
D) unbounded
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
30
When data users enter in an Android app is stored in ____, it is lost when the app or the device stops running.

A) a cloud service
B) RAM
C) the device's driver
D) a memory card
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
31
Data stored in ____________________ is lost when the app (or the device) stops running.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
32
​ The _____________________ stores structured data in a private database.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
33
_____________________ stores values permanently by placing the information in a file.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
34
________________________ stores data, which can be available to other apps on shared external storage.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
35
In an Android project, an ImageView control can display an image by assigning a ____ in the XML layout file.

A) source path
B) workspace
C) target grid
D) hashtag
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
36
If a string value is undefined in a key's value, it is set to ____.

A) *
B) the number 0
C) null
D) the number 1
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
37
Use the ____ object to save any primitive data.

A) Native
B) SetView
C) SharedBuilder
D) SharedPreferences
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
38
The number of shared preferences you can create ____.

A) must be less than 10
B) is based on the number of apps
C) is unlimited
D) must be 25 or less
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
39
To use ____ storage, the following permissions are necessary in the Android Manifest file:

A) internal
B) external
C) indexed
D) volatile
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
40
If a numeric value is undefined in a key's value, it is set to ____.

A) numericOverlay
B) null
C) 0
D) missingContext
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
41
To store data using the SharedPreferences editor, the code is ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
42
The name-value pair in a SharedPreferences object is saved to a(n)  ____________________ file that can be retrieved later in the app or after the app closes.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
43
Loading data saved in a SharedPreferences XML file begins by _______________ the SharedPreferences object.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
44
The ______________________ method retrieves string values.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
45
To write key-value pair assignments to an XML data file, type ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
46
The code to assign a key-value pair for key1 and strName is ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
47
The ______________________ method retrieves long values.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
48
A(n) _______________ stores persistent data on a Web server.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
49
The code to instantiate a valid SharedPreferences object is ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 49 flashcards in this deck.