A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. Consider the Breshenham’s line generation algorithm for a line with gradient greater than one, current point (xi, yi) and decision parameter, di. The next point to be plotted (xi+1, yi+1) and updated decision parameter, di+1, for di < 0 are given as .................

(A) xi+1 = xi+1
yi+1 = yi
di+1 = di + 2 dy

(B) xi+1 = xi
yi+1 = yi + 1
di+1 = di + 2 dx

(C) xi+1 = xi
yi+1 = yi + 1
di+1 = di + 2 (dx – dy)

(D) xi+1 = xi + 1
yi+1 = yi + 1
di+1 = di + 2 (dy – dx)
a. A
b. B
c. C
d. D
Answer:B
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: