Exam 8: Graphics, Animations, Sounds and Gaming
Exam 1: Basics of Android: Hello World23 Questions
Exam 2: Model View Controller, Gui Components, Events20 Questions
Exam 3: Coding the Gui Programmatically, Layout Managers20 Questions
Exam 4: Multiple Activities, Passing Data Between Activities, Transitions, Persistent Data22 Questions
Exam 5: Menus, Sqlite21 Questions
Exam 6: Managing the Device Orientation22 Questions
Exam 7: Touches and Swipes22 Questions
Exam 8: Graphics, Animations, Sounds and Gaming27 Questions
Exam 9: Fragments26 Questions
Exam 10: Using Libraries and Their Apis: Speech Recognition and Maps33 Questions
Exam 11: Using the Gps and Location Services21 Questions
Exam 12: Using an Existing App: Taking a Photo and Sending an Email28 Questions
Exam 13: Xml and Content Apps25 Questions
Exam 14: Making an Android Widget35 Questions
Exam 15: In App Advertising25 Questions
Exam 16: Security and Encryption23 Questions
Exam 17: Android Development: Extending Views, Fragments, and Google Maps Permissions127 Questions
Select questions type
Which of the following is not a value of Paint.Style?
Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
D
It is possible to play several sounds simultaneously.
Free
(True/False)
4.8/5
(38)
Correct Answer:
True
The setColor method of the Paint class takes an int parameter; when calling this method, it is possible to pass a hexadecimal number as its argument.
Free
(True/False)
4.8/5
(35)
Correct Answer:
True
The postInvalidate method of the View class that has no parameter triggers a call to the __________________ method and refreshes the whole View.
(Short Answer)
4.9/5
(32)
Following is the API for one of the load methods of the SoundPool class:
Int load( Context context, int i, int priority )
What does i represent?
(Multiple Choice)
4.8/5
(33)
The Color class defines constants and methods used to define colors represented by ____________.
(Short Answer)
4.8/5
(40)
Following is the API for the drawArc method of the Canvas class:
public void drawArc( RectF oval, float startAngle, float sweepAngle,
boolean useCenter, Paint paint )
If useCenter is false, we draw a wedge.
(True/False)
4.8/5
(38)
The SoundPool class, part of the __________________ package, enables us to load a sound and play it.
(Short Answer)
5.0/5
(40)
In the following statement, c is a Canvas reference, b is a Bitmap reference, r is a Rect reference, and p is a Paint reference.
c.drawBitmap( b, null, r, p );
The bitmap will be drawn in its entirety.
(True/False)
4.8/5
(39)
What method of the Paint class can we use to change the color of a Paint object?
(Multiple Choice)
4.8/5
(38)
The BitmapFactory is a factory class to create __________________ objects.
(Short Answer)
4.7/5
(38)
The drawLine method of the Canvas class has this API:
void drawLine( float a, float b, float c, float d, Paint paint )
In this API, ( a, b ) represents the coordinate of the starting point of the line and ( c, d ) represents the coordinate of the ending point of the line.
(True/False)
4.8/5
(37)
The decodeResource method of the BitmapFactory class has this API:
static Bitmap decodeResource( Resources res, int i )
The parameter named i represents the __________________ of a resource.
(Short Answer)
4.9/5
(38)
To create a SoundPool object, we first instantiate a SoundPool.Builder object and call the ____________ method of the SoundPool.Builder class.
(Short Answer)
4.9/5
(39)
How do we access the width of a Bitmap object reference named b?
(Multiple Choice)
4.8/5
(43)
Once a Timer has started a task, it is not possible to cancel it.
(True/False)
4.8/5
(29)
c is a Canvas object reference, and p is a Paint object reference. What is the only valid statement?
(Multiple Choice)
4.9/5
(38)
Showing 1 - 20 of 27
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)