Exam 8: Graphics, Animations, Sounds and Gaming

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Which of the following is not a value of Paint.Style?

Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
Verified

D

It is possible to play several sounds simultaneously.

Free
(True/False)
4.8/5
(38)
Correct Answer:
Verified

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:
Verified

True

The Rect class encapsulates a(n) ____________.

(Short Answer)
4.8/5
(36)

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)

What class defines drawing styles and colors?

(Multiple Choice)
4.9/5
(40)

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)

The ____________ package contains classes to draw and paint.

(Short Answer)
4.8/5
(32)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)