100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Android How To Program 3rd Edition By Deitel.pdf

Rating
-
Sold
-
Pages
22
Grade
A+
Uploaded on
27-09-2022
Written in
2022/2023

Android How To Program 3rd Edition By D Android How To Program 3rd Edition By D Android How To Program 3rd Edition By D

Institution
Medicine / Surgery
Module
Medicine / Surgery










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Medicine / Surgery
Module
Medicine / Surgery

Document information

Uploaded on
September 27, 2022
Number of pages
22
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Android How To Program 3rd Edition By Deitel
& Deitel – Test Bank
To purchase this Complete Test Bank with Answers Click the link
Below
https://quizsolutions.site/product/android-how-to-program-3rd-edition-by-deitel-deitel-test-bank-2/
If face any problem or Further information contact us At
INSTANT DOWNLOAD WITH ANSWERS Android How To Program 3rd Edition By Deitel & Deitel – Test Bank
Sample Test Chapter 6 Cannon Game App
Introduction
No questions.
Test-Driving the Cannon Game App
No questions.
Technologies Overview
No questions.
Using the Resource Folder res/raw Q1. Media files (such as the sounds we used in the Cannon Game app), are placed in the app’s resource folder ________.
1.res/media
2.res/sounds
3.res/raw
4.res/multimedia
Answer: c. res/raw
Activity and Fragment Lifecycle Methods
Q1. Which of the following statements is false?
1.When an Activity is shut down, its onDestroy method is called, which in turn calls the onDestroy methods of all the Fragments hosted by the Activity.
2.We used the onDestroy method in the MainActivityFragment to release the CannonView’s sound resources.
3.Method onDestroy is guaranteed to be called, so it can be used to release resources and to save critical data.
4.The Android documentation recommends that you save data in methods
onPause or onSaveInstanceState.
Answer: c. Method onDestroy is guaranteed to be called, so it can be used to release resources and to save critical data. Actually, method onDestroy is not guaranteed to be called, so it should be used only to release resources, not to
save critical data.
Overriding View Method onTouchEvent
Q1. To process simple touch events in an app, override View method onTouchEvent, then use constants from class ________ (package android.view) to test which type of event occurred and process it accordingly.
1.Event
2.MotionEvent
3.Motion
4.View
Answer: b. MotionEvent Adding Sound with SoundPool and AudioManager
Q1. An app’s sound effects are managed with a(n) ________ (package android.media), which can be used to load, play and unload sounds.
1.Effects
2.SoundPool
3.EffectsPool
4.SoundManager
Answer: SoundPool Q2. Sounds are played using one of Android’s audio- ________ for alarms, music, notifications, phone rings, system sounds, phone calls and more.
1.streams
2.players
3.tools
4.None of the above
Answer: a. streams Q3. The Android documentation recommends that games use the ________ to play sounds, because that stream’s volume can be controlled via the device’s volume buttons.
1.phone audio stream
2.alarm audio stream
3.notifications audio stream
4.music audio stream
Answer: d. music audio stream Q4. Which of the following statements is false?
1.You configure and create a SoundPool object using a SoundPool.Builder object.
2.You use an AudioAttributes.Builder object to create an AudioAttributes object that will be associated with the SoundPool.
£8.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
royalmarsden
3.0
(2)

Get to know the seller

Seller avatar
royalmarsden American InterContinental University
Follow You need to be logged in order to follow users or courses
Sold
11
Member since
3 year
Number of followers
7
Documents
375
Last sold
3 year ago

3.0

2 reviews

5
1
4
0
3
0
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions