Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q1431: What is the role of NORMAL vectors in OpenGL lighting?
- A: Determine the color of the light
- B: Determine the orientation of an object relative to light sources
- C: Define the material properties of the object
- D: Control the intensity of the light
View Answer
B
Q1432: OpenGL lighting is based on which color model?
- A: RGB
- B: CMYK
- C: HSL
- D: YUV
View Answer
A
Q1433: What does ambient light represent in OpenGL lighting?
- A: Light coming from a particular light source
- B: Light that is scattered throughout the scene
- C: Light that comes from a single direction
- D: Light that is absorbed by surfaces
View Answer
B
Q1434: What happens when a light source is turned off in OpenGL?
- A: Ambient light is also turned off
- B: All light in the scene disappears
- C: Bounced light disappears
- D: The scene becomes completely dark
View Answer
C
Q1435: Which of the following is not a lighting component in OpenGL?
- A: Emissive
- B: Diffuse
- C: Specular
- D: Transparency
View Answer
D
Q1436: Which function is used to initialize a material's shininess in OpenGL?
- A: glLightfv
- B: glMaterialfv
- C: glShadeModel
- D: glEnable
View Answer
B
Q1437: What is the default color for light in OpenGL's GL_LIGHT0?
- A: Red
- B: Green
- C: Blue
- D: White
View Answer
D
Q1438: OpenGL can support how many different light sources in a scene by default?
- A: 4
- B: 6
- C: 8
- D: 10
View Answer
C
Q1439: What does the glClearColor() function do in OpenGL?
- A: Sets the color of the material
- B: Clears the color buffer with a specified color
- C: Defines the position of the light source
- D: Enables lighting calculations
View Answer
B
Q1440: What OpenGL function is used to enable lighting?
- A: glEnable(GL_LIGHTING)
- B: glMaterialfv(GL_FRONT, GL_SPECULAR)
- C: glLightfv(GL_LIGHT0, GL_POSITION)
- D: glShadeModel(GL_SMOOTH)
View Answer
A