Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q311: A graphic artist can use ______ to sketch outlines and then fill them with color.
- A: flood-fill
- B: line-fill
- C: boundary-fill
- D: color-picker
View Answer
C
Q312: The recursive call boundaryFill(x+1, y, fillColor, boundaryColor) explores which neighbor?
- A: Left
- B: Right
- C: Top
- D: Bottom
View Answer
B
Q313: The recursive call floodFill(x, y-1, fillColor, oldColor) explores which neighbor?
- A: Top
- B: Bottom
- C: Left
- D: Right
View Answer
A
Q314: Boundary fill starts filling from a point ______.
- A: outside the figure
- B: on the edge
- C: inside the figure
- D: below the figure
View Answer
C
Q315: Flood fill is preferred when ______.
- A: outline is not defined
- B: pixel color needs to be replaced
- C: shapes are incomplete
- D: fill color is not defined
View Answer
B
Q316: Which color is never changed by boundary-fill algorithm?
- A: Fill color
- B: Transparent color
- C: Background color
- D: Boundary color
View Answer
D
Q317: Which of the following is TRUE about flood-fill?
- A: It ignores unconnected pixels
- B: It works from outside in
- C: It requires a boundary
- D: It only uses two directions
View Answer
A
Q318: The function fillFast(x, y, fillColor) internally calls ______.
- A: fillBoundary
- B: floodEast
- C: fillEast, fillSouth, fillWest, fillNorth
- D: checkFill
View Answer
C
Q319: Boundary-fill and flood-fill are both types of ______ algorithms.
- A: Drawing
- B: Raster scan
- C: Area-filling
- D: Line clipping
View Answer
C
Q320: boundaryFill algorithm can be called how many times from one call?
- A: 2
- B: 4
- C: 6
- D: 1
View Answer
B