Deck 6: Jam Implementing Audio in Android Apps
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
Play
Full screen (f)
Deck 6: Jam Implementing Audio in Android Apps
1
The delay used when scheduling a timer is measured in ____.
A) milliseconds
C) picoseconds
B) minutes
D) seconds
A) milliseconds
C) picoseconds
B) minutes
D) seconds
A
2
Android music apps are not capable of playing music from a memory card.
False
3
It is still very rare to use a mobile device to play music.
False
4
The splash screen provides time for the Android to ____.
A) bootstrap the phone driver
C) initialize resources for your app
B) download updates
D) stream data from Google
A) bootstrap the phone driver
C) initialize resources for your app
B) download updates
D) stream data from Google
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
The XML file that stores the splash screen information is called ____.
A) bootstrap.xml
C) splash.xml
B) intro.xml
D) start.xml
A) bootstrap.xml
C) splash.xml
B) intro.xml
D) start.xml
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Consumers often buy a phone with more memory to increase the number of songs they can store.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
The end of an Activity is marked by the ____ method being invoked.
A) atEnd
C) onDestroy
B) onClose
D) onEnd
A) atEnd
C) onDestroy
B) onClose
D) onEnd
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
Java only allows one thread of execution at a time.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
Every Activity has a(n) ____, which is the series of actions from the beginning of an Activity to its end.
A) life cycle
C) script
B) log
D) story
A) life cycle
C) script
B) log
D) story
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
It's not necessary to understand the life cycle of an app in order to code it.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
A(n) ____ invokes a scheduled Timer.
A) AbstractTask
C) Task
B) ScheduledTask
D) TimerTask
A) AbstractTask
C) Task
B) ScheduledTask
D) TimerTask
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
An app may be terminated if other apps or operations (such as a phone call) require resources.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
A(n) ____ in Java executes a one-time task.
A) alarm
C) ticker
B) cron
D) timer
A) alarm
C) ticker
B) cron
D) timer
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
Timers can also be used to display updates of how long an installation is taking by displaying a countdown, monitor what a user is doing, or execute other routines while an Activity is running.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
There are four states an Activity can be in.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
It is important not to use excessively long timers that may waste the user's time or cause delays.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
On an Android, 1000 milliseconds to roughly equivalent to ____ second(s).
A) 0.1
C) 10
B) 1
D) 100
A) 0.1
C) 10
B) 1
D) 100
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
When buying a phone, a principal specification usually considered is ____.
A) memory
C) screen size
B) number of speakers
D) text plan
A) memory
C) screen size
B) number of speakers
D) text plan
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
The TextView property for backgrounds is ____.
A) application
C) bkgrd
B) background
D) image
A) application
C) bkgrd
B) background
D) image
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
Music can be used in many ways throughout mobile apps; therefore, it is important to become familiar with interacting with music media.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
The ____________________ method releases resources and frees up memory connected to an Activity.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
The MediaPlayer class cannot ____.
A) play different music formats
C) report its current state
B) play music files
D) stop playing music
A) play different music formats
C) report its current state
B) play music files
D) stop playing music
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
The ____ property determines whether a control is displayed or not.
A) display
C) viewable
B) seen
D) visibility
A) display
C) viewable
B) seen
D) visibility
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
A ____ variable ceases to exist when execution of its declaring method completes.
A) constant
C) local
B) global
D) static
A) constant
C) local
B) global
D) static
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
A(n) ____________________ is a single sequential flow of control within a program.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
The proper constant to use to make a component viewable again is View.____.
A) INVISIBLE
C) VIEWABLE
B) SHOW
D) VISIBLE
A) INVISIBLE
C) VIEWABLE
B) SHOW
D) VISIBLE
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
The most common file type of media supported for audio playback on the Android is ____.
A) midi
C) ogg
B) mp3
D) wav
A) midi
C) ogg
B) mp3
D) wav
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
The ____ of an Activity determine whether the Activity is active, paused, stopped, or dead.
A) labels
C) states
B) names
D) tags
A) labels
C) states
B) names
D) tags
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
Each of the following is a common state for the MediaPlayer class except ____.
A) continue()
C) start()
B) pause()
D) stop()
A) continue()
C) start()
B) pause()
D) stop()
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
The signature of the method that must be implemented in a new TimerTask is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
The recommended way to obtain a MediaPlayer instance is to use ____.
A) an instance from the Activity class
B) the new keyword
C) the static global one created by the Android API
D) the static method create
A) an instance from the Activity class
B) the new keyword
C) the static global one created by the Android API
D) the static method create
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
There are ____ common states of the music player.
A) two
C) four
B) three
D) six
A) two
C) four
B) three
D) six
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
The method that hides an Activity is ____.
A) onDestroy
C) onStart
B) onResume
D) onStop
A) onDestroy
C) onStart
B) onResume
D) onStop
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
The ____ class comes with the Android platform to play audio and video files.
A) iTunes
C) Player
B) MediaPlayer
D) VideoPlayer
A) iTunes
C) Player
B) MediaPlayer
D) VideoPlayer
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
A variable that is visible in multiple methods of a class is called a(n) ____ variable.
A) abstract
C) global
B) class
D) overhead
A) abstract
C) global
B) class
D) overhead
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
The music player may fail to play a given file because ____.
A) it is an unsupported format
C) the parental controls are set
B) another file is already playing
D) the volume is too high
A) it is an unsupported format
C) the parental controls are set
B) another file is already playing
D) the volume is too high
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
The ____ method will temporarily stop music while it is playing.
A) cease
C) start
B) pause
D) stop
A) cease
C) start
B) pause
D) stop
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
To schedule a TimerTask task for three seconds using Timer bookkeeper, the correct code is ___________________________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
In a camera app, the next step in the life cycle after tapping the button to take a picture is to call ____.
A) onPause() to let the user do something else
B) onRestart() to restart the rest of the app
C) onResume() to reactivate the camera
D) onStop() to hide the live image
A) onPause() to let the user do something else
B) onRestart() to restart the rest of the app
C) onResume() to reactivate the camera
D) onStop() to hide the live image
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
The Timer and TimerTask classes are in the ____________________ package.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
The code to reference a music file called "balloonPop" in the raw directory is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
The MediaPlayer class is in the ____________________ package.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
Typically, the ____________________ method, which is inside the onDestroy method, is called directly before another Activity is launched.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
If you want to store audio and video files in the application's resources for playing, the correct folder to use is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
____________________ variables cease to exist when their class or activity is unloaded.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
A(n) ____________________ is a piece of technology that is used to compress and decompress audio and video files.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
The Android provides the ____________________ class to record audio and video.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
The method to modify the visibility property of a control is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
The correct method to use to play music with the MediaPlayer class is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
The ____________________ of a variable refers to the variable's visibility within a class.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck