1.

The 4-bit code of top-left region of the window is ____________(a) 1001(b) 1100(c) 0101(d) 1010This question was posed to me in exam.This interesting question is from Cohen-Sutherland Line Clipping in section 2D Transformation and Viewing of Computer Graphics

Answer»

Correct answer is (a) 1001

To explain I would say: The sequence for READING the CODES’ bits is LRBT (Left, Right, BOTTOM, Top). SINCE it is in the top-left corner of the window, hence its code will be 1001.



Discussion

No Comment Found

Related InterviewSolutions