Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q1391: Fill in the blank: The transformation that stretches or shrinks an object along the x, y, and z axes is called ________.
- A: glTranslatef()
- B: glRotatef()
- C: glScalef()
- D: glLoadIdentity()
View Answer
C
Q1392: What is the purpose of the glTranslatef function in OpenGL?
- A: Moves the camera
- B: Moves the object
- C: Rotates the object
- D: Sets the viewport
View Answer
B
Q1393: What does the gluLookAt function do?
- A: It rotates the object
- B: It defines the camera's viewpoint
- C: It changes the lighting
- D: It defines the object's size
View Answer
B
Q1394: The correct sequence of commands to rotate an object after translation is:
- A: glRotatef, glTranslatef
- B: glTranslatef, glRotatef
- C: glTranslatef, glPushMatrix
- D: glPopMatrix, glTranslatef
View Answer
B
Q1395: Which OpenGL function is used to apply a translation to the scene?
- A: glPushMatrix
- B: glPopMatrix
- C: glTranslatef
- D: glRotatef
View Answer
C
Q1396: In OpenGL, what does the glPushMatrix function do?
- A: Copies the current matrix and adds it to the stack
- B: Sets the camera view
- C: Applies a rotation to the object
- D: Resets the transformation matrix
View Answer
A
Q1397: Which of the following is an example of the gluLookAt function in OpenGL?
- A: gluLookAt(0.0, 0.0, 0.0, 0.0, 0.0, -100.0, 0.0, 1.0, 0.0)
- B: gluLookAt(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 0.0, 0.0, 1.0)
- C: gluLookAt(0.0, 0.0, 0.0, 10.0, 10.0, -50.0, 0.0, 0.0, 1.0)
- D: gluLookAt(0.0, 1.0, 0.0, 0.0, 0.0, -50.0, 1.0, 0.0, 0.0)
View Answer
A
Q1398: The fixed coordinate system approach in OpenGL requires the translate command to be issued:
- A: Before the rotate command
- B: After the rotate command
- C: Simultaneously with the rotate command
- D: No translation is required
View Answer
A
Q1399: In OpenGL, what does the glPopMatrix function do?
- A: Adds a new transformation matrix to the stack
- B: Removes the top matrix from the stack
- C: Applies a new translation
- D: Resets the matrix
View Answer
B
Q1400: The gluLookAt() routine is designed to:
- A: Define the object's rotation
- B: Specify the viewing transformation
- C: Define the projection matrix
- D: Set the field of view
View Answer
B