MCQ | Line Drawing Algorithms in Computer Graphics

Multiple choice questions and answers (MCQ) based on the Line Drawing Algorithms in computer graphics with 4 choices, correct answer and explanation.
Submitted by Monika Sharma, on October 12, 2020

Question 1: What is the formula for calculating the slope 'm' of a line?

  1. m = dx / dy
  2. m = dy / dx
  3. y = mx + c
  4. None of the above

Answer: b. m = dy / dx

Explanation:

The slope of a straight line is calculated using the following:

m = (y2 – y1) / (x2 – x1)
m = dy / dx

Question 2: Which of the following is a line drawing algorithm?

  1. Line equation algorithm
  2. Digital Differential Analyzer (DDA) algorithm
  3. Bressenham's algorithm
  4. All of the above

Answer: d. All of the above

Explanation:

All the mentioned algorithms: Line equation algorithm, the DDA algorithm and the Bressenham's line drawing algorithm are used for line drawing in computer graphics.


Question 3: Which of the following statements is not true with respect to the Digital Differential Analyzer (DDA) algorithm?

  1. It is an incremental method of scan conversion of line
  2. In this method, calculation is performed at each step but by using the results of previous steps.
  3. This algorithm can also be used to draw circle
  4. None of the above

Answer: c. This algorithm can also be used to draw circle.

Explanation:

The DDA algorithm is applicable only for line drawing. Circle cannot be drawn using this algorithm. For circle drawing, there are other algorithms available like the mid-point circle drawing algorithm, etc.


Question 4: Which of the following options is not correct according to the definition of Bresenham's line drawing algorithm?

  1. It gives a close approximation of points of line by determining n-dimensional raster that should be selected.
  2. It is an incremental error algorithm.
  3. It gives exact line points.
  4. None of the above

Answer: c. It gives exact line points

Explanation:

It gives a close approximation of points of line by determining n-dimensional raster that should be selected.


Question 5: "The Digital Differential Analyzer (DDA) algorithm is an incremental method of scan conversion of line."
Based upon the above statement, determine whether the following condition is true or false.
"The DDA algorithm uses the results of previous step for determining the value of the next step."

  1. True
  2. False

Answer: a. True

Explanation:

As the DDA algorithm is an incremental algorithm, it uses the previous values for determining the next values.


More...

  1. MCQ | Introduction to Computer Graphics
  2. MCQ | Cathode Ray Tube (CRT) in Computer Graphics
  3. MCQ | Line Filling Algorithms in Computer Graphics
  4. MCQ | Graphics Hardware and Display Devices in Computer Graphics
  5. MCQ | Random Scan and Raster Scan in Computer Graphics
  6. MCQ | Scan Conversion in Computer Graphics
  7. MCQ | Circle Drawing and Ellipse Drawing Algorithms in Computer Graphics
  8. MCQ | Types of Transformations (Translation, Rotation and Scaling) in Computer Graphics
  9. MCQ | Bresenham's Algorithm in Computer Graphics
  10. MCQ | Window to Viewport Transformation in Computer Graphics


Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.