Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q1501: Fill in the blank: glLightfv(GL_LIGHT0, GL_POSITION, light_position); sets the position of ________.
- A: The light source
- B: The camera
- C: The material
- D: The object
View Answer
A
Q1502: What is the range of the parameter u for a Bézier curve in the example provided?
- A: [0, 1]
- B: [-1, 1]
- C: [0, 2]
- D: [-2, 2]
View Answer
A
Q1503: A Bézier surface patch is a vector-valued function of how many variables?
- A: 1
- B: 2
- C: 3
- D: 4
View Answer
B
Q1504: What is the function glEvalCoord1f() used for in OpenGL?
- A: Drawing a line
- B: Evaluating a one-dimensional map
- C: Defining control points
- D: Enabling evaluators
View Answer
B
Q1505: The command glMap1f() is used to define a one-dimensional evaluator for which type of data?
- A: Color
- B: Texture coordinates
- C: Vertex data
- D: Normal vectors
View Answer
C
Q1506: The Bernstein polynomial is used to define which of the following in Bézier curves?
- A: The degree of the curve
- B: The control points
- C: The texture coordinates
- D: The boundary limits of the curve
View Answer
B
Q1507: The control points in the example code are defined in which data structure?
- A: Array
- B: Linked list
- C: Matrix
- D: Stack
View Answer
A
Q1508: In the example, how many control points are used to define the cubic Bézier curve?
- A: 2
- B: 3
- C: 4
- D: 5
View Answer
C
Q1509: Which function is used to draw a cubic Bézier curve in OpenGL?
- A: glMap1f
- B: glEvalCoord1f
- C: glClearColor
- D: glPointSize
View Answer
B
Q1510: What does the command glEnable(GL_MAP1_VERTEX_3) do in the given code?
- A: Enables texture mapping
- B: Enables color mapping
- C: Enables a one-dimensional evaluator for vertex data
- D: Enables a two-dimensional evaluator for vertex data
View Answer
C