Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q1401: What is the purpose of the glRotatef function in OpenGL?
- A: It moves the object
- B: It applies a rotation to the object
- C: It changes the camera position
- D: It scales the object
View Answer
B
Q1402: The matrix stack in OpenGL is useful for:
- A: Constructing hierarchical models
- B: Performing fast translations
- C: Creating lighting effects
- D: Rotating objects in 3D space
View Answer
A
Q1403: A camera's up-vector in gluLookAt() specifies:
- A: The camera's position
- B: The direction in which the camera is looking
- C: The direction from the bottom to the top of the viewing volume
- D: The angle of rotation of the camera
View Answer
C
Q1404: What does the glLoadIdentity() function do in OpenGL?
- A: Translates the camera
- B: Resets the current transformation matrix
- C: Sets the object's scale
- D: Defines the object’s material properties
View Answer
B
Q1405: In a flight simulator, which transformation routine would you use to display the world from the pilot's point of view?
- A: glRotatef()
- B: pilotView()
- C: glTranslatef()
- D: glLookAt()
View Answer
B
Q1406: Fill in the blank: The gluLookAt() function is typically used to view a scene from an arbitrary _______.
- A: object
- B: camera
- C: point
- D: angle
View Answer
C
Q1407: The glTranslatef() function is used to:
- A: Move an object along the x, y, and z axes
- B: Rotate an object
- C: Scale an object
- D: Define the camera view
View Answer
A
Q1408: When using the local coordinate system approach, the correct order of transformations is:
- A: Rotate first, then translate
- B: Translate first, then rotate
- C: Rotate and translate simultaneously
- D: No transformation is required
View Answer
B
Q1409: Which OpenGL function is part of the Utility Library and helps with defining the camera's viewpoint?
- A: glTranslatef
- B: glPushMatrix
- C: gluLookAt
- D: glRotatef
View Answer
C
Q1410: Fill in the blank: To achieve the effect of rotating the camera around an object in OpenGL, you need to use a combination of glTranslatef() and _______ commands.
- A: glPushMatrix
- B: glRotatef
- C: gluLookAt
- D: glPopMatrix
View Answer
B