Skip to main content

Computer Graphics MCQs with Answers

Practice important Computer Graphics MCQs with answers and explanations.

Multiple Choice Questions

Q1101: In OpenGL programming, the prefix "glu" indicates ___________.
  • A: Core OpenGL function
  • B: Utility library function
  • C: Event handling function
  • D: Memory allocation function
View Answer
B

Q1102: The function to set the keyboard input handler in OpenGL is _________.
  • A: glutDisplayFunc
  • B: glutReshapeWindow
  • C: glutKeyboardFunc
  • D: glutIdleFunc
View Answer
C

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
View Answer
C

Q1104: glutDisplayFunc sets the _______ callback function for a window.
  • A: Keyboard
  • B: Mouse
  • C: Display
  • D: Idle
View Answer
C

Q1105: glutReshapeWindow requests a change to the _________ of a window.
  • A: Background color
  • B: Position
  • C: Size
  • D: Layer
View Answer
C

Q1106: The function glutMainLoop is responsible for __________.
  • A: Initializing OpenGL
  • B: Exiting the application
  • C: Running the event loop
  • D: Drawing shapes
View Answer
C

Q1107: What bit mask selects a double buffered window in glutInitDisplayMode?
  • A: GLUT_RGB
  • B: GLUT_SINGLE
  • C: GLUT_DOUBLE
  • D: GLUT_DEPTH
View Answer
C

Q1108: The display mode bit mask GLUT_RGBA is also known as _______.
  • A: GLUT_ALPHA
  • B: GLUT_RGB
  • C: GLUT_INDEX
  • D: GLUT_DEPTH
View Answer
B

Q1109: Which bit mask would you use for depth buffering?
  • A: GLUT_RGB
  • B: GLUT_DEPTH
  • C: GLUT_ALPHA
  • D: GLUT_DOUBLE
View Answer
B

Q1110: Which function in OpenGL sets the callback to handle window reshape events?
  • A: glutIdleFunc
  • B: glutDisplayFunc
  • C: glutReshapeFunc
  • D: glutKeyboardFunc
View Answer
C

Test Your Knowledge

Take a timed quiz on Computer Graphics

🚀 Start Quiz Now