Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q1441: The glOrtho() function in OpenGL is used for:
- A: Setting the position of the viewpoint
- B: Defining the material properties
- C: Setting the projection matrix for orthogonal views
- D: Enabling depth testing
View Answer
C
Q1442: In OpenGL, the glLightfv() function is used to define:
- A: The material properties of an object
- B: The ambient light level of the scene
- C: The properties of a light source
- D: The depth of the scene
View Answer
C
Q1443: A normal vector in OpenGL helps to determine:
- A: How much light a vertex receives
- B: The position of the camera
- C: The color of the light source
- D: The size of the object
View Answer
A
Q1444: The default lighting model in OpenGL assumes the viewer is located at:
- A: A fixed position
- B: Infinite distance
- C: The center of the scene
- D: The light source position
View Answer
B
Q1445: What does the glEnable(GL_DEPTH_TEST) function do in OpenGL?
- A: Enables depth buffer testing for hidden surface removal
- B: Enables lighting calculations for the scene
- C: Sets the background color of the scene
- D: Defines the ambient light source
View Answer
A
Q1446: In OpenGL, the function glLightfv() allows us to set which of the following light characteristics?
- A: Position, Diffuse color, Specular color
- B: Position, Shininess, Material reflection
- C: Position, Ambient light, Viewer's location
- D: Position, Light's direction, Depth
View Answer
A
Q1447: The glMaterialfv() function in OpenGL is used to define:
- A: The position of light sources
- B: The properties of the materials in the scene
- C: The type of light used
- D: The shininess of the material
View Answer
B
Q1448: The glShadeModel() function controls the rendering of surfaces. Which option is the default setting?
- A: GL_FLAT
- B: GL_SMOOTH
- C: GL_GOURAUD
- D: GL_SHINY
View Answer
B
Q1449: Which function is used to position the viewpoint in OpenGL?
- A: glOrtho()
- B: glTranslate()
- C: glPushMatrix()
- D: glLoadIdentity()
View Answer
A
Q1450: What OpenGL function is used to create a sphere with lighting effects?
- A: glutSolidSphere()
- B: glSphere()
- C: glCreateSphere()
- D: glutCreateSphere()
View Answer
A