Deck 7: Simple Graphics and Image Processing

ملء الشاشة (f)
exit full mode
سؤال
An N-level c-curve can be drawn with a recursive function.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Early recording and playback devices for images and sound were all discrete devices.
سؤال
The coordinate system for turtle graphics is the standard Cartesian system, with the origin (0, 0) at the bottom-left corner of a window.
سؤال
The RGB system is called a true color system.
سؤال
In the RGB system, each color component can range from 0 through 127.
سؤال
The rectangular display area on a computer screen is made up of colored dots called picture elements or pixels.
سؤال
Constructors are used to create new instances of a class.
سؤال
A fractal curve is one-dimensional.
سؤال
In turtle graphics, the turtle is initially facing east.
سؤال
The setPixels method of the Turtle class changes the width of the turtle in pixels to the specified value.
سؤال
A fractal object can be described using Euclidean geometry.
سؤال
In the RGB system, the value 255 represents the total absence of that component.
سؤال
The size of a pixel is determined by the size and resolution of the display.
سؤال
In turtle graphics, the color used is initially black.
سؤال
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.
سؤال
An attempt to manipulate a turtle whose window has been closed raises an error.
سؤال
In turtle graphics, the width of the line drawn when the turtle moves is initially 2 pixels.
سؤال
Programmers who use objects interact with them through their interfaces.
سؤال
Generally, an object's state is the set of values of its attributes at any given point in time.
سؤال
RGB stands for red, green, and black.
سؤال
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
سؤال
The GIF format uses a lossless compression scheme.
سؤال
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 raw image file saves all of the sampled information.
سؤال
Which of the following image formats is considered to be the most popular? (Choose two.)

A) XCF
B) GIF
C) JPEG
D) SVG
سؤال
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
سؤال
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.
سؤال
What coordinate system is utilized for the Turtle graphics toolkit?

A) cartesian system
B) polar system
C) square system
D) fractal system
سؤال
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()
سؤال
The screen coordinate system for the display of an image is somewhat different from the standard Cartesian coordinate system used with Turtle graphics.
سؤال
The Turtle graphics toolkit was originally developed as part of what programming language for children?

A) LISP
B) FORTRAN
C) Logo
D) CKids
سؤال
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.
سؤال
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
سؤال
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
سؤال
Many image-processing algorithms use a nested loop structure to traverse a two-dimensional grid of pixels.
سؤال
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.
سؤال
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.
سؤال
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
سؤال
The images module is a standard, open-source Python tool.
سؤال
Which of the following classes are associated with a Turtle object? (Choose two.)

A) Screen
B) Canvas
C) Plot
D) Page
سؤال
What two Turtle methods affect the color of a Turtle drawing? (Choose two.)

A) setcolor()
B) pencolor()
C) fillcolor()
D) drawcolor()
سؤال
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 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
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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
سؤال
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.
سؤال
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()
سؤال
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))
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
In the RGB system, each color component can range from 0 through 127.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
The rectangular display area on a computer screen is made up of colored dots called picture elements or pixels.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Constructors are used to create new instances of a class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
A fractal curve is one-dimensional.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
In turtle graphics, the turtle is initially facing east.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
The setPixels method of the Turtle class changes the width of the turtle in pixels to the specified value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
A fractal object can be described using Euclidean geometry.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
In the RGB system, the value 255 represents the total absence of that component.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The size of a pixel is determined by the size and resolution of the display.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
In turtle graphics, the color used is initially black.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
An attempt to manipulate a turtle whose window has been closed raises an error.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
In turtle graphics, the width of the line drawn when the turtle moves is initially 2 pixels.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
Programmers who use objects interact with them through their interfaces.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
Generally, an object's state is the set of values of its attributes at any given point in time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
RGB stands for red, green, and black.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The GIF format uses a lossless compression scheme.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
A raw image file saves all of the sampled information.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
Many image-processing algorithms use a nested loop structure to traverse a two-dimensional grid of pixels.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
The images module is a standard, open-source Python tool.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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))
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.