Exam 6: Cannon Game App
Exam 1: Introduction to Android31 Questions
Exam 2: Welcome App39 Questions
Exam 3: Tip Calculator App47 Questions
Exam 4: Flag Exam App66 Questions
Exam 5: Doodlz App34 Questions
Exam 6: Cannon Game App30 Questions
Select questions type
Which of the next three statements is false?
Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
C
Each SurfaceView subclass should implement the interface ________, which contains methods that are called when the SurfaceView is created, changed (e.g., its size or orientation changes) or destroyed.
Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
A
View method onTouchEvent determines when the user touches the screen. The MotionEvent parameter contains information about the event that occurred. If the user touched the screen, the parameter’s value is ________.
Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
A
Pass ________ to an AudioAttributes.Builder object’s setUsage method to indicate that the audio is being used as game audio.
(Multiple Choice)
4.8/5
(33)
Only one thread at a time can draw to a SurfaceView. To ensure this, you must first lock the SurfaceHolder by ________.
(Multiple Choice)
4.8/5
(43)
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.
(Multiple Choice)
4.9/5
(37)
All updates to an app's user interface must be performed in the GUI thread of execution, because GUI components are not ________.
(Multiple Choice)
4.9/5
(37)
A dialog must be displayed from the GUI thread. You call Activity method ________ to specify a Runnable that should execute in the GUI thread.
(Multiple Choice)
4.9/5
(44)
Games, often require complex logic that should be performed in separate threads of execution, and those threads often need to draw to the screen. For such cases, Android provides class ________—a subclass of View that provides a dedicated drawing area in which other threads can display graphics on the screen in a thread-safe manner.
(Multiple Choice)
5.0/5
(37)
Game developers often use full-screen themes, such as Theme.Material.Light.NoActionBar.Fullscreen
That display only the bottom system bar, which in landscape orientation appears at the screen's ________.
(Multiple Choice)
4.8/5
(34)
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.
(Multiple Choice)
4.8/5
(34)
You can terminate a Thread by calling its setRunning method with the argument ________.
(Multiple Choice)
4.9/5
(41)
Class SoundPool's ________ method gives the resources associated with a SoundPool back to the system.
(Multiple Choice)
4.9/5
(29)
Game-development frameworks typically provide sophisticated ________ collision-detection capabilities.
(Multiple Choice)
4.8/5
(32)
Class View’s onSizeChanged method is called whenever the View’s size chang-es, including when the View is first added to the View hierarchy as the layout is inflated. The method receives the View’s new width and height and its old width and height. The first time this method is called, the old width and height are ________ and ________.
(Multiple Choice)
4.8/5
(36)
Method surfaceCreated is called when the SurfaceView is created-e.g., ________.
(Multiple Choice)
4.8/5
(38)
Showing 1 - 20 of 30
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)