Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Chapter: 41
Q1381:
When performing modeling transformations in OpenGL, which of the following must come first?
A. glLoadIdentity()
B. glMultMatrixf()
C. Viewing transformations
D. None of the above
Correct Answer:
A
Chapter: 41
Q1382:
In OpenGL, the glMatrixMode() function sets the current matrix mode to:
A. Projection
B. Modelview
C. Texture
D. Lighting
Correct Answer:
B
Chapter: 41
Q1383:
The effect of the glRotatef(45.0, 0.0, 0.0, 1.0) function call is:
A. Rotation around the x-axis
B. Rotation around the z-axis
C. Rotation around the y-axis
D. No rotation
Correct Answer:
B
Chapter: 41
Q1384:
In the OpenGL example code, the transformations are applied in which order?
A. First N, then M, then L
B. First M, then L, then N
C. First L, then M, then N
D. The order doesn't matter
Correct Answer:
A
Chapter: 41
Q1385:
Which of the following operations can glScalef() perform?
A. Scaling and reflecting an object
B. Translating an object
C. Rotating an object
D. None of the above
Correct Answer:
A
Chapter: 41
Q1386:
The glTranslate*() function in OpenGL is used for:
A. Translating the camera
B. Scaling the object
C. Translating the object
D. Rotating the object
Correct Answer:
C
Chapter: 41
Q1387:
Fill in the blank: To rotate an object around the origin in OpenGL, we use the function _________.
A. glTranslatef()
B. glScalef()
C. glRotatef()
D. glMultMatrixf()
Correct Answer:
C
Chapter: 41
Q1388:
Which of the following is true about the OpenGL matrix multiplications?
A. They always affect the local coordinate system
B. The last transformation is applied first
C. They don't affect the objects in the scene
D. The order of transformations doesn’t matter
Correct Answer:
B
Chapter: 41
Q1389:
Fill in the blank: The transformation that moves an object to a new position in OpenGL is ________.
A. glRotatef()
B. glScalef()
C. glTranslatef()
D. glLoadIdentity()
Correct Answer:
C
Chapter: 41
Q1390:
What does glRotatef(0.0, 0.0, 0.0, 1.0) do in OpenGL?
A. No rotation occurs
B. Rotates the object by 0 degrees
C. Reflects the object
D. Translates the object
Correct Answer:
A
Chapter: 41
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()
Correct Answer:
C
Chapter: 41
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
Correct Answer:
B
Chapter: 41
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
Correct Answer:
B
Chapter: 41
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
Correct Answer:
B
Chapter: 41
Q1395:
Which OpenGL function is used to apply a translation to the scene?
A. glPushMatrix
B. glPopMatrix
C. glTranslatef
D. glRotatef
Correct Answer:
C
Chapter: 41
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
Correct Answer:
A
Chapter: 41
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)
Correct Answer:
A
Chapter: 41
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
Correct Answer:
A
Chapter: 41
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
Correct Answer:
B
Chapter: 41
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
Correct Answer:
B