Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q1381: When performing modeling transformations in OpenGL, which of the following must come first?
- A: glLoadIdentity()
- B: glMultMatrixf()
- C: Viewing transformations
- D: None of the above
View Answer
A
Q1382: In OpenGL, the glMatrixMode() function sets the current matrix mode to:
- A: Projection
- B: Modelview
- C: Texture
- D: Lighting
View Answer
B
Q1383: The effect of the glRotatef(45.0, 0.0, 0.0, 1.0) function call is:
- A: Rotation around the x-axis
- B: Rotation around the z-axis
- C: Rotation around the y-axis
- D: No rotation
View Answer
B
Q1384: In the OpenGL example code, the transformations are applied in which order?
- A: First N, then M, then L
- B: First M, then L, then N
- C: First L, then M, then N
- D: The order doesn't matter
View Answer
A
Q1385: Which of the following operations can glScalef() perform?
- A: Scaling and reflecting an object
- B: Translating an object
- C: Rotating an object
- D: None of the above
View Answer
A
Q1386: The glTranslate*() function in OpenGL is used for:
- A: Translating the camera
- B: Scaling the object
- C: Translating the object
- D: Rotating the object
View Answer
C
Q1387: Fill in the blank: To rotate an object around the origin in OpenGL, we use the function _________.
- A: glTranslatef()
- B: glScalef()
- C: glRotatef()
- D: glMultMatrixf()
View Answer
C
Q1388: Which of the following is true about the OpenGL matrix multiplications?
- A: They always affect the local coordinate system
- B: The last transformation is applied first
- C: They don't affect the objects in the scene
- D: The order of transformations doesn’t matter
View Answer
B
Q1389: Fill in the blank: The transformation that moves an object to a new position in OpenGL is ________.
- A: glRotatef()
- B: glScalef()
- C: glTranslatef()
- D: glLoadIdentity()
View Answer
C
Q1390: What does glRotatef(0.0, 0.0, 0.0, 1.0) do in OpenGL?
- A: No rotation occurs
- B: Rotates the object by 0 degrees
- C: Reflects the object
- D: Translates the object
View Answer
A