Skip to main content

Computer Graphics MCQs with Answers

Practice important Computer Graphics MCQs with answers and explanations.

Chapter: 33
Q1121:
What OpenGL function requests window size change but is only processed after returning to main loop?
A. glutReshapeWindow
B. glutCreateWindow
C. glutKeyboardFunc
D. glutIdleFunc
Correct Answer: A
Chapter: 33
Q1122:
The default color mode selected if neither GLUT_RGBA nor GLUT_INDEX is specified is __________.
A. GLUT_DEPTH
B. GLUT_RGBA
C. GLUT_ALPHA
D. GLUT_LUMINANCE
Correct Answer: B
Chapter: 33
Q1123:
Which OpenGL function handles mouse location parameters when a key is pressed?
A. glutDisplayFunc
B. glutIdleFunc
C. glutKeyboardFunc
D. glutReshapeFunc
Correct Answer: C
Chapter: 33
Q1124:
The width and height in glutReshapeWindow are measured in ___________.
A. Inches
B. Characters
C. Pixels
D. Points
Correct Answer: C
Chapter: 33
Q1125:
The function glutDisplayFunc requires how many parameters?
A. Two
B. None
C. One
D. Three
Correct Answer: C
Chapter: 33
Q1126:
Which bit mask enables multisampling support in OpenGL window?
A. GLUT_DOUBLE
B. GLUT_ACCUM
C. GLUT_MULTISAMPLE
D. GLUT_STENCIL
Correct Answer: C
Chapter: 33
Q1127:
In OpenGL, GLUT_DEPTH is used for __________.
A. Accumulation buffer
B. Depth buffer
C. Alpha blending
D. Color indexing
Correct Answer: B
Chapter: 33
Q1128:
glutMainLoop must be called to ________.
A. Create windows
B. Render initial scene
C. Start the event loop
D. Resize window
Correct Answer: C
Chapter: 33
Q1129:
glutIdleFunc is called when __________.
A. The system has pending events
B. No window events are pending
C. A window is closed
D. An error occurs
Correct Answer: B
Chapter: 33
Q1130:
glutCreateWindow sets the newly created window as the __________.
A. Secondary window
B. Current window
C. Parent window
D. Overlay window
Correct Answer: B
Chapter: 33
Q1131:
In OpenGL, glutInitDisplayMode uses __________ for setting display properties.
A. Function chaining
B. Bitwise OR-ing
C. Mathematical addition
D. Logical AND
Correct Answer: B
Chapter: 33
Q1132:
What happens if multisampling is not available on the system when GLUT_MULTISAMPLE is selected?
A. Program crashes
B. Window is not created
C. Non-multisampling window is created
D. System freezes
Correct Answer: C
Chapter: 33
Q1133:
glutDisplayFunc is called to ________.
A. Handle keyboard input
B. Resize window
C. Render window content
D. Close window
Correct Answer: C
Chapter: 33
Q1134:
The "reshape" callback in OpenGL is triggered when _______.
A. Keyboard is pressed
B. Mouse is clicked
C. Window size changes
D. Window loses focus
Correct Answer: C
Chapter: 33
Q1135:
When a new window is created, the keyboard callback is __________.
A. Automatically assigned
B. Ignored unless set
C. Set to default handler
D. Set to keyboard idle
Correct Answer: B
Chapter: 33
Q1136:
Which of the following is an alias for GLUT_RGBA?
A. GLUT_RGB
B. GLUT_INDEX
C. GLUT_ALPHA
D. GLUT_DEPTH
Correct Answer: A
Chapter: 33
Q1137:
GLUT_DEPTH is associated with which buffer?
A. Alpha buffer
B. Depth buffer
C. Color buffer
D. Accumulation buffer
Correct Answer: B
Chapter: 33
Q1138:
In the initial simple OpenGL program, which function was used after creating the window to keep the application alive?
A. glutReshapeWindow
B. glutIdleFunc
C. glutMainLoop
D. glutDisplayFunc
Correct Answer: C
Chapter: 33
Q1139:
Which function is used to attach a display update handler to a window in OpenGL?
A. glutReshapeFunc
B. glutKeyboardFunc
C. glutDisplayFunc
D. glutIdleFunc
Correct Answer: C
Chapter: 33
Q1140:
OpenGL context associated with a window allows _________ after creation.
A. State changes
B. Buffer resets
C. Window closing
D. Automatic resizing
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Computer Graphics

🚀 Start Quiz Now