Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q291: The filling operation on scan-line = 10 ends at x = ______.
- A: 22
- B: 27
- C: 28
- D: 23
View Answer
A
Q292: What is the main purpose of a boundary-fill algorithm?
- A: To draw lines
- B: To fill an area from the outside
- C: To fill an area from the inside outward
- D: To draw shapes
View Answer
C
Q293: What input is required for the boundary-fill algorithm?
- A: Only boundary color
- B: Starting point, fill color, and boundary color
- C: Only fill color
- D: Only starting point
View Answer
B
Q294: Which method fills the area by replacing connected pixels of a selected color?
- A: Boundary fill
- B: Paint fill
- C: Flood fill
- D: Edge fill
View Answer
C
Q295: The boundary fill algorithm works by checking which of the following conditions first?
- A: Pixel shape
- B: Boundary color and fill color
- C: Pixel intensity
- D: Pixel depth
View Answer
B
Q296: Which of the following is a recursive algorithm?
- A: Paint brush tool
- B: Boundary-fill
- C: Image smoothing
- D: Line drawing
View Answer
B
Q297: In boundary-fill, how many directions are typically checked for neighbors?
- A: Two
- B: Three
- C: Four
- D: Eight
View Answer
C
Q298: The flood fill algorithm requires which of the following parameters?
- A: x, y, fillColor, oldColor
- B: x, y, boundaryColor
- C: fillColor, x, y
- D: x, y, width
View Answer
A
Q299: In flood-fill, which color must be known before the algorithm starts?
- A: Fill color
- B: New color
- C: Old color
- D: Background color
View Answer
C
Q300: Boundary-fill fails when ______.
- A: fill color and boundary color are the same
- B: boundary is circular
- C: image is too large
- D: fill color is bright
View Answer
A