Deck 5: Using Classes and Objects in Media Computing

ملء الشاشة (f)
exit full mode
سؤال
An image with a file size of 120 kilobytes and an image size of 300 by 225 pixels is a large file.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
____ give programmers access to complex behavior.

A) Objects
B) Aspects
C) Samples
D) Mutators
سؤال
A pixel contains integer values that represent its color in terms of ____ components.

A) PPI
B) aspect
C) height and width
D) RGB
سؤال
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.
سؤال
In a pixel grid, the x-coordinates increase positively towards the bottom. ____________________
سؤال
Use the saveAs method to overwrite an image file with the changes made in the program. ____________________
سؤال
A mutator is a method that is used to modify the internal contents of an object. ____________________
سؤال
Loops that march across a row before moving onto the next row use a row-major traversal pattern.
سؤال
An image basically consists of all of the following EXCEPT ____.

A) width
B) height
C) depth
D) set of pixels
سؤال
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
سؤال
When the resolution of a monitor is increased, the images appear larger.
سؤال
To convert an image to grayscale, the average of a pixel's color values is calculated, and each value is reset to the average.
سؤال
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.
سؤال
The aspect ratio of a pixel is used to detect an edge.
سؤال
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
سؤال
For the color white, the RGB values are all 255. ____________________
سؤال
In a pixel grid, the y-coordinates increase positively towards the top.
سؤال
A sample size of 16 bits allows signed integers from 0 to 1.
سؤال
Each pixel is accessible by means of its (x, y) coordinates.
سؤال
Use the method setColor to replace an RGB value at a given position in an image. ____________________
سؤال
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
سؤال
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 constructor without parameters is known as a(n) ____ constructor.

A) default
B) uninstantiated
C) mutated
D) object
سؤال
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
سؤال
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
سؤال
An enhanced for loop is also called a(n) ____ loop.

A) for-for
B) for-each
C) then-for
D) if-for
سؤال
FIGURE 5-1 <strong>FIGURE 5-1   The image to the right in Figure 5-1 above has ____.</strong> A) been converted to black and white B) had its brightness adjusted C) had its edges detected D) been converted to grayscale <div style=padding-top: 35px>
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
سؤال
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
سؤال
Object ____ makes a new object available to a program.

A) orientation
B) definition
C) instantiation
D) access
سؤال
A program instantiates a class by using one of its ____ with the new operator.

A) variables
B) constructors
C) accessors
D) mutators
سؤال
Image-manipulation packages allow you to transfer images from file to working storage in ____________________.
سؤال
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
سؤال
The inputs to an echo algorithm are a sound clip and an integer ____.

A) coordinate
B) value
C) variable
D) delay
سؤال
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
سؤال
To use an object effectively, the programmer must know the set of ____ that it recognizes.

A) classes
B) methods
C) parameters
D) packages
سؤال
FIGURE 5-2 <strong>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.</strong> A) Line B) Edge C) Luminance D) Color <div style=padding-top: 35px>
____ 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
سؤال
The area of RAM reserved for Java objects is called the ____ space.

A) heap
B) free
C) storage
D) save
سؤال
A(n) ____________________ is a colored dot that is used as a part of an image file display.
سؤال
____________________-based programming is the discipline of using existing classes, objects, and methods to solve problems.
سؤال
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
سؤال
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.
سؤال
The set of an object's methods available to users is called its ____________________.
سؤال
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.
سؤال
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.
سؤال
The RGB value (0, 0, 0) represents the color ____________________.
سؤال
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.
سؤال
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.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/47
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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
3
A pixel contains integer values that represent its color in terms of ____ components.

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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
5
In a pixel grid, the x-coordinates increase positively towards the bottom. ____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
6
Use the saveAs method to overwrite an image file with the changes made in the program. ____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
7
A mutator is a method that is used to modify the internal contents of an object. ____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
8
Loops that march across a row before moving onto the next row use a row-major traversal pattern.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
9
An image basically consists of all of the following EXCEPT ____.

A) width
B) height
C) depth
D) set of pixels
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
11
When the resolution of a monitor is increased, the images appear larger.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
14
The aspect ratio of a pixel is used to detect an edge.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
16
For the color white, the RGB values are all 255. ____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
17
In a pixel grid, the y-coordinates increase positively towards the top.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
18
A sample size of 16 bits allows signed integers from 0 to 1.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
19
Each pixel is accessible by means of its (x, y) coordinates.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
20
Use the method setColor to replace an RGB value at a given position in an image. ____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
23
A constructor without parameters is known as a(n) ____ constructor.

A) default
B) uninstantiated
C) mutated
D) object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
27
FIGURE 5-1 <strong>FIGURE 5-1   The image to the right in Figure 5-1 above has ____.</strong> 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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
29
Object ____ makes a new object available to a program.

A) orientation
B) definition
C) instantiation
D) access
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
31
Image-manipulation packages allow you to transfer images from file to working storage in ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
36
FIGURE 5-2 <strong>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.</strong> 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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
37
The area of RAM reserved for Java objects is called the ____ space.

A) heap
B) free
C) storage
D) save
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
38
A(n) ____________________ is a colored dot that is used as a part of an image file display.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
39
____________________-based programming is the discipline of using existing classes, objects, and methods to solve problems.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
42
The set of an object's methods available to users is called its ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
45
The RGB value (0, 0, 0) represents the color ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.