Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q1461: The function glLightModelfv is used to specify the characteristics of which OpenGL feature?
- A: Light sources
- B: Material properties
- C: The viewing matrix
- D: The lighting model
View Answer
D
Q1462: What is the default global ambient light intensity in OpenGL?
- A: {0.5, 0.5, 0.5, 1.0}
- B: {1.0, 1.0, 1.0, 1.0}
- C: {0.2, 0.2, 0.2, 1.0}
- D: {0.0, 0.0, 0.0, 0.0}
View Answer
C
Q1463: In OpenGL, which matrix affects a light's position or direction?
- A: Projection Matrix
- B: Modelview Matrix
- C: Perspective Matrix
- D: Viewing Matrix
View Answer
B
Q1464: What is the purpose of the glPushMatrix and glPopMatrix functions?
- A: To manage the modelview stack
- B: To enable lighting
- C: To set light position
- D: To perform geometric transformations
View Answer
A
Q1465: To make a light move relative to a stationary object, where should the light position be set?
- A: After the modelview transformation
- B: Before the modelview transformation
- C: After the projection transformation
- D: In the display function only
View Answer
A
Q1466: In OpenGL, which transformation allows a light to appear as if it’s moving around a stationary object?
- A: glTranslatef
- B: glRotated
- C: glPushMatrix
- D: glLightfv
View Answer
B
Q1467: Which function is used to enable lighting in OpenGL?
- A: glEnable(GL_LIGHT0)
- B: glLightModelfv
- C: glMaterialfv
- D: glEnable(GL_LIGHTING)
View Answer
D
Q1468: The function glLightfv(GL_LIGHT0, GL_POSITION, position) is used to specify what?
- A: The color of the light
- B: The intensity of the light
- C: The position of the light
- D: The material properties
View Answer
C
Q1469: Which OpenGL function disables lighting?
- A: glDisable(GL_LIGHTING)
- B: glDisable(GL_LIGHT0)
- C: glDisable(GL_DEPTH_TEST)
- D: glMaterialfv
View Answer
A
Q1470: A light's position in OpenGL is transformed by which matrix?
- A: The modelview matrix
- B: The projection matrix
- C: The color matrix
- D: The transformation matrix
View Answer
A