Skip to main content

Computer Graphics MCQs with Answers

Practice important Computer Graphics MCQs with answers and explanations.

Multiple Choice Questions

Q1131: In OpenGL, glutInitDisplayMode uses __________ for setting display properties.
  • A: Function chaining
  • B: Bitwise OR-ing
  • C: Mathematical addition
  • D: Logical AND
View Answer
B

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

Q1133: glutDisplayFunc is called to ________.
  • A: Handle keyboard input
  • B: Resize window
  • C: Render window content
  • D: Close window
View Answer
C

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

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

Q1136: Which of the following is an alias for GLUT_RGBA?
  • A: GLUT_RGB
  • B: GLUT_INDEX
  • C: GLUT_ALPHA
  • D: GLUT_DEPTH
View Answer
A

Q1137: GLUT_DEPTH is associated with which buffer?
  • A: Alpha buffer
  • B: Depth buffer
  • C: Color buffer
  • D: Accumulation buffer
View Answer
B

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

Q1139: Which function is used to attach a display update handler to a window in OpenGL?
  • A: glutReshapeFunc
  • B: glutKeyboardFunc
  • C: glutDisplayFunc
  • D: glutIdleFunc
View Answer
C

Q1140: OpenGL context associated with a window allows _________ after creation.
  • A: State changes
  • B: Buffer resets
  • C: Window closing
  • D: Automatic resizing
View Answer
A

Test Your Knowledge

Take a timed quiz on Computer Graphics

🚀 Start Quiz Now