Deck 6: Jam Implementing Audio in Android Apps

ملء الشاشة (f)
exit full mode
سؤال
The end of an Activity is marked by the invocation of the ____ method.

A) atEnd
B) onClose
C) onDestroy
D) onEnd
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The delay used when scheduling a timer is measured in ____.

A) milliseconds
B) minutes
C) picoseconds
D) seconds
سؤال
Android music apps are not capable of playing music from a memory card.
سؤال
There are four states an Activity can be in.
سؤال
A(n) ____ invokes a scheduled Timer.

A) AbstractTask
B) ScheduledTask
C) Task
D) TimerTask
سؤال
It is important not to use excessively long timers that may waste the user's time or cause delays.
سؤال
A(n) ____ in Java executes a one-time task.

A) alarm
B) cron
C) ticker
D) timer
سؤال
The TextView property for backgrounds is ____.

A) application
B) background
C) bkgrd
D) image
سؤال
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
سؤال
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.
سؤال
Consumers often buy a phone with more memory to increase the number of songs they can store.
سؤال
On an Android, 1000 milliseconds to roughly equivalent to ____ second(s).

A) 0.1
B) 1
C) 10
D) 100
سؤال
Most people today do not use their mobile device to play music.
سؤال
An app may be terminated if other apps or operations (such as a phone call) require resources.
سؤال
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
سؤال
When buying a phone, one major consideration should be ____.

A) memory
B) number of speakers
C) screen size
D) text plan
سؤال
Java only allows one thread of execution at a time.
سؤال
It's not necessary to understand the life cycle of an app in order to code it.
سؤال
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.
سؤال
The XML file that stores the splash screen information is called ____.

A) bootstrap.xml
B) intro.xml
C) splash.xml
D) start.xml
سؤال
The method that hides an Activity is ____.

A) onDestroy
B) onResume
C) onStart
D) onStop
سؤال
There are ____ common states of the music player.

A) two
B) three
C) four
D) six
سؤال
The most common file type of media supported for audio playback on the Android is ____.

A) midi
B) mp3
C) ogg
D) wav
سؤال
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
سؤال
The Timer and TimerTask classes are in the ____________________ package.
سؤال
The ____ method will temporarily stop music while it is playing.

A) cease
B) pause
C) start
D) stop
سؤال
The proper constant to use to make a component viewable again is View. ____ .

A) INVISIBLE
B) SHOW
C) VIEWABLE
D) VISIBLE
سؤال
The ____ class comes with the Android platform to play audio and video files.

A) iTunes
B) MediaPlayer
C) Player
D) VideoPlayer
سؤال
The ____ property determines whether a control is displayed or not.

A) display
B) seen
C) viewable
D) visibility
سؤال
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(n) ____________________ is a single sequential flow of control within a program.
سؤال
To schedule a TimerTask task for three seconds, 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 signature of the method that must be implemented in a new TimerTask is ____________________.
سؤال
A ____ variable ceases to exist when execution of its declaring method completes.

A) constant
B) global
C) local
D) static
سؤال
A variable that is visible in multiple methods of a class is called a(n) ____ variable.

A) abstract
B) class
C) global
D) overhead
سؤال
The ____ of an Activity determine whether the Activity is active, paused, stopped, or dead.

A) labels
B) names
C) states
D) tags
سؤال
The ____________________ method releases resources and frees up memory connected to an Activity.
سؤال
Each of the following is a common state for the MediaPlayer class except ____.

A) continue()
B) pause()
C) start()
D) stop()
سؤال
The MediaPlayer class cannot ____.

A) play different music formats
B) play music files
C) report its current state
D) stop playing music
سؤال
The method to modify the visibility property of a control is ____________________.
سؤال
The ____________________ of a variable refers to the variable's visibility within a class.
سؤال
____________________ 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.
سؤال
When storing audio and video files in an application's resources for playing, the correct folder to use is ____________________.
سؤال
Typically, the ____________________ method, which is inside the onDestroy method, is called directly before another Activity is launched.
سؤال
The MediaPlayer class is in the ____________________ package.
سؤال
The code to reference a music file called "balloonPop" in the raw directory is ____________________.
سؤال
The Android provides the ____________________ class to record audio and video.
سؤال
The correct method to use to play music with the MediaPlayer class is ____________________.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
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 end of an Activity is marked by the invocation of the ____ method.

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
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
A(n) ____ invokes a scheduled Timer.

A) AbstractTask
B) ScheduledTask
C) Task
D) TimerTask
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
It is important not to use excessively long timers that may waste the user's time or cause delays.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
A(n) ____ in Java executes a one-time task.

A) alarm
B) cron
C) ticker
D) timer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
The TextView property for backgrounds is ____.

A) application
B) background
C) bkgrd
D) image
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 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
B) log
C) script
D) story
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
Consumers often buy a phone with more memory to increase the number of songs they can store.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
On an Android, 1000 milliseconds to roughly equivalent to ____ second(s).

A) 0.1
B) 1
C) 10
D) 100
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
Most people today do not use their mobile device to play music.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
An app may be terminated if other apps or operations (such as a phone call) require resources.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
Java only allows one thread of execution at a time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
It's not necessary to understand the life cycle of an app in order to code it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
The method that hides an Activity is ____.

A) onDestroy
B) onResume
C) onStart
D) onStop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
There are ____ common states of the music player.

A) two
B) three
C) four
D) six
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
The Timer and TimerTask classes are in the ____________________ package.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
The ____ method will temporarily stop music while it is playing.

A) cease
B) pause
C) start
D) stop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
The ____ property determines whether a control is displayed or not.

A) display
B) seen
C) viewable
D) visibility
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
A(n) ____________________ is a single sequential flow of control within a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
To schedule a TimerTask task for three seconds, the correct code is ___________________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
The signature of the method that must be implemented in a new TimerTask is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
A ____ variable ceases to exist when execution of its declaring method completes.

A) constant
B) global
C) local
D) static
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
The ____________________ method releases resources and frees up memory connected to an Activity.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
The method to modify the visibility property of a control is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
The ____________________ of a variable refers to the variable's visibility within a class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
____________________ variables cease to exist when their class or activity is unloaded.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
A(n) ____________________ is a piece of technology that is used to compress and decompress audio and video files.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
When storing audio and video files in an application's resources for playing, the correct folder to use is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
Typically, the ____________________ method, which is inside the onDestroy method, is called directly before another Activity is launched.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
The MediaPlayer class is in the ____________________ package.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
The code to reference a music file called "balloonPop" in the raw directory is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
The Android provides the ____________________ class to record audio and video.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
The correct method to use to play music with the MediaPlayer class is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.