Skip to main content

Computer Graphics MCQs with Answers

Practice important Computer Graphics MCQs with answers and explanations.

Multiple Choice Questions

Q1421: How do you add additional segments to a robotic arm in OpenGL?
  • A: By using glPushMatrix() and glPopMatrix() to save and restore transformations
  • B: By adding new glTranslatef() commands
  • C: By modifying gluLookAt() parameters
  • D: By changing the glutDisplayFunc()
View Answer
A

Q1422: What is the purpose of glPopMatrix() in the robotic arm example?
  • A: It saves the current transformation state
  • B: It restores the saved transformation state
  • C: It scales the arm segment
  • D: It translates the segment
View Answer
B

Q1423: The robot arm program uses glRotatef() to rotate segments around their respective joints. Which joints are being rotated in the example?
  • A: Shoulder and wrist
  • B: Shoulder and elbow
  • C: Elbow and wrist
  • D: Wrist and fingers
View Answer
B

Q1424: In OpenGL, gluPerspective() is used for which purpose in the solar system program?
  • A: To scale the objects
  • B: To set the viewing perspective
  • C: To translate the camera position
  • D: To rotate the objects
View Answer
B

Q1425: What happens when the y key is pressed in the robot arm program?
  • A: The elbow rotates clockwise
  • B: The shoulder rotates counterclockwise
  • C: The year changes in the solar system simulation
  • D: The shoulder rotates clockwise
View Answer
D

Q1426: Fill in the blank: In OpenGL, to rotate an object around its local axis, we use the function ______.
  • A: glTranslatef()
  • B: glRotatef()
  • C: gluPerspective()
  • D: glScalef()
View Answer
B

Q1427: The moon can be added to the planet in the solar system program by using additional ________ functions.
  • A: glPushMatrix() and glPopMatrix()
  • B: glRotatef() and glTranslatef()
  • C: glScalef() and gluPerspective()
  • D: glutWireSphere() and glTranslatef()
View Answer
A

Q1428: Which OpenGL function is used to change the viewpoint in the solar system program?
  • A: gluLookAt()
  • B: glTranslatef()
  • C: glRotatef()
  • D: glPushMatrix()
View Answer
A

Q1429: The solar system program uses _______ to simulate the passage of time for both the planet’s rotation and revolution.
  • A: glRotatef()
  • B: glPushMatrix()
  • C: glTranslatef()
  • D: gluPerspective()
View Answer
A

Q1430: Fill in the blank: The function used to adjust the scaling of an object in OpenGL is ________.
  • A: glTranslatef()
  • B: glRotatef()
  • C: glScalef()
  • D: gluLookAt()
View Answer
C

Test Your Knowledge

Take a timed quiz on Computer Graphics

🚀 Start Quiz Now