Deck 7: Simple Graphics and Image Processing
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
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
Play
Full screen (f)
Deck 7: Simple Graphics and Image Processing
1
An N-level c-curve can be drawn with a recursive function.
True
2
Early recording and playback devices for images and sound were all discrete devices.
False
3
The coordinate system for turtle graphics is the standard Cartesian system, with the origin (0, 0) at the bottom-left corner of a window.
False
4
The RGB system is called a true color system.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
In the RGB system, each color component can range from 0 through 127.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
The rectangular display area on a computer screen is made up of colored dots called picture elements or pixels.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
Constructors are used to create new instances of a class.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
A fractal curve is one-dimensional.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
In turtle graphics, the turtle is initially facing east.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
The setPixels method of the Turtle class changes the width of the turtle in pixels to the specified value.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
A fractal object can be described using Euclidean geometry.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
In the RGB system, the value 255 represents the total absence of that component.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
The size of a pixel is determined by the size and resolution of the display.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
In turtle graphics, the color used is initially black.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
The ticks representing seconds on the analog clock's face represent an attempt to sample moments of time as discrete values, whereas time itself is continuous, or analog.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
An attempt to manipulate a turtle whose window has been closed raises an error.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
In turtle graphics, the width of the line drawn when the turtle moves is initially 2 pixels.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
Programmers who use objects interact with them through their interfaces.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
Generally, an object's state is the set of values of its attributes at any given point in time.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
RGB stands for red, green, and black.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
What type of image compression analyzes larger regions of pixels and saves a color value that the pixels' colors approximate?
A) lossless compression
B) lossy compression
C) summary compression
D) recursive compression
A) lossless compression
B) lossy compression
C) summary compression
D) recursive compression
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
The GIF format uses a lossless compression scheme.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
The drawing of simple, two-dimensional shapes, such as rectangles, triangles, pentagons, and circles, is known as what type of graphics?
A) planar graphics
B) vector graphics
C) geometric graphics
D) targeted graphics
A) planar graphics
B) vector graphics
C) geometric graphics
D) targeted graphics
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
A raw image file saves all of the sampled information.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following image formats is considered to be the most popular? (Choose two.)
A) XCF
B) GIF
C) JPEG
D) SVG
A) XCF
B) GIF
C) JPEG
D) SVG
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
What is the maximum number of distinct color values that can be displayed by the true color RGB system?
A) 256
B) 16,384
C) 32,768
D) 16,777,216
A) 256
B) 16,384
C) 32,768
D) 16,777,216
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
How does digital information differ from analog information?
A) Digital information can be represented as wave patterns, while analog information consists of bits.
B) Digital information consists of a continuous range of values, while analog is a set of discrete values.
C) Digital information consists of discrete values, while analog is a continuous range of values.
D) Digital information is commonly used in basic image and sound devices, such as recorded records, while analog is used for electronic media.
A) Digital information can be represented as wave patterns, while analog information consists of bits.
B) Digital information consists of a continuous range of values, while analog is a set of discrete values.
C) Digital information consists of discrete values, while analog is a continuous range of values.
D) Digital information is commonly used in basic image and sound devices, such as recorded records, while analog is used for electronic media.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
What coordinate system is utilized for the Turtle graphics toolkit?
A) cartesian system
B) polar system
C) square system
D) fractal system
A) cartesian system
B) polar system
C) square system
D) fractal system
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
Given a Turtle object of t, what method can you use to erase all of the turtle's drawings, without changing the state?
A) t.delete()
B) t.clear()
C) t.erase()
D) t.scratch()
A) t.delete()
B) t.clear()
C) t.erase()
D) t.scratch()
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
The screen coordinate system for the display of an image is somewhat different from the standard Cartesian coordinate system used with Turtle graphics.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
The Turtle graphics toolkit was originally developed as part of what programming language for children?
A) LISP
B) FORTRAN
C) Logo
D) CKids
A) LISP
B) FORTRAN
C) Logo
D) CKids
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
What statement accurately defines what a pixel is?
A) A pixel is the name for the graphical draw point of any graphics generating program.
B) A pixel is the graphical equivalent of a byte in memory, and is used to store graphics data.
C) A pixel is a graphical font, which is used to write image data onto a screen.
D) A pixel is a colored dot, also known as a picture element, that makes up part of a display.
A) A pixel is the name for the graphical draw point of any graphics generating program.
B) A pixel is the graphical equivalent of a byte in memory, and is used to store graphics data.
C) A pixel is a graphical font, which is used to write image data onto a screen.
D) A pixel is a colored dot, also known as a picture element, that makes up part of a display.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
Programming that relies on the use of objects and methods to control complexity and solve problems is known as what type of programming?
A) access-based programming
B) object-based programming
C) serial-based programming
D) entry-based programming
A) access-based programming
B) object-based programming
C) serial-based programming
D) entry-based programming
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
What type of method returns the values of an object's attributes without altering its state?
A) mutator methods
B) controller methods
C) accessor methods
D) positional methods
A) mutator methods
B) controller methods
C) accessor methods
D) positional methods
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
Many image-processing algorithms use a nested loop structure to traverse a two-dimensional grid of pixels.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
In the images module, how does the Image class represent an image?
A) Using a detailed sample of the image's brightness values.
B) Using a rasterized copy of the image's color values.
C) Using a two-dimensional grid of RGB values.
D) Using a pixel map determined by grayscale values.
A) Using a detailed sample of the image's brightness values.
B) Using a rasterized copy of the image's color values.
C) Using a two-dimensional grid of RGB values.
D) Using a pixel map determined by grayscale values.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
What does the term "sampling" imply in relation to images?
A) The mapping of analog information in a visual format to discrete values.
B) The conversion of digital into analog information for display on a screen.
C) The process of creating analog information from digital information, for use in computer programs.
D) The utilization of a sample of data to represent a larger digital data set.
A) The mapping of analog information in a visual format to discrete values.
B) The conversion of digital into analog information for display on a screen.
C) The process of creating analog information from digital information, for use in computer programs.
D) The utilization of a sample of data to represent a larger digital data set.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
What RGB value should you use to produce a blue color?
A) 0, 0, 0
B) 0, 255, 0
C) 255, 255, 0
D) 0, 0, 255
A) 0, 0, 0
B) 0, 255, 0
C) 255, 255, 0
D) 0, 0, 255
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
The images module is a standard, open-source Python tool.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following classes are associated with a Turtle object? (Choose two.)
A) Screen
B) Canvas
C) Plot
D) Page
A) Screen
B) Canvas
C) Plot
D) Page
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
What two Turtle methods affect the color of a Turtle drawing? (Choose two.)
A) setcolor()
B) pencolor()
C) fillcolor()
D) drawcolor()
A) setcolor()
B) pencolor()
C) fillcolor()
D) drawcolor()
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
Why is the conversion of an image to grayscale by simply computing the average of a pixel less than ideal?
A) The conversion will still contain non-grayscale colors.
B) The conversion does not take luminance into account.
C) The conversion will cause some areas of the image to be invisible
D) The conversion will make details that are red or green in color hard to see.
A) The conversion will still contain non-grayscale colors.
B) The conversion does not take luminance into account.
C) The conversion will cause some areas of the image to be invisible
D) The conversion will make details that are red or green in color hard to see.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
A black-and-white photograph contains more than just the black and white colors, but various shades of gray known by what term?
A) grayshade
B) graymap
C) graycurve
D) grayscale
A) grayshade
B) graymap
C) graycurve
D) grayscale
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
When instantiating a class and assigning the resulting object to a variable, what is the right side of the assignment called?
A) The instantiator statement.
B) The spawner statement.
C) The constructor statement.
D) The creator statement.
A) The instantiator statement.
B) The spawner statement.
C) The constructor statement.
D) The creator statement.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
What effect does a higher DPI have on the sampling done by a digital camera?
A) It decreases the number of samples that are taken.
B) It increases the number of samples that are taken.
C) It decreases the amount of time needed for each sample.
D) It increases the amount of time needed for each sample.
A) It decreases the number of samples that are taken.
B) It increases the number of samples that are taken.
C) It decreases the amount of time needed for each sample.
D) It increases the amount of time needed for each sample.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
What is instantiation in Python?
A) It is the process of creating an IDLE session that utilizes a graphics window.
B) It is the process of calling a module mutator method.
C) It is the process of calling a function that returns no object.
D) It is the process of creating a class-based object.
A) It is the process of creating an IDLE session that utilizes a graphics window.
B) It is the process of calling a module mutator method.
C) It is the process of calling a function that returns no object.
D) It is the process of creating a class-based object.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
What is the term used to describe the processing of a multi-row, multi-column grid of information using a nested loop structure?
A) field circuit mapping
B) row-column mapping
C) row-major traversal
D) grid-centric retrieval
A) field circuit mapping
B) row-column mapping
C) row-major traversal
D) grid-centric retrieval
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
When discussing an image, what is an image's aspect ratio?
A) The ratio of the image's width to its height.
B) The ratio of the image's colors to their brightness.
C) The ratio of the image's bitrate to its size.
D) The ratio of the image's color gamut to its bitrate.
A) The ratio of the image's width to its height.
B) The ratio of the image's colors to their brightness.
C) The ratio of the image's bitrate to its size.
D) The ratio of the image's color gamut to its bitrate.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
What Turtle method is used to move the Turtle object instance t to the center of the window, pointed east?
A) t.start()
B) t.home()
C) t.return()
D) t.restart()
A) t.start()
B) t.home()
C) t.return()
D) t.restart()
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
Assuming you have an images module object named i, what method can you use to change the pixel at coordinate 238, 590 to red?
A) i.setPixel(238, 590, (255, 0, 0))
B) i.chgPixel(590, 238, (0, 255, 0))
C) i.modPixel(238, 590, (255, 0, 0))
D) i.Pixel(238, 590, (0, 0, 255))
A) i.setPixel(238, 590, (255, 0, 0))
B) i.chgPixel(590, 238, (0, 255, 0))
C) i.modPixel(238, 590, (255, 0, 0))
D) i.Pixel(238, 590, (0, 0, 255))
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck