Skip to main content

Computer Graphics MCQs with Answers

Practice important Computer Graphics MCQs with answers and explanations.

Chapter: 33
Q1101:
In OpenGL programming, the prefix "glu" indicates ___________.
A. Core OpenGL function
B. Utility library function
C. Event handling function
D. Memory allocation function
Correct Answer: B
Chapter: 33
Q1102:
The function to set the keyboard input handler in OpenGL is _________.
A. glutDisplayFunc
B. glutReshapeWindow
C. glutKeyboardFunc
D. glutIdleFunc
Correct Answer: C
Chapter: 33
Q1103:
In OpenGL, glutIdleFunc is used when __________.
A. A key is pressed
B. The window is minimized
C. There are no window events
D. A mouse click occurs
Correct Answer: C
Chapter: 33
Q1104:
glutDisplayFunc sets the _______ callback function for a window.
A. Keyboard
B. Mouse
C. Display
D. Idle
Correct Answer: C
Chapter: 33
Q1105:
glutReshapeWindow requests a change to the _________ of a window.
A. Background color
B. Position
C. Size
D. Layer
Correct Answer: C
Chapter: 33
Q1106:
The function glutMainLoop is responsible for __________.
A. Initializing OpenGL
B. Exiting the application
C. Running the event loop
D. Drawing shapes
Correct Answer: C
Chapter: 33
Q1107:
What bit mask selects a double buffered window in glutInitDisplayMode?
A. GLUT_RGB
B. GLUT_SINGLE
C. GLUT_DOUBLE
D. GLUT_DEPTH
Correct Answer: C
Chapter: 33
Q1108:
The display mode bit mask GLUT_RGBA is also known as _______.
A. GLUT_ALPHA
B. GLUT_RGB
C. GLUT_INDEX
D. GLUT_DEPTH
Correct Answer: B
Chapter: 33
Q1109:
Which bit mask would you use for depth buffering?
A. GLUT_RGB
B. GLUT_DEPTH
C. GLUT_ALPHA
D. GLUT_DOUBLE
Correct Answer: B
Chapter: 33
Q1110:
Which function in OpenGL sets the callback to handle window reshape events?
A. glutIdleFunc
B. glutDisplayFunc
C. glutReshapeFunc
D. glutKeyboardFunc
Correct Answer: C
Chapter: 33
Q1111:
In OpenGL, the window size is specified in _________.
A. Characters
B. Pixels
C. Inches
D. Centimeters
Correct Answer: B
Chapter: 33
Q1112:
Which glut function disables full screen mode if previously enabled?
A. glutMainLoop
B. glutReshapeWindow
C. glutIdleFunc
D. glutKeyboardFunc
Correct Answer: B
Chapter: 33
Q1113:
GLUT_ACCUM bit mask is used to select a window with __________.
A. Depth buffer
B. Accumulation buffer
C. Alpha buffer
D. Color index
Correct Answer: B
Chapter: 33
Q1114:
GLUT_ALPHA is used to request _________ in a color buffer.
A. Red color
B. Green color
C. Alpha component
D. Blue color
Correct Answer: C
Chapter: 33
Q1115:
The initial colormap of GLUT_LUMINANCE windows is a _________.
A. Random color map
B. Blue ramp
C. Linear gray ramp
D. Green ramp
Correct Answer: C
Chapter: 33
Q1116:
What happens if you pass NULL to glutKeyboardFunc?
A. Disables mouse events
B. Disables keyboard callbacks
C. Disables window resize
D. Disables window creation
Correct Answer: B
Chapter: 33
Q1117:
The function glutSpecialFunc is used to detect ___________.
A. ASCII key strokes
B. Mouse clicks
C. Non-ASCII key strokes
D. Keyboard modifiers
Correct Answer: C
Chapter: 33
Q1118:
glutCreateWindow creates a window with a unique _______.
A. Display Mode
B. Identifier
C. Color
D. Alpha Channel
Correct Answer: B
Chapter: 33
Q1119:
glutReshapeWindow requires ________ width and height values.
A. Negative
B. Positive
C. Zero
D. Any
Correct Answer: B
Chapter: 33
Q1120:
The first window created with glutCreateWindow sets the __________ property on X systems.
A. WM_COMMAND
B. WM_NAME
C. WM_HINTS
D. WM_CLASS
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Computer Graphics

🚀 Start Quiz Now