THE EAST AFRICAN UNIVERSITY (TEAU)
SCHOOL OF COMPUTER SCIENCE AND IT
DEPARTMENT OF COMPUTER SCIENCE
MAY – AUGUST 2021, MAIN EXAMINATION
DEGREE
COURSE : INTRODUCTION TO COMPUTER GRAPHICS
CODE : CIT 3102
TIME : 2 Hours
INSTRUCTIONS
1. The Paper is made up of FIVE (5) Questions, Answer question number ONE (compulsory) plus
any other TWO questions.
2. Credit is given for legibility, clarity of expressions and use of relevant illustrations.
3. Clearly write your registration number on each answer sheet used.
DO NOT WRITE ANYWHERE ON THIS QUESTION PAPER
Question one
a) With the help of diagrams, clearly describe how an object is displayed on the screen using:
a. Random Scan (4 Marks)
b. Raster Scan (4 Marks)
b) With the help of a diagram, describe the functions of the components of a display processor
(8 Marks)
c) Given a circle O with radius 8 and center coordinates (2, 5). Apply the translation with distance 4
towards X axis and 3 towards Y axis. Obtain the new coordinates of O without changing its
radius. (8 Marks)
d) Describe the application of computer graphics in the following fields. (6 Marks)
i. Entertainment
ii. Visualization
Question two
a) Use Digital differential Analizer (DDA) line drawing Algorithm to calculate the points
on a line between the starting point (4,2) and ending point (8,12). (NB: Show all necessary steps)
(10 Marks)
1
b) With clear labeled diagram, explain the operation of all the components of a CRT Monitor.
(10Marks)
Question three
a) State and explain two main types of color models used in computer graphics (6 Marks)
b) Explain the concept of a shadow-mask as used in CRT monitors (4 Marks)
c) Given a 3D triangle with coordinate points A(2, 3, 0), B(5, 3, 1), C(4, 5, 2). Apply the reflection on
the XZ plane and find out the new coordinates of the object. (NB: Show necessary conditions of
reflection on XZ plane) (10 Marks)
Question four
a) Using Bresenham Line Drawing Algorithm, Calculate the points of a line between the starting
coordinates (3, 5) and ending coordinates (8, 10). (NB: Show necessary steps of your working, and
all points generated) (8 Marks)
b) Given a line segment with starting point as (0, 0) and ending point as (6, 5). Apply 30 degree
rotation anticlockwise direction on the line segment and find out the new coordinates of the line.
(7 Marks)
c) Draw a sketch diagram for part b above (5 Marks)
Question five
a) Given a triangle with corner coordinates (0,0), (2,0) and (2,2). Rotate the triangle by 90 degree
clockwise direction and find out the new coordinates. Draw a sketch diagram on the Cartesian plane
to represent both original object and new image after rotation. (8 Marks)
b) Describe Appropriate application of the following image file formats: (6 Marks)
i. JPEG
ii. PNG
iii. GIF
c) With the help of a diagram, describe the following clipping techniques
i. Point clipping (3 Mark)
ii. Text Clipping (3 Mark)