1) Regarding the GIF file format which of the
following statements is not correct?
a) GIF is an abreviation for Graphics Interchange
Format.
b) This file format was developed by CompuServe.
c) It uses 8-bits to store the color information
for each color component of a pixel
d) GIF files use a compression system based of
the Lempel-Ziv-Welch algorithm
( c )
// Comment: GIF uses 8 bits to encode the color information.
2) Which of the following statements is not correct?
a) A Toolkit object can be obtained via a
getDefaultToolkit(
) call.
b) TexturePaint and ImageIcon define versions
of getImage( ).
c) The awt package URL class encapsulates a
standard
url in java.
d) getImage( ) returns an Image
object.
( c )
// Comment: URL is in the java.net package
3) The drawImage( )
method does not take one of the following number
or parameters?
a) 3
b) 4
c) 5
d)
6
( a )
// Comment: drawImage( ) takes 4, 5 , 6 or 7 arguments
4) Which of the
following methods is typically called in response to
a change
in an image.
a) getImage( )
b) drawImage( )
c) updateImage( )
d) createImage(
)
( c )
5) To isolate the green component of a color stored in an int one would do a
a) right shift 8
places and logically and with the binary equilvalent
of the number 256
b) right shift 16 places and logically and the binary equivalent of
then number 256
c) right shift 8 places and logically OR with the binary equilvalent
of the number 256
d) right shift 16 places and logically OR with the binary equivalent
of then number 256
( a )
6) To create an
image from an array of pixels and show the image which
of
the following would not be useful?
a) a
MemoryPixelSource constructor
b) the createImage( ) method
c) an int array
d) the drawImage( )
method
( a )
// Comment: There is no MemoryPixelSource constructor