Deck 5: Using Classes and Objects in Media Computing
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/47
Play
Full screen (f)
Deck 5: Using Classes and Objects in Media Computing
1
An image with a file size of 120 kilobytes and an image size of 300 by 225 pixels is a large file.
False
2
____ give programmers access to complex behavior.
A) Objects
B) Aspects
C) Samples
D) Mutators
A) Objects
B) Aspects
C) Samples
D) Mutators
A
3
A pixel contains integer values that represent its color in terms of ____ components.
A) PPI
B) aspect
C) height and width
D) RGB
A) PPI
B) aspect
C) height and width
D) RGB
D
4
When an image is loaded by a Web browser, the software maps the bits from the image file into a rectangular area of colored dots for display.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
5
In a pixel grid, the x-coordinates increase positively towards the bottom. ____________________
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
6
Use the saveAs method to overwrite an image file with the changes made in the program. ____________________
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
7
A mutator is a method that is used to modify the internal contents of an object. ____________________
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
8
Loops that march across a row before moving onto the next row use a row-major traversal pattern.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
9
An image basically consists of all of the following EXCEPT ____.
A) width
B) height
C) depth
D) set of pixels
A) width
B) height
C) depth
D) set of pixels
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
10
In a pixel grid, the position (0, 0) is in the ____ corner of the grid.
A) upper-right
B) upper-left
C) lower-right
D) center
A) upper-right
B) upper-left
C) lower-right
D) center
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
11
When the resolution of a monitor is increased, the images appear larger.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
12
To convert an image to grayscale, the average of a pixel's color values is calculated, and each value is reset to the average.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
13
To create a copy of an image, it is easiest to start by treating a new, blank image with the same height and width as the original.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
14
The aspect ratio of a pixel is used to detect an edge.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
15
In a pixel grid, the position (width-1, height-1) is in the ____ corner of the grid.
A) upper-right
B) upper-left
C) lower-right
D) center
A) upper-right
B) upper-left
C) lower-right
D) center
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
16
For the color white, the RGB values are all 255. ____________________
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
17
In a pixel grid, the y-coordinates increase positively towards the top.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
18
A sample size of 16 bits allows signed integers from 0 to 1.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
19
Each pixel is accessible by means of its (x, y) coordinates.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
20
Use the method setColor to replace an RGB value at a given position in an image. ____________________
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
21
A(n) ____ loop structure visits each element in a sequence or counts through a sequence of numbers using a single loop control variable.
A) nested
B) linear
C) single
D) straight
A) nested
B) linear
C) single
D) straight
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
22
The ____ method builds and return a new image with the same attributes as the original one, but with an empty string as the filename.
A) copy
B) duplicate
C) clone
D) repeat
A) copy
B) duplicate
C) clone
D) repeat
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
23
A constructor without parameters is known as a(n) ____ constructor.
A) default
B) uninstantiated
C) mutated
D) object
A) default
B) uninstantiated
C) mutated
D) object
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
24
One way of rearranging sound clips, called ____, is to place one clip after another to form a new sound.
A) splicing
B) dubbing
C) composing
D) echoing
A) splicing
B) dubbing
C) composing
D) echoing
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
25
The sounds package includes the ability to ____.
A) record new sound clips
B) open files containing existing clips
C) play the currently loaded clip
D) all of the above
A) record new sound clips
B) open files containing existing clips
C) play the currently loaded clip
D) all of the above
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
26
An enhanced for loop is also called a(n) ____ loop.
A) for-for
B) for-each
C) then-for
D) if-for
A) for-for
B) for-each
C) then-for
D) if-for
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
27
FIGURE 5-1 
The image to the right in Figure 5-1 above has ____.
A) been converted to black and white
B) had its brightness adjusted
C) had its edges detected
D) been converted to grayscale

The image to the right in Figure 5-1 above has ____.
A) been converted to black and white
B) had its brightness adjusted
C) had its edges detected
D) been converted to grayscale
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
28
Nico wants to add a(n) ____, an effect wherein an earlier part of a sound clip is heard concurrently with the sound at the present moment.
A) splice
B) echo
C) compose
D) blur
A) splice
B) echo
C) compose
D) blur
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
29
Object ____ makes a new object available to a program.
A) orientation
B) definition
C) instantiation
D) access
A) orientation
B) definition
C) instantiation
D) access
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
30
A program instantiates a class by using one of its ____ with the new operator.
A) variables
B) constructors
C) accessors
D) mutators
A) variables
B) constructors
C) accessors
D) mutators
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
31
Image-manipulation packages allow you to transfer images from file to working storage in ____________________.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
32
A(n) ____ is a method that returns a value and is used to examine part of the contents of an object.
A) mutator
B) evaluator
C) instantiator
D) accessor
A) mutator
B) evaluator
C) instantiator
D) accessor
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
33
The inputs to an echo algorithm are a sound clip and an integer ____.
A) coordinate
B) value
C) variable
D) delay
A) coordinate
B) value
C) variable
D) delay
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
34
If the factor Emma uses in her algorithm is ____, the product of the sample and the factor might exceed the limit of the legitimate sample range.
A) greater than 32767
B) less than -32768
C) greater than 1
D) less than 1
A) greater than 32767
B) less than -32768
C) greater than 1
D) less than 1
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
35
To use an object effectively, the programmer must know the set of ____ that it recognizes.
A) classes
B) methods
C) parameters
D) packages
A) classes
B) methods
C) parameters
D) packages
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
36
FIGURE 5-2 
____ detection was used in Figure 5-2 above to remove the full colors of the original image to uncover the outlines of the objects represented in the image.
A) Line
B) Edge
C) Luminance
D) Color

____ detection was used in Figure 5-2 above to remove the full colors of the original image to uncover the outlines of the objects represented in the image.
A) Line
B) Edge
C) Luminance
D) Color
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
37
The area of RAM reserved for Java objects is called the ____ space.
A) heap
B) free
C) storage
D) save
A) heap
B) free
C) storage
D) save
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
38
A(n) ____________________ is a colored dot that is used as a part of an image file display.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
39
____________________-based programming is the discipline of using existing classes, objects, and methods to solve problems.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
40
A sound with higher ____ results in a higher fidelity to the original sound as well in a large file size.
A) frequency
B) volume
C) density
D) sampling rate
A) frequency
B) volume
C) density
D) sampling rate
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
41
Identify the letter of the choice that best matches the phrase or definition.
a.API
b.PPI
c.Xmx
d.Luminance
e.Amplitude
The average of a pixel's RGB values.
a.API
b.PPI
c.Xmx
d.Luminance
e.Amplitude
The average of a pixel's RGB values.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
42
The set of an object's methods available to users is called its ____________________.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
43
Identify the letter of the choice that best matches the phrase or definition.
a.API
b.PPI
c.Xmx
d.Luminance
e.Amplitude
Used to adjust the heap space used for data memory.
a.API
b.PPI
c.Xmx
d.Luminance
e.Amplitude
Used to adjust the heap space used for data memory.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
44
Identify the letter of the choice that best matches the phrase or definition.
a.API
b.PPI
c.Xmx
d.Luminance
e.Amplitude
A sound's volume at a given moment.
a.API
b.PPI
c.Xmx
d.Luminance
e.Amplitude
A sound's volume at a given moment.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
45
The RGB value (0, 0, 0) represents the color ____________________.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
46
Identify the letter of the choice that best matches the phrase or definition.
a.API
b.PPI
c.Xmx
d.Luminance
e.Amplitude
The set of interfaces in a package or an entire language.
a.API
b.PPI
c.Xmx
d.Luminance
e.Amplitude
The set of interfaces in a package or an entire language.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
47
Identify the letter of the choice that best matches the phrase or definition.
a.API
b.PPI
c.Xmx
d.Luminance
e.Amplitude
Used to measure monitor resolution.
a.API
b.PPI
c.Xmx
d.Luminance
e.Amplitude
Used to measure monitor resolution.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck