Ans is B
There are two types of line drawing algorithms 1) DDA which uses floating point arithmetic hence need approximation for pixels(but algo is simple)
2)Bresenham's line algo which uses Integer arithmetic only and hence easy to do computation (but algo is difficult)