Skip to main content

Computer Graphics MCQs with Answers

Practice important Computer Graphics MCQs with answers and explanations.

Multiple Choice Questions

Q1371: Fill in the blank: The ___________ function is used to define the camera's projection in OpenGL.
  • A: glFrustum
  • B: glLoadIdentity
  • C: gluLookAt
  • D: glTranslatef()
View Answer
A

Q1372: What is the main purpose of using the glFrustum() function in OpenGL?
  • A: Define a perspective projection matrix
  • B: Set the field of view
  • C: Apply a translation matrix
  • D: Set the near and far planes
View Answer
A

Q1373: What does the gluPerspective() function do in OpenGL?
  • A: Defines a perspective projection matrix
  • B: Defines a modelview matrix
  • C: Defines the near and far planes
  • D: Sets the camera position
View Answer
A

Q1374: The order of transformations in OpenGL is important because:
  • A: They are always applied in the same order
  • B: Transformation order affects the final result
  • C: They don't affect the result
  • D: They must always be applied in reverse
View Answer
B

Q1375: Which of the following transformations does glTranslate*() perform in OpenGL?
  • A: Scaling the object
  • B: Moving the object along the x, y, and z axes
  • C: Rotating the object
  • D: Reflecting the object
View Answer
B

Q1376: In the following OpenGL code, what is the effect of glTranslatef(0.0, 0.0, 0.0)?
  • A: Reflects the object
  • B: No effect on the object
  • C: Rotates the object
  • D: Translates the object to the origin
View Answer
B

Q1377: Which OpenGL function rotates an object around the x, y, and z axes?
  • A: glRotatef()
  • B: glTranslatef()
  • C: glScalef()
  • D: glLoadIdentity()
View Answer
A

Q1378: What does the glScale*() function in OpenGL do?
  • A: It reflects an object across axes
  • B: It stretches or shrinks an object
  • C: It moves an object
  • D: It rotates an object
View Answer
B

Q1379: The effect of a scale factor of -1.0 on an object in OpenGL is:
  • A: Shrinking the object
  • B: Stretching the object
  • C: Reflecting the object across an axis
  • D: Rotating the object
View Answer
C

Q1380: What is the primary purpose of the modelview matrix in OpenGL?
  • A: To define the color of an object
  • B: To combine transformations for modeling and viewing
  • C: To handle texture mapping
  • D: To set the lighting for the scene
View Answer
B

Test Your Knowledge

Take a timed quiz on Computer Graphics

🚀 Start Quiz Now