Computer Graphics MCQs with Answers
Practice important Computer Graphics MCQs with answers and explanations.
Multiple Choice Questions
Q1161: gluPerspective is part of which library?
- A: OpenGL core
- B: GL Utility Library (GLU)
- C: GLUT
- D: GLEW
View Answer
B
Q1162: glRotatef(90.0, 0.0, 1.0, 0.0) will rotate the object around which axis?
- A: X-axis
- B: Y-axis
- C: Z-axis
- D: None
View Answer
B
Q1163: Which command is used to continuously render frames in absence of user input?
- A: glutIdleFunc
- B: glutReshapeFunc
- C: glutDisplayFunc
- D: glutKeyboardFunc
View Answer
A
Q1164: Which function sets the window size in the OpenGL program?
- A: glutCreateWindow
- B: glutReshapeWindow
- C: glutIdleFunc
- D: glutMainLoop
View Answer
B
Q1165: What happens if glMatrixMode is set incorrectly before applying transformations?
- A: Correct transformations
- B: Wrong transformations
- C: No change
- D: Crashes
View Answer
B
Q1166: The idle function is linked to which OpenGL function in the program?
- A: glutReshapeFunc
- B: glutIdleFunc
- C: glutMainLoop
- D: glutDisplayFunc
View Answer
B
Q1167: Which function is used to create a new window with a title?
- A: glutCreateWindow
- B: glutInitWindowSize
- C: glutReshapeWindow
- D: glutDisplayFunc
View Answer
A
Q1168: Which buffer is cleared with glClear(GL_COLOR_BUFFER_BIT)?
- A: Color buffer
- B: Depth buffer
- C: Texture buffer
- D: Shader buffer
View Answer
A
Q1169: If the field of view (fovy) is increased in gluPerspective, what happens?
- A: Narrower view
- B: Wider view
- C: Shorter view
- D: Closer view
View Answer
B
Q1170: In OpenGL, GL_INVALID_ENUM occurs when
- A: A wrong value passed to a function
- B: Memory leak
- C: Window not created
- D: Buffer overflow
View Answer
A