Deck 6: Jam Implementing Audio in Android Apps

ملء الشاشة (f)
exit full mode
سؤال
The delay used when scheduling a timer is measured in ____.

A) milliseconds
C) picoseconds
B) minutes
D) seconds
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Android music apps are not capable of playing music from a memory card.
سؤال
It is still very rare to use a mobile device to play music.
سؤال
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
سؤال
The XML file that stores the splash screen information is called ____.

A) bootstrap.xml
C) splash.xml
B) intro.xml
D) start.xml
سؤال
Consumers often buy a phone with more memory to increase the number of songs they can store.
سؤال
The end of an Activity is marked by the ____ method being invoked.

A) atEnd
C) onDestroy
B) onClose
D) onEnd
سؤال
Java only allows one thread of execution at a time.
سؤال
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
سؤال
It's not necessary to understand the life cycle of an app in order to code it.
سؤال
A(n) ____ invokes a scheduled Timer.

A) AbstractTask
C) Task
B) ScheduledTask
D) TimerTask
سؤال
An app may be terminated if other apps or operations (such as a phone call) require resources.
سؤال
A(n) ____ in Java executes a one-time task.

A) alarm
C) ticker
B) cron
D) timer
سؤال
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.
سؤال
There are four states an Activity can be in.
سؤال
It is important not to use excessively long timers that may waste the user's time or cause delays.
سؤال
On an Android, 1000 milliseconds to roughly equivalent to ____ second(s).

A) 0.1
C) 10
B) 1
D) 100
سؤال
When buying a phone, a principal specification usually considered is ____.

A) memory
C) screen size
B) number of speakers
D) text plan
سؤال
The TextView property for backgrounds is ____.

A) application
C) bkgrd
B) background
D) image
سؤال
Music can be used in many ways throughout mobile apps; therefore, it is important to become familiar with interacting with music media.
سؤال
The ____________________ method releases resources and frees up memory connected to an Activity.
سؤال
The MediaPlayer class cannot ____.

A) play different music formats
C) report its current state
B) play music files
D) stop playing music
سؤال
The ____ property determines whether a control is displayed or not.

A) display
C) viewable
B) seen
D) visibility
سؤال
A ____ variable ceases to exist when execution of its declaring method completes.

A) constant
C) local
B) global
D) static
سؤال
A(n) ____________________ is a single sequential flow of control within a program.
سؤال
The proper constant to use to make a component viewable again is View.____.

A) INVISIBLE
C) VIEWABLE
B) SHOW
D) VISIBLE
سؤال
The most common file type of media supported for audio playback on the Android is ____.

A) midi
C) ogg
B) mp3
D) wav
سؤال
The ____ of an Activity determine whether the Activity is active, paused, stopped, or dead.

A) labels
C) states
B) names
D) tags
سؤال
Each of the following is a common state for the MediaPlayer class except ____.

A) continue()
C) start()
B) pause()
D) stop()
سؤال
The signature of the method that must be implemented in a new TimerTask is ____________________.
سؤال
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
سؤال
There are ____ common states of the music player.

A) two
C) four
B) three
D) six
سؤال
The method that hides an Activity is ____.

A) onDestroy
C) onStart
B) onResume
D) onStop
سؤال
The ____ class comes with the Android platform to play audio and video files.

A) iTunes
C) Player
B) MediaPlayer
D) VideoPlayer
سؤال
A variable that is visible in multiple methods of a class is called a(n) ____ variable.

A) abstract
C) global
B) class
D) overhead
سؤال
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
سؤال
The ____ method will temporarily stop music while it is playing.

A) cease
C) start
B) pause
D) stop
سؤال
To schedule a TimerTask task for three seconds using Timer bookkeeper, the correct code is ___________________________________.
سؤال
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
سؤال
The Timer and TimerTask classes are in the ____________________ package.
سؤال
The code to reference a music file called "balloonPop" in the raw directory is ____________________.
سؤال
The MediaPlayer class is in the ____________________ package.
سؤال
Typically, the ____________________ method, which is inside the onDestroy method, is called directly before another Activity is launched.
سؤال
If you want to store audio and video files in the application's resources for playing, the correct folder to use is ____________________.
سؤال
____________________ variables cease to exist when their class or activity is unloaded.
سؤال
A(n) ____________________ is a piece of technology that is used to compress and decompress audio and video files.
سؤال
The Android provides the ____________________ class to record audio and video.
سؤال
The method to modify the visibility property of a control is ____________________.
سؤال
The correct method to use to play music with the MediaPlayer class is ____________________.
سؤال
The ____________________ of a variable refers to the variable's visibility within a class.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
Consumers often buy a phone with more memory to increase the number of songs they can store.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
The end of an Activity is marked by the ____ method being invoked.

A) atEnd
C) onDestroy
B) onClose
D) onEnd
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
Java only allows one thread of execution at a time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
It's not necessary to understand the life cycle of an app in order to code it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
A(n) ____ invokes a scheduled Timer.

A) AbstractTask
C) Task
B) ScheduledTask
D) TimerTask
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
An app may be terminated if other apps or operations (such as a phone call) require resources.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
A(n) ____ in Java executes a one-time task.

A) alarm
C) ticker
B) cron
D) timer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
There are four states an Activity can be in.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
It is important not to use excessively long timers that may waste the user's time or cause delays.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
On an Android, 1000 milliseconds to roughly equivalent to ____ second(s).

A) 0.1
C) 10
B) 1
D) 100
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
The TextView property for backgrounds is ____.

A) application
C) bkgrd
B) background
D) image
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
The ____________________ method releases resources and frees up memory connected to an Activity.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The ____ property determines whether a control is displayed or not.

A) display
C) viewable
B) seen
D) visibility
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
A ____ variable ceases to exist when execution of its declaring method completes.

A) constant
C) local
B) global
D) static
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
A(n) ____________________ is a single sequential flow of control within a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
The signature of the method that must be implemented in a new TimerTask is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
There are ____ common states of the music player.

A) two
C) four
B) three
D) six
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
The method that hides an Activity is ____.

A) onDestroy
C) onStart
B) onResume
D) onStop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
The ____ method will temporarily stop music while it is playing.

A) cease
C) start
B) pause
D) stop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
To schedule a TimerTask task for three seconds using Timer bookkeeper, the correct code is ___________________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
The Timer and TimerTask classes are in the ____________________ package.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
The code to reference a music file called "balloonPop" in the raw directory is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
The MediaPlayer class is in the ____________________ package.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
Typically, the ____________________ method, which is inside the onDestroy method, is called directly before another Activity is launched.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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 ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
____________________ variables cease to exist when their class or activity is unloaded.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
A(n) ____________________ is a piece of technology that is used to compress and decompress audio and video files.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
The Android provides the ____________________ class to record audio and video.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
The method to modify the visibility property of a control is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
The correct method to use to play music with the MediaPlayer class is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
The ____________________ of a variable refers to the variable's visibility within a class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.