Home
MCQS
Computer Hardware and Networking MCQ Quiz Hub
Opengl Multiple Choice Questions.
Choose a topic to test your knowledge and improve your Computer Hardware and Networking skills
1. Can you specify the location of a light source in OpenGL?
No
Sometimes
Yes
None of these
2. What is a VA or VAO?
Vector Array Object
Vertex Automation Output
Vertex Array Object
Vector Array Output
3. What should be done to rotate around a point that is not the origin?
Translate to origin, rotate about the origin, then translate back to the original position.
Rotations can only be performed around the origin.
Perform a glRotate and specify the point to rotate around.
None of the above
4. What does Open GLSL stand for?
Graphical Library of Shader Languages
Geographic Land and Survey Library
Graphics Library Shader Language
Graphical Language and Shading Library
5. What does glMaterialf(…) do?
Turns material properties on.
Defines the material properties of a drawn object for visual effects.
Switches to material mode to add visual effects.
Gets the current material properties of a drawn object.
6. In OpenGL, what is a “stencil buffer”?
The act of swapping buffers done natively on the hardware
A low-resource buffer used for accumulating fragments from rendering to “cut out” another accumulated render
A high-bandwidth buffer used for fragmenting images into accumulation buffers
A special type of buffer used only to draw text
7. What kind of polygons work best in a VBO intended for modeling a solid?
Triangles, Triangle Strips, and Triangle Fans
Triangles, quads, and N-gons C.
Quads, N-gons, and unilateral N-gons
N-gonal coplanar line strips
8. What components make up a light source in OpenGL?
Specular and Ambient.
Diffuse, Specular, and Ambient.
Diffuse and Ambient.
Diffuse, Opaque, Ambient.
9. What kind of data is stored in a VBO?
Configuration Settings
Vertices
Context-sharing Information
Pixels
10. When animating, OpenGL provides:
A complete suite of tools and downloadable applications for making classic 2D and 3D animation right out of the box
FBOs, VBOs, VAOs and integer-related functions such as glFrameNumber and glMovieType
Accumulation buffers, frame-buffer objects, VBOs, depth, and stencil buffers, blending modes, and other types of buffers that allow a developer to achieve the desired effect
No way to draw pixels on the screen
11. What are the valid operations provided to glStencilOp?
GL_KEEP, GL_ZERO,GL_REPLACE, GL_INCR, GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, GL_INVERT
Any number between 0 and 255
GL_R, GL_G, GL_B, GL_RGB, GL_RGBA, GL_ARGB, GL_BGRA
GL_ZERO, GL_ONE, GL_SRC_ALPHA, GL_DST_ALPHA, GL_FORE, GL_BACK
12. What is transformation?
Switching between different buffers.
A function supplied by OpenGL that can morph one polygon to another.
The mathematical operation used to create the desired behavior for points and objects.
None of the above
13. Generally, what primitive polygon is used for creating a mesh to represent a complex object?
Square
Circle
Triangle
Rectangle
14. If lighting is disabled, which function specifies the color of the vertex?
glClearColor()
glDisplayfunc()
glColor()
None of these
15. What is the difference between glColor3d and glColor3f?
glColor3d only sets RGB, while glColor3f sets R, G, B and A
glColor3d allows 3d color operations, while glColor3f only allows 8-bit
glColor3d takes double arguments, while glColor3f takes float arguments
glColor3d is in real space, glColor3f is in integer space
16. What is an FBO?
File Buffered Output
Frictionless Baryonic Oscillation
Format Byte Option
Framebuffer Object
17. Which function call sets up the size of the output area?
glViewport()
gluPerspective()
C. None of These
glDisplayfunc()
18. Why are many functions deprecated in the OpenGL specification?
To highlight functions which one should use when programming the fixed-function pipeline in all new versions of OpenGL.
As newer versions are released, older versions with functionality that can be created in the newer version but faster through other methods must be deprecated but are still a part of the specification
OpenGL’s authors at Khronos have made many mistakes and therefore deleted various functions as they released new versions, replacing older versions and making obsolete older functionality that is re
None of the above
19. Is ambient light possible in OpenGL?
Yes
Sometimes
No
None of the above
20. What are “texture coordinates” used for?
Texture coordinates tell OpenGL where in GPU memory the texture is stored.
Texture coordinates were deprecated in 3.1 and provide OpenGL with an error message.
Texture coordinates provide OpenGL with information about polygon blitting when painting textures onto rendered geometry.
Texture coordinates have never be used in the OpenGL specification.
21. OpenGL stands for:
Open General Liability
Open Graphics Library
Open Guide Line
Open Graphics Layer
22. What kind of data is stored in a VAO?
Exponent information for large-scale waveform analysis
Program asset information such as trees, lists, and data types
Mainly 0s and 1s organized alphabetically
Vertex state and other ancillary data for rendering in the programmable pipeline
23. What happens to variables that aren’t used in outputs of a GLSL fragment shader?
They produce excessive slow-downs in GPUs that do not adhere to the OpenGL standard, decreasing load time and increasing frame rate.
They are optimized out and removed by the compiler on most platforms.
They remain in memory and use resources, and are the mark of a novice developer.
None of the above
24. What is the use of a shared context?
To allow multiple OpenGL contexts to share the same data
To allow networked gameplay to occur between multiple OpenGL clients
To allow the GPU to run multiple applications at the same time
None of the above
25. If a coordinate system (CS1) is transformed into another coordinate system (CS2) using a matrix M, is it possible to go from CS2 to CS1 and how?
Yes, apply M again.
Yes, apply the inverse of M.
No, once a coordinate system is transformed, it cannot be reversed.
Yes, call glReversCS() with CS2 and M as parameters.
26. If a coordinate system (CS1) is transformed into another coordinate system (CS2) using a matrix M, is it possible to go from CS2 to CS1 and how?
Yes, apply M again.
Yes, apply the inverse of M.
No, once a coordinate system is transformed, it cannot be reversed.
Yes, call glReversCS() with CS2 and M as parameters.
27. What is a VBO?
Vertex Binding Object
Vertex Buffer Object
Variable Buffer Output
None of These
28. What is a “depth buffer” and what does it accumulate?
A type of buffer that accumulates “depth” information in a 3D scene
A 3D scene organization chart produced by a UX designer
A specialized buffer for doing underwater scenes
None of these
29. Does OpenGL provide modeling primitives such as a cube, cone, pyramid?
Yes, but only with glEnable(GL_PRIMITIVES) called before the glBegin statement.
In the official specification, but also enhanced versions provided by the GLUT library.
Not in the official specification, but such functionality is provided by the GLUT library.
Yes
30. Does OpenGL use a client-server model and a state machine?
Irrelevant
Yes
No
None of These
31. What are the “red” book, “blue” book and “orange” book?
Three books are written by Ken Perlin, the father of OpenGL, and published in 1971 at Luinard University, Paris, France. Dr. Perlin holds a three-time doctorate in Organization Biology at the prestigious Harvard School of Medicine, but in his later years
Magazine inserts in IEEE’s 1999 and 2002 editions which were written by Paul Bourke, a mathematician, and philanthropist from Southern Mason University in Atlanta, GA.
There are several books on OpenGL, but the two most revered are the “red” and “blue” books, and the “orange” book was published to cover shader technologies by a third party.
References to the Matrix.
32. What organization is currently responsible for OpenGL’s standardization and development?
Khronos
Crysis
Cryptic
Chronos
33. What is the purpose of GL_REPEAT?
To have a texture repeat in a direction (horizontal or vertical).
To repeat the last command.
To repeat the last command.
To restart the application.
34. In order to obtain correct calculations for shading, what is the best length for normals of an object?
2
1 (unit length)
The length does not matter.
It is based on the size of the object being drawn.
35. Why clear a buffer?
To approve a buffer for “publishing” to the monitor
To under-run a buffer in a special hack known as “swapping buffers”
To reset its state
To make it clearly visible
36. What are the four major types of shaders available in OpenGL 4.0?
Filtered, Non-filtered, Exponent and Fragmented
Geometry, Tesselation, Vertex and Fragment
Multi-sampled, Single-sampled, Over-sampled and 16x
Vertex, Geometry, Isomorphic and Anisotropic
37. What does glViewport do?
Sets the active viewport from one of the off-screen buffers.
Acquires the viewport pointer for use with the glOrtho function.
Sets the extents of the current view.
Deactivates accumulation mode and activates the standard viewport.
38. What are the two types of shaders?
Fragment and polygon.
Vertex and fragment.
Vertex and polygon.
None of these
39. In the best practice, what code should appear at the top of a GLSL shader?
There is no best practice for the first line of a GLSL shader.
void main() {
#version
#if (O_ES) precision highp; #else #endif
40. What are X,Y,Z,S,T,U and V?
Letters of the alphabet with no special meaning
Optional parameters on glVertex* functions
Coordinate components
None of the above
41. What is the use of glGet?
To read pixels back from the screen buffer
To get specific values from the hardware context
To read pixels back from any buffer
To set specific values from the hardware context
42. What do the values “R”, “G”, “B” and “A” mean in the context of color in OpenGL?
Rotate, Gyrate, Blend and Amorphize
Red, Green, Black, Auburn
Red, Green, Blue and Alpha channels
None of These
43. What are GLUT, GLU, GLEW, GLFW, SFML, GLX, GLEE?
Special function prefixes defined in the OpenGL specification.
Alphabet soup
Acronyms that help new OpenGL developers learn the ropes.
A suite of open source libraries, among others, which provide valuable functionality to OpenGL programmers including context creation, extension management, and others.
44. What kind of vertex array is NOT provided by OpenGL?
Polygons
Vertices
Colors
Normals
45. What happens when an object to be drawn is not within the current viewport?
A warning is given.
It is drawn by OpenGL even though it is not seen.
It is ignored.
It is clipped from the scene and subsequently not drawn.
46. What are the four types of clearable buffers?
Color, HDR, LTR, VAO
Fragment, Vertex, Vector, Color
Color, Depth, Stencil, Fragment
Color, Depth, Stencil, Accumulation
47. What function is required in every GLSL shader program?
void maine() {}
int start() {}
void main() {}
int main() {}
48. What is glVertextPointer(…) used for?
Get a pointer to a vertex.
Select a vertex of a polygon.
Passing an array of vertices to OpenGL.
The convention followed in OpenGL to defining and passing a pointer.
49. What are the dimensions of a 2D transformation matrix?
3×3
2×2
3×4
4×4
50. What are EXT and ARB?
EXT and ARB functions are deprecated by default in old versions of OpenGL, and can only be accessed with a special key
EXT and ARB functions appear in the specification, but do not appear in actual use cases.
EXT and ARB functions are not yet integrated into the “core” feature set and are considered experimental but the candidate
None of the above
51. What do the letters “ARB” mean in the context of OpenGL?
Associated Rendering Buffer
Accumulation Rendering Buffer
Aligned Rendering Buffer
Architecture Review Board
52. How do you activate a shader program in OpenGL?
glUserProgram(ProgramID);
glUseProgram(ProgramID);
glProgram(ProgramID);
glShader(ProgramID);
53. When do you use glFlush and glFinish?
glFlush and glFinish should be called once and only once per application. Their utility has increased over time and is required for any OpenGL application no matter how simple (a three line demo) or complex (a 450,000 AAA video game).
You use glFlush to clear the screen and glFinish to draw the screen to the display.
Usually around certain operations, such as during a glReadPixel after writing, or when OpenGL must flush or finish its currently buffered calls. Their utility has decreased over time.
None of the above
54. What are the primitive types available to a glBegin statement? Note: this question is often flagged by test takers. Read carefully and choose wisely, there is only one correct answer.
GL_QUADS, GL_TRIANGLES, GL_LINES, GL_LINE_STRIP, GL_QUAD_STRIP, GL_LINE_LOOP, GL_TRIANGLE_STRIP, GL_POINTS, GL_POLYGON
GL_QUAD, GL_TRIANGLE, GL_LINE, GL_LINE_STRIP, GL_QUAD_STRIP, GL_LINE_LOOP, GL_TRIANGLE_STRIP, GL_POINT, GL_POLYGON
TRUE or FALSE
GL_START, GL_END
55. Which is better to use for dynamic drawing?
Coordinate Pointer
Display List
Vertex Array
None of the above
56. Once shading is enabled, what happens to glColor() calls?
A run-time error occurs if both are used.
They are ignored.
They function as normal.
They enhance the shading effects.
57. What is the purpose of a MIPMAP?
A way to store images that use 33% less space on the GPU.
Filtered non-uniform definitions of texture space can be resolved only using MIPMAP iconography.
Non-isotropic textures used to exhibit quality cache behavior, a basis of non-inverted platform microscopy, a per-fragment compatibility mode in OpenGL.
multum in parvo; a LOD texture branching from the main texture that assists in scaling, a basis of wavelet compression
58. What kind of argument is expected in a function ending with a “v”?
An array typecasted with (GLvoid *) or in the type indicated by the preceding letter.
Any void variable.
A GLuint *pointer
A virtual method function pointer.
59. Is it possible to perform a reflection of an object across a specified axis?
No, this functionality is not possible with the current version of OpenGL. B.
Yes, with glReflect().
Yes with simple matrix multiplication.
No, you must redraw your object reflected across the desired axis.
60. The current version of OpenGL does support materials?
TRUE, there was no need to remove materials support.
FALSE, shaders replaced this functionality.
FALSE, ray tracing replaced this functionality.
None of the above
61. What kind of coordinates are used in order to represent a transformation as a matrix multiplication operation?
Homogeneous
Cartesian
Parametric
Heterogeneous
62. What is glTexCoord*() used for?
Defines a coordinate in a texture space in which to draw on top of the texture.
Defining the coordinates in texture space to be mapped to object space.
Used to define the coordinate system of a texture.
A newly added function where OpenGL supports placing a texting window for mobile applications.
63. What happens in immediate mode?
OpenGL enters into an interactive mode with the user.
Primitives can be redrawn from display lists. Hence, no information is lost.
Once drawn, primitive information is lost. To redraw, the primitives are drawn by reexecuting the display function.
All commands are given the highest priority for execution.
64. What purpose does the “Scissor Test” serve?
o end the “Rubber Band Test”
To “cut out” a section of a buffer when performing a copy operation.
To scale a section of a buffer.
To limit the drawing area.
65. How many texture units are there in OpenGL?
OpenGL provides no texture units per se, but the term is often confused with “texel units”, which refers to the number of texture pixels stored in the accumulation buffer.
It is hardware specific and can be queried using glGet.
It is a fractional equivalent to OpenGL’s version number.
It is hardware specific and can be queried using glGetUnits.
66. Which is a function NOT used for rendering vertex arrays?
glDrawArrays()
glDrawElements()
glDisplayArray()
glArrayElement()
67. What does the Blend Equation do?
It tells OpenGL how to anti-alias polygons.
It tells OpenGL how to mix fragments in a logical order.
It sets up a translucent viewport.
It provides the alpha channel with a mixing heuristic, ignoring R, G and B values of a given fragment.
68. How many cycles does it theoretically take for a single OpenGL call?
2
4
3
1
69. Does function deprecation stop older applications from working with newer versions of OpenGL?
3 out of 6 times.
Yes
No, never.
No, most of the time.
70. What do you have to do to get “compatibility mode” in OpenGL?
glEnable(GL_COMPATIBILITY);
glEnable(GL_COMPAT);
glDisable(GL_STRICT);
Nothing
71. Which is better to use for static drawing?
Display List
Vertex Array
Coordinate Pointer
None of these
72. What is the “workshop” name for the type of geometry and texture effects used in commercial gaming as part of OpenGL (and DirectX)?
Polygonal modeling
Geometrical polygonal modeling
Geometric pleasantness
Baked geometry
73. What is the use of glOrtho?
It is only used to create isometric tile games.
It is the best way to set the view frustum.
glOrtho is used to create a map.
To set the extents and behavior of coordinates.
74. What is “immediate mode”?
A frame loop that repeats once per cycle
OpenGL’s mnemonic for the way of converting pixels to HDR equivalents
A deprecated set of functions that permit the user to quickly learn the basic building blocks of OpenGL
A type of screen mode that allows graphics to immediately be displayed
75. What is the purpose of calls to glLogicOp(GLenum opcode)?
A logical operation applied between RGBA color and RGBA color at the corresponding location.
A logical operation applied between one buffer and another during full-screen copying.
It serves no purpose and has been deprecated since version 1.
A function that returns the error values from OpenGL after performing a “GL logical operation”
76. What is the non-official name for glBlendFunc(GL_SRC_ALPHA, GL_ONE)?
Masked
Subtractive
Multiply
Additive
77. Is a new coordinate system created with every transformation applied, e.g., translate or rotate?
No
It depends on the transformations
Yes
Sometimes
78. What are the native image formats supported by OpenGL?
OpenGL does not support any native formats.
BGRA, ARGB, RGBA, HDR, and others
Next question, please.
PNG, JPG, GIF, TIFF, PCX, and others
79. Let us scale a straight, horizontal line by a factor of 2 through using glScale(2.0f,0.0f,0.0f). This line consists of only 2 points, left and right point. Which point(s) moves due to the scale transformation?
The right.
Neither
Both
The left.
Submit