Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q1471: A light source in OpenGL can be transformed using the same transformations as a ________.
- A: Geometric primitive
- B: Texture
- C: Material
- D: Color
View Answer
A
Q1472: In the example code, what effect does glPushMatrix and glPopMatrix have in moving the light?
- A: They reset the modelview matrix to a previous state
- B: They make the light stationary
- C: They reset the light position
- D: They apply the light's transformation
View Answer
A
Q1473: When defining a light source, which OpenGL function is used to specify the position?
- A: glLightfv
- B: glMaterialfv
- C: glEnable
- D: glLightModelfv
View Answer
A
Q1474: What transformation is used in the example to rotate the light around the object?
- A: glRotated
- B: glTranslatef
- C: glPushMatrix
- D: gluLookAt
View Answer
A
Q1475: In the provided code, what does the function glutSolidTorus do?
- A: It creates a wireframe torus
- B: It creates a solid torus
- C: It creates a light source
- D: It draws a cube
View Answer
B
Q1476: Which OpenGL function is used to clear the buffers before rendering the scene?
- A: glClear
- B: glEnable
- C: glDisable
- D: glLightfv
View Answer
A
Q1477: To control how much light the scene receives, which OpenGL function is used?
- A: glLightfv
- B: glLightModelfv
- C: glMaterialfv
- D: glEnable
View Answer
B
Q1478: What does glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient) set in OpenGL?
- A: The color of the ambient light
- B: The position of the light
- C: The intensity of the spotlight
- D: The diffuse color of the light
View Answer
A
Q1479: What OpenGL function is used to apply the camera view transformation?
- A: gluLookAt
- B: glPushMatrix
- C: glTranslatef
- D: glMaterialfv
View Answer
A
Q1480: What does glMaterialfv() function do in OpenGL?
- A: Sets material properties for the object
- B: Defines the color of an object
- C: Initializes the object
- D: Applies textures to objects
View Answer
A