Skip to main content

Computer Graphics MCQs with Answers

Practice important Computer Graphics MCQs with answers and explanations.

Chapter: 43
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
Correct Answer: A
Chapter: 44
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]
Correct Answer: A
Chapter: 44
Q1503:
A Bézier surface patch is a vector-valued function of how many variables?
A. 1
B. 2
C. 3
D. 4
Correct Answer: B
Chapter: 44
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
Correct Answer: B
Chapter: 44
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
Correct Answer: C
Chapter: 44
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
Correct Answer: B
Chapter: 44
Q1507:
The control points in the example code are defined in which data structure?
A. Array
B. Linked list
C. Matrix
D. Stack
Correct Answer: A
Chapter: 44
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
Correct Answer: C
Chapter: 44
Q1509:
Which function is used to draw a cubic Bézier curve in OpenGL?
A. glMap1f
B. glEvalCoord1f
C. glClearColor
D. glPointSize
Correct Answer: B
Chapter: 44
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
Correct Answer: C
Chapter: 44
Q1511:
What does glMapGrid1f() define in OpenGL?
A. The number of control points
B. A grid that goes from u1 to u2 in n steps
C. A texture mapping grid
D. The boundary for the Bézier curve
Correct Answer: B
Chapter: 44
Q1512:
The glEvalMesh1() function is used to apply a grid to all enabled evaluators. Which parameter does it require?
A. u1, u2
B. p1, p2
C. mode, steps
D. n, order
Correct Answer: B
Chapter: 44
Q1513:
What is the result when glEvalCoord1f() is called in the provided example?
A. It draws a control point
B. It draws a curve based on the control points
C. It draws a mesh
D. It sets up texture coordinates
Correct Answer: B
Chapter: 44
Q1514:
Fill in the blank: The function glEvalCoord2f() is used for ________ in OpenGL.
A. 1-dimensional evaluation
B. 2-dimensional evaluation
C. Texture mapping
D. Setting the model view matrix
Correct Answer: B
Chapter: 44
Q1515:
What does the function glMap2f() do in the context of 2-dimensional evaluators?
A. Defines a grid for mesh evaluation
B. Defines a 2D evaluator for vertex data
C. Draws the curve
D. Sets up color mapping
Correct Answer: B
Chapter: 44
Q1516:
What does the command glOrtho() do in the reshape() function?
A. Sets up an orthogonal projection matrix
B. Initializes the viewport size
C. Defines the texture coordinates
D. Resizes the control points
Correct Answer: A
Chapter: 44
Q1517:
Which function is used to evaluate a two-dimensional map in OpenGL?
A. glMap1f
B. glMap2f
C. glEvalCoord1f
D. glEvalCoord2f
Correct Answer: B
Chapter: 44
Q1518:
In a two-dimensional evaluator, which function is used to apply the currently defined map grid?
A. glEvalCoord2f
B. glEvalMesh2
C. glMap2f
D. glEvalCoord1f
Correct Answer: B
Chapter: 44
Q1519:
Fill in the blank: The function glMap2f() requires the ________ parameter for specifying control points.
A. order
B. target
C. stride
D. points
Correct Answer: D
Chapter: 45
Q1520:
What is the main advantage of animation in relation to time?
A. Compressing time
B. Expanding time
C. Both compressing and expanding time
D. Ignoring time
Correct Answer: C

Test Your Knowledge

Take a timed quiz on Computer Graphics

🚀 Start Quiz Now