Skip to main content

Computer Graphics MCQs with Answers

Practice important Computer Graphics MCQs with answers and explanations.

Chapter: 34
Q1161:
gluPerspective is part of which library?
A. OpenGL core
B. GL Utility Library (GLU)
C. GLUT
D. GLEW
Correct Answer: B
Chapter: 34
Q1162:
glRotatef(90.0, 0.0, 1.0, 0.0) will rotate the object around which axis?
A. X-axis
B. Y-axis
C. Z-axis
D. None
Correct Answer: B
Chapter: 34
Q1163:
Which command is used to continuously render frames in absence of user input?
A. glutIdleFunc
B. glutReshapeFunc
C. glutDisplayFunc
D. glutKeyboardFunc
Correct Answer: A
Chapter: 34
Q1164:
Which function sets the window size in the OpenGL program?
A. glutCreateWindow
B. glutReshapeWindow
C. glutIdleFunc
D. glutMainLoop
Correct Answer: B
Chapter: 34
Q1165:
What happens if glMatrixMode is set incorrectly before applying transformations?
A. Correct transformations
B. Wrong transformations
C. No change
D. Crashes
Correct Answer: B
Chapter: 34
Q1166:
The idle function is linked to which OpenGL function in the program?
A. glutReshapeFunc
B. glutIdleFunc
C. glutMainLoop
D. glutDisplayFunc
Correct Answer: B
Chapter: 34
Q1167:
Which function is used to create a new window with a title?
A. glutCreateWindow
B. glutInitWindowSize
C. glutReshapeWindow
D. glutDisplayFunc
Correct Answer: A
Chapter: 34
Q1168:
Which buffer is cleared with glClear(GL_COLOR_BUFFER_BIT)?
A. Color buffer
B. Depth buffer
C. Texture buffer
D. Shader buffer
Correct Answer: A
Chapter: 34
Q1169:
If the field of view (fovy) is increased in gluPerspective, what happens?
A. Narrower view
B. Wider view
C. Shorter view
D. Closer view
Correct Answer: B
Chapter: 34
Q1170:
In OpenGL, GL_INVALID_ENUM occurs when
A. A wrong value passed to a function
B. Memory leak
C. Window not created
D. Buffer overflow
Correct Answer: A
Chapter: 34
Q1171:
If glLoadIdentity is called inside glBegin and glEnd, which error occurs?
A. GL_INVALID_OPERATION
B. GL_INVALID_ENUM
C. Buffer overflow
D. GL_DEPTH_ERROR
Correct Answer: A
Chapter: 34
Q1172:
glPushMatrix and glPopMatrix are used to
A. Save and restore matrix state
B. Change viewport
C. Change color buffer
D. Clear depth buffer
Correct Answer: A
Chapter: 34
Q1173:
Which function is responsible for initializing color and depth buffers?
A. glBegin
B. glEnd
C. glClear
D. glViewport
Correct Answer: C
Chapter: 34
Q1174:
If aspect ratio is not maintained in gluPerspective, image appears
A. Clear
B. Distorted
C. Zoomed
D. Black
Correct Answer: B
Chapter: 35
Q1175:
What kind of equations are used to define curves in geometric modeling?
A. Linear equations
B. Parametric equations
C. Exponential equations
D. Logarithmic equations
Correct Answer: B
Chapter: 35
Q1176:
What is the independent variable called in parametric equations?
A. Dependent variable
B. Slope
C. Parametric variable
D. Constant
Correct Answer: C
Chapter: 35
Q1177:
In parametric curves, which variables depend on the parametric variable?
A. x, y, and z coordinates
B. Only x coordinate
C. Only y coordinate
D. Time and speed
Correct Answer: A
Chapter: 35
Q1178:
Which of the following curves are based on parametric equations?
A. Bezier curves
B. Hermite curves
C. NURBS
D. All of the above
Correct Answer: D
Chapter: 35
Q1179:
Each point on a parametric curve is represented by a ________.
A. Scalar
B. Matrix
C. Vector
D. Line
Correct Answer: C
Chapter: 35
Q1180:
The components of a point vector p are ________.
A. x(u), y(u), z(u)
B. u(x), u(y), u(z)
C. p(u), q(u), r(u)
D. x, y, z constants
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Computer Graphics

🚀 Start Quiz Now