Skip to main content

Computer Graphics MCQs with Answers

Practice important Computer Graphics MCQs with answers and explanations.

Multiple Choice Questions

Q1411: Fill in the blank: The purpose of using polar coordinates in a custom viewing transformation is to define the _______ of the camera's orbit around an object.
  • A: distance
  • B: angle
  • C: elevation
  • D: position
View Answer
A

Q1412: Which of the following is NOT an OpenGL function related to transformations?
  • A: glTranslatef
  • B: glPushMatrix
  • C: gluLookAt
  • D: glColor3f
View Answer
D

Q1413: What function is used to rotate an object around a specific axis in OpenGL?
  • A: glTranslate*()
  • B: glRotate*()
  • C: glScale*()
  • D: gluPerspective()
View Answer
B

Q1414: In the solar system example, which OpenGL function is used to draw a planet?
  • A: glutWireCube()
  • B: glutWireSphere()
  • C: glPushMatrix()
  • D: gluLookAt()
View Answer
B

Q1415: What does the glPushMatrix() function do in OpenGL?
  • A: It draws the object
  • B: It saves the current transformation matrix
  • C: It pops the transformation matrix
  • D: It sets the perspective
View Answer
B

Q1416: Which OpenGL function is used to move an object along a specified direction?
  • A: glRotatef()
  • B: glTranslatef()
  • C: glScalef()
  • D: gluLookAt()
View Answer
B

Q1417: What is the purpose of glRotatef() in the solar system program?
  • A: To rotate the sun around its axis
  • B: To rotate the planet around its orbit
  • C: To scale the planet
  • D: To translate the planet
View Answer
B

Q1418: When creating a robot arm, what does glTranslatef() do?
  • A: Moves the local coordinate system to a specific point
  • B: Rotates the object around a specific axis
  • C: Scales the object
  • D: Translates the object relative to the camera view
View Answer
A

Q1419: In the robotic arm program, which transformation function is used to scale a segment of the arm?
  • A: glRotatef()
  • B: glTranslatef()
  • C: glScalef()
  • D: gluPerspective()
View Answer
C

Q1420: What does the keyboard function in the robot arm program allow you to do?
  • A: Scale the segments
  • B: Rotate the segments at the shoulder and elbow
  • C: Draw new segments
  • D: Save the current arm state
View Answer
B

Test Your Knowledge

Take a timed quiz on Computer Graphics

🚀 Start Quiz Now