Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
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
View Answer
A
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
View Answer
B
Q1123: Which OpenGL function handles mouse location parameters when a key is pressed?
- A: glutDisplayFunc
- B: glutIdleFunc
- C: glutKeyboardFunc
- D: glutReshapeFunc
View Answer
C
Q1124: The width and height in glutReshapeWindow are measured in ___________.
- A: Inches
- B: Characters
- C: Pixels
- D: Points
View Answer
C
Q1125: The function glutDisplayFunc requires how many parameters?
- A: Two
- B: None
- C: One
- D: Three
View Answer
C
Q1126: Which bit mask enables multisampling support in OpenGL window?
- A: GLUT_DOUBLE
- B: GLUT_ACCUM
- C: GLUT_MULTISAMPLE
- D: GLUT_STENCIL
View Answer
C
Q1127: In OpenGL, GLUT_DEPTH is used for __________.
- A: Accumulation buffer
- B: Depth buffer
- C: Alpha blending
- D: Color indexing
View Answer
B
Q1128: glutMainLoop must be called to ________.
- A: Create windows
- B: Render initial scene
- C: Start the event loop
- D: Resize window
View Answer
C
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
View Answer
B
Q1130: glutCreateWindow sets the newly created window as the __________.
- A: Secondary window
- B: Current window
- C: Parent window
- D: Overlay window
View Answer
B