Question
Which statements are true?
P: For a line with slope m>1, we should change the outer line in line (4) to be over y.
Q: Lines (10) and (12) update the decision variable d through an incremental evaluation of the line equation f.
R: The algorithm fails if d is over 0.
1. Input (x1,y1) and (x2,y2)
2. y=y1
3. d=f(x1+1,y1+1/2) //f is the implicit form of a line
4. for x=x1 to x2
5. do
6. plot(x,y)
7. if (d<0)
8. then
9. y=y+1
10. d=d+(y1−y2)+(x2−x1)
11. else
12. d=d+(y1−y2)
13. end
14. end
a.
P, Q and R
b.
P only
c.
P and Q only
d.
Q and R only
Posted under UGC NET computer science question paper Computer Graphics
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Consider the midpoint (or Bresenham) algorithm for rasterizing lines given below: Which statements are true? P: For a line with slope m>1, we should change the outer line in...
Similar Questions
Discover Related MCQs
Q. The aspect ratio of an image is defined as
View solution
Q. The Z-buffer algorithm is used for Hidden surface removal of objects. The maximum number of objects that can be handled by this algorithm shall
View solution
Q. If the Fourier transform of the function f(x, y) is F(m, n), then the Fourier transform of the function f(2x, 2y) is :
View solution
Q. Which of the following is not true with respect to a trackball and/or spaceball ?
I. A trackball is a two dimensional positioning device while as a spaceball provides six degrees of freedom.
II. Unlike the trackball a spaceball does not actually move.
Ill. A trackball is a three dimensional positioning device while as a spaceball provides six degrees of freedom.
View solution
Q. Which of the following statement(s) is (are) true?
I. Two successive translations are additive.
II. Two successive rotations are additive.
III. Two successive scaling operations are multiplicative
View solution
Q. Given below are three basic rules:
I. Squash and Stretch
II. Slow-in and Slow-out
III. To stage the action properly
These rules are applied in case of :
View solution
Q. Which of the following points lies on the same side as the origin with reference to the line 3x + 7y= 2 ?
View solution
Q. Which of the following categories of languages do not refer to animation languages?
View solution
Q. Match the following:
List- I List- II
a. Tablet, Joystick i Continuous devices
b. Light Pen, Touch Screen ii. Direct devices
c. Locator, Keyboard iii. Logical devices
d. Data Globe, Sonic Pen iv. 3D interaction wires
code
a b c d
View solution
Q. A technique used to approximate halftones without reducing spatial resolution is known as
View solution
Q. Consider a triangle represented by A(0, 0), B(1, 1), C(5, 2). The triangle is rotated by 45 degrees about a point P( -1, -1). The co-ordinates of the new triangle obtained after rotation shall be
View solution
Q. Match the following :
a. Cavalier Projection i. The direction of projection is chosen so that there is no foreshortening of lines perpendicular to the xy plane.
b. Cabinet Projection ii. The direction of projection is chosen so that lines perpendicular to the xy planes are foreshortened by half their lengths.
c. Isometric Projection iii. The direction of projection makes equal angles with all of the principal axis.
d. Orthographic Projection iv. Projections are characterized by the fact that the direction of projection is perpendicular to the view plane.
code:
a b c d
View solution
Q. Give the number of principal vanishing point(s) along with their direction for the standard perspective transformation :
View solution
Q. Which of the following is not a basic primitive of the Graphics Kernel System (GKS)?
View solution
Q. Which of the following statement(s) is/are incorrect?
(a) Mapping the co-ordinates of the points and lines that form the picture into the appropriate co-ordinates on the device or workstation is known as viewing transformation.
(b) The right-handed Cartesian co-ordinates system in whose co-ordinates we describe the picture is known as world co-ordinate system.
(c) The co-ordinate system that corresponds to the device or workstation where the image is to be displayed is known as physical device co-ordinate system.
(d) Left - handed co-ordinate system in which the display area of the virtual display device corresponds to the unit (|x|) square whose lower left-hand corner is at the origin of the co-ordinate system, is known as normalized device co-ordinate system.
View solution
Q. Match the following:
List – I List – II
(a) Flood Gun (i) An electron gun designed to flood the entire screen with electrons.
(b) Collector (ii) Partly energized by flooding gun, stores the charge generated by the writing gun.
(c) Ground (iii) Used to discharge the collector.
(d) Phosphorus grains (iv) Used in memory - tube display and similar to those used in standard CRT.
(e) Writing Gun System (v) Used in memory - tube display and basically the same as the electron gun used in a conventional CRT.
code:
a b c d e
View solution
Q. The redundancy in images stems from :
View solution
Q. Beam-penetration and shadow-mask are the two basic techniques for producing color displays with a CRT.
Which of the following is not true ?
I. The beam-penetration is used with random scan monitors.
II. Shadow-mask is used in raster-scan systems.
III. Beam-penetration method is better than shadow-mask method.
IV. Shadow-mask method is better than beam-penetration method.
View solution
Q. Line caps are used for adjusting the shape of the line ends to give them a better appearance. Various kinds of line caps used are
View solution
Q. Given below are certain output primitives and their associated attributes. Match each primitive with its corresponding attributes :
List I List - II
a. Line i. Type, Size, Color
b. Fill Area ii. Color, Size, Font
c. Text iii. Style, Color, Pattern
d. Marker iv.Type, Width, Color
Codes :
a b c d
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Computer Graphics? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!