Top 550+ Solved Computer Graphics MCQ Questions Answer
Q. A clipping window has coordinates as A (50, 10), B (80, 10), C (80, 40), D (50, 40). A line segment has end coordinates (70, 20) and (1, 10). What will be the end points of clipped line? Use Cohen – Sutherland Outcode Algorithm.
a. (80, 16.66)
b. (80, 16.66) and (20, 70)
c. (80, 16.66) and (70, 20)
d. (16.66, 80) and (70, 20)
Q. Clip a line starting from (-13, 5) and ending at (17, 11) against the window having lower left corner at (-8, -4) and upper right corner at ( 12,8). What will be the end points of clipped line? Use Cohen – Sutherland Outcode Algorithm.
a. (-8,6) and (2,8)
b. (-8,6) and (8,2)
c. (6,-8) and (2,8)
d. (8,-6) and (8,2)
Q. Following are coordinates of clipping window : Lower Left Corner (20,20) and Upper Right Corner (200,200). A line has end coordinates as (5,50) and (15,150). The given line segment is ___________. Use Cohen – Sutherland Outcode Algorithm.
a. completely visible
b. partially visible
c. completely invisible
d. none of above
Q. Following are coordinates of clipping window : Lower Left Corner (20,20) and Upper Right Corner (200,200). A line has end coordinates as (0,10) and (250,15). The given line segment is ___________. Use Cohen – Sutherland Outcode Algorithm.
a. completely visible
b. partially visible
c. completely invisible
d. none of above
Q. A rectangular clipping window whose lower left corner is at (-3,1) and upper right corner is at (2,6). If line segment has end coordinates (-4,2) and (-1,7). What will the end coordinates of clipped line (use Cohen – Sutherland Outcode Algorithm)
a. (-3, 11/3) and (-8/5, 6)
b. (3/11, -3) and ( -5/8, 6)
c. (-3, 3/11) and (-8/5,6)
d. (-11/3, 3) and (-6, 8/5)
Q. In normalization transformation for window to viewport, window is lower left corner (2,2) and upper right corner at (6,10) to a view point with lower left corner at (0,0) and upper right corner at(1, 1) .Scaling factors Sx =___ & Sy= ___
a. 0.25 & 0.5
b. 0.25 & 0.125
c. 0.5 & 0.25
d. 0.125 & 0.25
Q. In viewing from a window in world coordinates with x extent 3 to 12 & y extent 2 to 10 onto a viewport with x extent ¼ to 3/4and y extent 0 to ½ in normalized device space .Scaling factor Sx= & Sy = ___
a. 1/18 & 16
b. 1/16 & 1/18
c. 18 & 1/16
d. 1/18 & 1/16
Q. In 8 connected region if one pixel is (x,y) then remaining neighboring pixels are
a. (x+1, y ) (x-1,y) (x,y+1) (x,y-1) (x-1,y-1) (x-1, y+1) (x+1, y-1) (x+1, y+1)
b. (x+1, y ) (x-1,y) (x,y+1) (x,y) (x-1,y-1) (x-1, y+1) (x+1, y-1) (x+1, y+1)
c. (x-1,y-1) (x-1, y+1) (x+1, y-1) (x+1, y+1)
d. (x+1, y ) (x-1,y) (x,y+1) (x,y-1) (x-1,y-1)