Computer Graphics
A) UTF-8
B) UCS-2
C) UTF-16
D) none of these
2. In UTF-8, European scripts are represented in ______________.
A) 1 byte
B) either 1 or 2 bytes
C) 3 bytes
D) 4 bytes
3. In UTF-8, Asian scripts are represented in ______________.
A) 1 byte
B) either 1 or 2 bytes
C) 3 bytes
D) 4 bytes
4. In UTF-8, supplementary characters are represented in ______________.
A) 1 byte
B) either 1 or 2 bytes
C) 3 bytes
D) 4 bytes
5. If two points used to line are (x1, y1) and (x2, y2), then the equation of a line is given as _____________.
A) 𝑥−𝑥1 𝑦−𝑦1 = 𝑦2−𝑦1 𝑥2−𝑥1
B) 𝒚−𝒚𝟏 𝒙−𝒙𝟏 = 𝒚𝟐−𝒚𝟏 𝒙𝟐−𝒙𝟏
C) (a) or (b)
D) none of these
6. When a line is represented by equations, y = mx + b and rx + sy +t = 0, m = ___________.
A) − 𝒓 𝒔
B) 𝑟 𝑠
C) 𝑠 𝑟
D) − 𝑠 𝑟
7. When a line is represented by a equation in a general form as, rx + sy + t =0, the values of r, s and t are taken so that ________.
A) r 2 – s 2 = 1
B) r 2 + s2 = 1
C) r 2 – s 2 = 0
D) r 2 + s2 = 0
8. If two line are represented by equations r1x + s1y + t1 = 0 and r2x + s2y + t2 = 0, then their point of intersection is given by, ______________.
A) 𝒔𝟏𝒕𝟐− 𝒔𝟐𝒕𝟏 𝒔𝟐𝒓𝟏− 𝒔𝟏𝒓𝟐 , 𝒕𝟏𝒓𝟐− 𝒕𝟐𝒓𝟏 𝒔𝟐𝒓𝟏− 𝒔𝟏𝒓𝟐
B) 𝑠2𝑡1− 𝑠1𝑡2 𝑠2𝑟1− 𝑠1𝑟2 , 𝑡2𝑟1− 𝑡1𝑟2 𝑠2𝑟1− 𝑠1𝑟2
C) 𝑠1𝑡2− 𝑠2𝑡1 𝑠1𝑟2− 𝑠2𝑟1 , 𝑡1𝑟2− 𝑡2𝑟1 𝑠1𝑟2− 𝑠2𝑟1
D) 𝑠2𝑟1− 𝑠1𝑟2 𝑠1𝑡2− 𝑠2𝑡1 , 𝑠2𝑟1− 𝑠1𝑟2 𝑡1𝑟2− 𝑡2𝑟1
9. If a line segment between (x1, y1) and (x2, y2) is represented in parametric form with a parameter u, then the expression for y can be given as ____________.
A) y = y1 + (y2 – y1)u
B) y = y1 – (y2 – y1)u
C) y = y1 + (y1 – u)y2
D) y = y1 + (u – y1)y2
10. If two endpoints of a line segment are P1 (x1, y1) and P2 (x2, y2), then the length of the line segment P1P2, L is given by ______.
A) L = [ (x2 - x1) 2 + (y2 - y1) 2 ]
B) L = [ (x2 - x1) 2 - (y2 - y1) 2 ] 1/2
C) L = [ (x2 - x1) 2 + (y2 - y1) 2 ] 1/2
D) none
11. A vector has ________________.
A) a single direction
B) a length
C) nstwo directio
D) both (a) and (b)
12. The brightness of the line is dependent on the _____________of the line.
A) orientation
B) start and end points
C) length
D) none of these
13. ___________ is the Unicode encoding used by Java and Microsoft Windows NT 4.0.
A) UTF-8
B) UCS-2
C) UTF-16
D) Both (b) and (c)
14. _____________ provides better compatibility with Java and Microsoft clients.
A) UTF-8
B) UCS-2
C) UTF-16
D) Both (b) and (c)
15. Sign function makes the DDA line drawing algorithm work in ____________ quadrants.
A) I and II
B) I and III
C) II and III
D) all