Computer Graphics MCQ set number 00055

1. The basic attributes of a straight line segment are
a) Type
b) Width
c) Color
d) All of these

Answer

Answer: d [Reason:] Type, width and colors are the basic attributes of line.

2. A dashed line could be displayed by generating___.
a) Inter dash spacing
b) Very short dashes
c) Botha a and b
d) A or B

Answer

Answer: a [Reason:] The inter dash spacing that is equal to the length of the solid sections displays dashed line.

3. A dotted line can be displayed by generating
a) Very short dashes with spacing equal to and greater than dash size
b) Very long dashes with spacing equal to or greater than dash size
c) Very short dashes with spacing equal to and greater than dash size
d) Dots

Answer

Answer: c [Reason:] Very long dashes with spacing equal to or greater than dash size can displays dotted line.

4. Which of the following is not a line-type?
a) Dashed line
b) Dark line
c) Dotted line
d) Only b

Answer

Answer: d [Reason:] Except dark line those are the types of the line.

5. In an application program, to set line-type attributes the following statement is used.
a) SetLinetype(lt)
b) setLinetype(lt)
c) SETLINETYPE(lt)
d) SETLINE()

Answer

Answer: b [Reason:] None.

6. The algorithm which displays line-type attributes by plotting pixel spans is
a) Raster line algorithm
b) Raster scan algorithm
c) Random line algorithm
d) Random scan algorithm

Answer

Answer: a [Reason:] Raster line algorithm displays line-type attributes.

7. Pixel mask means
a) A string containing only 1;s
b) A string containing only 0’s
c) A string containing 1 and 0
d) A string containing 0 and 0

Answer

Answer: c [Reason:] Inter span spacing can be specified in a pixel mask that contains digits 1 and 0.

8. A heavy line on a video monitor could be displayed as
a) Adjacent perpendicular lines
b) Adjacent parallel lines
c) Both a and b
d) Neither a nor b

Answer

Answer: b [Reason:] A heavy line displayed as adjacent parallel lines, while pen plotter might require pen changes.

9. To set the line-width attribute the following command is used.
a) SETLINEWIDTHSCALEFACTOR (lw)
b) Setlinewidth()
c) Setlinewidthscalefacto (lw)
d) setLineWidthScaleFactor (lw)

Answer

Answer: d [Reason:] setLineWidthScaleFactor (lw) function can be used to set line-width attribute.

10. The parameter to “setLineWidthScaleFactor (lw) “function specifies?
a) Standard width
b) Relative width of the line
c) Thickness of the line
d) All of the mentioned

Answer

Answer: b [Reason:] The positive value to lw indicates the relative width of the line.
Standard width, if Value=1
Thickness, if value>1.

11. We can adjust the shape of the line ends to give them a better appearance by using
a) Line spacing
b) More dots
c) Line caps
d) Round cap

Answer

Answer: c [Reason:] Line caps are obtained by adjusting the end points of the line.

12. Thick line drawn with
a) Butt caps
b) Round caps
c) Projecting square caps
d) All of the mentioned

Answer

Answer: d [Reason:] None.

13. We set the line-color value in PHIGS with the function
a) setPolylineColorIndex (lc)
b) setline Color()
c) SETPOLYLINECOLORINDEX (lc)
d) Only b

Answer

Answer: a [Reason:] The setPolylineColorIndex (lc) function is used to set the line color.

14. If the angle between 2 connected line segments is very small then ________ can generate a long spike that distorts the appearance of the polyline.
a) Miter join
b) Round join
c) Bevel join
d) None of the mentioned

Answer

Answer: a [Reason:] Miter join provides long spikes that distort the appearance of the polyline.

15. A line drawn in the background color is
a) Visible
b) Invisible
c) Visible or Invisible
d) Only b

Answer

Answer: d [Reason:] A line drawn in the background color is always invisible because both are same color.

ed010d383e1f191bdb025d5985cc03fc?s=120&d=mm&r=g

DistPub Team

Distance Publisher (DistPub.com) provide project writing help from year 2007 and provide writing and editing help to hundreds student every year.