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 end of an Activity is marked by the invocation of the ____ method.
A) atEnd
B) onClose
C) onDestroy
D) onEnd
A) atEnd
B) onClose
C) onDestroy
D) onEnd
C
2
The delay used when scheduling a timer is measured in ____.
A) milliseconds
B) minutes
C) picoseconds
D) seconds
A) milliseconds
B) minutes
C) picoseconds
D) seconds
A
3
Android music apps are not capable of playing music from a memory card.
False
4
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
5
A(n) ____ invokes a scheduled Timer.
A) AbstractTask
B) ScheduledTask
C) Task
D) TimerTask
A) AbstractTask
B) ScheduledTask
C) Task
D) TimerTask
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
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
7
A(n) ____ in Java executes a one-time task.
A) alarm
B) cron
C) ticker
D) timer
A) alarm
B) cron
C) ticker
D) timer
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
The TextView property for backgrounds is ____.
A) application
B) background
C) bkgrd
D) image
A) application
B) background
C) bkgrd
D) image
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
B) log
C) script
D) story
A) life cycle
B) log
C) script
D) story
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
Music can be used in many ways throughout mobile apps; therefore, it is important to become familiar with the various means of interacting with music media.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
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
12
On an Android, 1000 milliseconds to roughly equivalent to ____ second(s).
A) 0.1
B) 1
C) 10
D) 100
A) 0.1
B) 1
C) 10
D) 100
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Most people today do not use their mobile device to play music.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
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
15
The splash screen provides time for the Android to ____.
A) bootstrap the phone driver
B) download updates
C) initialize resources for your app
D) stream data from Google
A) bootstrap the phone driver
B) download updates
C) initialize resources for your app
D) stream data from Google
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
When buying a phone, one major consideration should be ____.
A) memory
B) number of speakers
C) screen size
D) text plan
A) memory
B) number of speakers
C) screen size
D) text plan
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
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
18
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
19
Timers can 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
20
The XML file that stores the splash screen information is called ____.
A) bootstrap.xml
B) intro.xml
C) splash.xml
D) start.xml
A) bootstrap.xml
B) intro.xml
C) splash.xml
D) start.xml
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
The method that hides an Activity is ____.
A) onDestroy
B) onResume
C) onStart
D) onStop
A) onDestroy
B) onResume
C) onStart
D) onStop
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
There are ____ common states of the music player.
A) two
B) three
C) four
D) six
A) two
B) three
C) four
D) six
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
The most common file type of media supported for audio playback on the Android is ____.
A) midi
B) mp3
C) ogg
D) wav
A) midi
B) mp3
C) ogg
D) wav
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
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
25
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
26
The ____ method will temporarily stop music while it is playing.
A) cease
B) pause
C) start
D) stop
A) cease
B) pause
C) start
D) stop
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
The proper constant to use to make a component viewable again is View. ____ .
A) INVISIBLE
B) SHOW
C) VIEWABLE
D) VISIBLE
A) INVISIBLE
B) SHOW
C) VIEWABLE
D) VISIBLE
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
The ____ class comes with the Android platform to play audio and video files.
A) iTunes
B) MediaPlayer
C) Player
D) VideoPlayer
A) iTunes
B) MediaPlayer
C) Player
D) VideoPlayer
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
The ____ property determines whether a control is displayed or not.
A) display
B) seen
C) viewable
D) visibility
A) display
B) seen
C) viewable
D) visibility
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
The music player may fail to play a given file because ____.
A) the file format is unsupported
B) another file is already playing
C) the parental controls are set
D) the volume is too high
A) the file format is unsupported
B) another file is already playing
C) the parental controls are set
D) the volume is too high
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
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
32
To schedule a TimerTask task for three seconds, the correct code is ___________________________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
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
34
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
35
A ____ variable ceases to exist when execution of its declaring method completes.
A) constant
B) global
C) local
D) static
A) constant
B) global
C) local
D) static
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
A variable that is visible in multiple methods of a class is called a(n) ____ variable.
A) abstract
B) class
C) global
D) overhead
A) abstract
B) class
C) global
D) overhead
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
The ____ of an Activity determine whether the Activity is active, paused, stopped, or dead.
A) labels
B) names
C) states
D) tags
A) labels
B) names
C) states
D) tags
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
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
39
Each of the following is a common state for the MediaPlayer class except ____.
A) continue()
B) pause()
C) start()
D) stop()
A) continue()
B) pause()
C) start()
D) stop()
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
The MediaPlayer class cannot ____.
A) play different music formats
B) play music files
C) report its current state
D) stop playing music
A) play different music formats
B) play music files
C) report its current state
D) stop playing music
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
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
42
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
43
____________________ 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
44
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
45
When storing audio and video files in an 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
46
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
47
The MediaPlayer class is in the ____________________ package.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
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
49
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
50
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