150 Top Opengl Multiple Choice Questions and Answers

What is the significance of i,f,v,d… in function naming conventions found in OpenGL?
A. OpenGL’s naming conventions vary and must be examined in the specification for the version you are using
B. Specify the expected parameter types (int, float, pointer, double, etc.)
C. Specify the target type for variables written by OpenGL on the CPU-side only
D. Specify the output target (immediate mode, frame buffer, virtual mode, double-buffer, etc.)

What two options can be provided to glShadeModel()?
A. DEPTH and STENCIL
B. WIDE and NARROW
C. FOREGROUND and BACKGROUND
D. UP and DOWN
E. SMOOTH and FLAT
Ans: E

What are the dimensions of a 3D transformation matrix?
A. 2×2
B. 4×4
C. 3×3
D. 3×4
Ans: B

Can you specify the location of a light source in OpenGL?
A. No
B. Sometimes
C. Yes
Ans: C

What is a VA or VAO?
A. Vector Array Object
B. Vertex Automation Output
C. Vertex Array Object
D. Vector Array Output
E. Vector Addition Override
Ans: C

What should be done to rotate around a point that is not the origin?
A. Translate to origin, rotate about the origin, then translate back to the original position.
B. Rotations can only be performed around the origin.
C. Perform a glRotate and specify the point to rotate around.
Ans: A

What does Open GLSL stand for?
A. Graphical Library of Shader Languages
B. Geographic Land and Survey Library
C. Graphics Library Shader Language
D. Graphical Language and Shading Library
Ans: C

What does glMaterialf(…) do?
A. Turns material properties on.
B. Defines the material properties of a drawn object for visual effects.
C. Switches to material mode to add visual effects.
D. Gets the current material properties of a drawn object.
Ans: B

Are there some OpenGL routines that cannot be stored in a display list?
A. No
B. Yes
Ans: B

In OpenGL, what is a “stencil buffer”?
A. The act of swapping buffers done natively on the hardware
B. A low-resource buffer used for accumulating fragments from rendering to “cut out” another accumulated render
C. A high-bandwidth buffer used for fragmenting images into accumulation buffers
D. A special type of buffer used only to draw text
Ans: B

What kind of polygons work best in a VBO intended for modeling a solid?
A. Triangles, Triangle Strips, and Triangle Fans
B. Triangles, quads, and N-gons
C. Quads, N-gons, and unilateral N-gons
D. N-gonal coplanar line strips
E. Line strips
Ans: A

What components make up a light source in OpenGL?
A. Specular and Ambient.
B. Diffuse, Specular, and Ambient.
C. Diffuse and Ambient.
D. Diffuse, Opaque, Ambient.
Ans: B

What kind of data is stored in a VBO?
A. Configuration Settings
B. Vertices
C. Context-sharing Information
D. Pixels
E. Fragments
Ans: B

When animating, OpenGL provides:
A. A complete suite of tools and downloadable applications for making classic 2D and 3D animation right out of the box
B. FBOs, VBOs, VAOs and integer-related functions such as glFrameNumber and glMovieType
C. 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
D. No way to draw pixels on the screen
Ans: C

What are the valid operations provided to glStencilOp?
A. GL_KEEP, GL_ZERO,GL_REPLACE, GL_INCR, GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, GL_INVERT
B. Any number between 0 and 255
C. TRUE or FALSE
D. GL_R, GL_G, GL_B, GL_RGB, GL_RGBA, GL_ARGB, GL_BGRA
E. GL_ZERO, GL_ONE, GL_SRC_ALPHA, GL_DST_ALPHA, GL_FORE, GL_BACK
Ans: A

What is transformation?
A. Switching between different buffers.
B. A function supplied by OpenGL that can morph one polygon to another.
C. The mathematical operation used to create the desired behavior for points and objects.
Ans: C

Generally, what primitive polygon is used for creating a mesh to represent a complex object?
A. Square
B. Circle
C. Triangle
D. Rectangle
Ans: C

If lighting is disabled, which function specifies the color of the vertex?
A. glClearColor()
B. glDisplayfunc()
C. glColor()
D. None of These
Ans: C

What is the difference between glColor3d and glColor3f?
A. glColor3d only sets RGB, while glColor3f sets R, G, B and A
B. glColor3d allows 3d color operations, while glColor3f only allows 8-bit
C. glColor3d takes double arguments, while glColor3f takes float arguments
D. glColor3d is in real space, glColor3f is in integer space
Ans: C

What is an FBO?
A. File Buffered Output
B. Frictionless Baryonic Oscillation
C. Friday Buy Out
D. Format Byte Option
E. Framebuffer Object
Ans: E

Which function call sets up the size of the output area?
A. glViewport()
B. gluPerspective()
C. None of These
D. glDisplayfunc()
Ans: A

Why are many functions deprecated in the OpenGL specification?
A. To highlight functions which one should use when programming the fixed-function pipeline in all new versions of OpenGL.
B. 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 on most hardware platforms.
C. 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 removed from newer versions.
Ans: B

Is ambient light possible in OpenGL?
A. Yes
B. Sometimes
C. No
Ans: A

What are “texture coordinates” used for?
A. Texture coordinates tell OpenGL where in GPU memory the texture is stored.
B. Texture coordinates were deprecated in 3.1 and provide OpenGL with an error message.
C. Texture coordinates provide OpenGL with information about polygon blitting when painting textures onto rendered geometry.
D. Texture coordinates have never be used in the OpenGL specification.
Ans: C

Does OpenGL support Rasterization?
A. Yes
B. No
Ans: A

OpenGL stands for:
A. Open General Liability
B. Open Graphics Library
C. Open Guide Line
D. Open Graphics Layer
Ans: B

OpenGL uses a 3D Cartesian Coordinate System.
A. False
B. True
Ans: B

Once a 2D or 3D rotation is performed, is it possible to reverse the rotation?
A. Yes
B. No
Ans: A

glVertex is used to draw OpenGL primitives.
A. True
B. False
Ans: A

What kind of data is stored in a VAO?
A. Exponent information for large-scale waveform analysis
B. Program asset information such as trees, lists, and data types
C. Mainly 0s and 1s organized alphabetically
D. Vertex state and other ancillary data for rendering in the programmable pipeline
Ans: D

What happens to variables that aren’t used in outputs of a GLSL fragment shader?
A. They produce excessive slow-downs in GPUs that do not adhere to the OpenGL standard, decreasing load time and increasing frame rate.
B. They are optimized out and removed by the compiler on most platforms.
C. They remain in memory and use resources, and are the mark of a novice developer.
Ans: B

What is the use of a shared context?
A. To allow multiple OpenGL contexts to share the same data
B. To allow networked gameplay to occur between multiple OpenGL clients
C. To allow the GPU to run multiple applications at the same time
Ans: A

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?
A. Yes, apply M again.
B. Yes, apply the inverse of M.
C. No, once a coordinate system is transformed, it cannot be reversed.
D. Yes, call glReversCS() with CS2 and M as parameters.
Ans: B

What is a VBO?
A. Vertex Binding Object
B. Vertex Buffer Object
C. Variable Buffer Output
Ans: B

What is a “depth buffer” and what does it accumulate?
A. A type of buffer that accumulates “depth” information in a 3D scene
B. A 3D scene organization chart produced by a UX designer
C. A specialized buffer for doing underwater scenes
Ans: A

Does OpenGL provide modeling primitives such as a cube, cone, pyramid?
A. Yes, but only with glEnable(GL_PRIMITIVES) called before the glBegin statement.
B. In the official specification, but also enhanced versions provided by the GLUT library.
C. Not in the official specification, but such functionality is provided by the GLUT library.
D. Yes.
Ans: C

Does OpenGL use a client-server model and a state machine?
A. Irrelevant
B. Yes
C. No
Ans: B

What are the “red” book, “blue” book and “orange” book?
A. 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 revealed his interests in biological sciences as being an adjunct to computer graphics.
B. 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.
C. 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.
D. Three famous books ridiculed by John Carmack, founder of id Software and inventor of the graphics processor.
E. References to the Matrix.
Ans: C

Does OpenGL have an official camera?
A. No.
B. Yes.
Ans: A

What organization is currently responsible for OpenGL’s standardization and development?
A. Khronos
B. Crysis
C. Cryptic
D. Chronos
E. id Software
Ans: A

What is the purpose of GL_REPEAT?
A. To have a texture repeat in a direction (horizontal or vertical).
B. To repeat the last command.
C. To enable double-buffering.
D. To restart the application.
E. To have a command repeat until stopped.
Ans: A

In order to obtain correct calculations for shading, what is the best length for normals of an object?
A. 2
B. 1 (unit length)
C. The length does not matter.
D. It is based on the size of the object being drawn.
Ans: B

Why clear a buffer?
A. To approve a buffer for “publishing” to the monitor
B. To under-run a buffer in a special hack known as “swapping buffers”
C. To reset its state
D. To make it clearly visible
Ans: C

What are the four major types of shaders available in OpenGL 4.0?
A. Filtered, Non-filtered, Exponent and Fragmented
B. Geometry, Tesselation, Vertex and Fragment
C. Multi-sampled, Single-sampled, Over-sampled and 16x
D. Vertex, Geometry, Isomorphic and Anisotropic
Ans: B

What does glViewport do?
A. Sets the active viewport from one of the off-screen buffers.
B. Acquires the viewport pointer for use with the glOrtho function.
C. Sets the extents of the current view.
D. Deactivates accumulation mode and activates the standard viewport.
Ans: C

What are the two types of shaders?
A. Fragment and polygon.
B. Vertex and fragment.
C. Vertex and polygon.
Ans: B

True or False: blending functions are NOT order dependent.
A. False
B. True
Ans: A

In the best practice, what code should appear at the top of a GLSL shader?
A. There is no best practice for the first line of a GLSL shader.
B. void main() {
C. #version
D. #if (O_ES) precision highp; #else #endif
Ans: C

What are X,Y,Z,S,T,U and V?
A. Letters of the alphabet with no special meaning
B. Optional parameters on glVertex* functions
C. Coordinate components
Ans: C

Does OpenGL provide physics, particle systems, and other real-time procedural effects out of the box?
A. Yes, with the Box2d extension library, a part of the official OpenGL suite.
B. No.
Ans: B

What is the use of glGet?
A. To read pixels back from the screen buffer
B. To get specific values from the hardware context
C. To read pixels back from any buffer
D. To set specific values from the hardware context
Ans: B

What do the values “R”, “G”, “B” and “A” mean in the context of color in OpenGL?
A. Rotate, Gyrate, Blend and Amorphize
B. Red, Green, Black, Auburn
C. Red, Green, Blue and Alpha channels
Ans: C

What are GLUT, GLU, GLEW, GLFW, SFML, GLX, GLEE?
A. Special function prefixes defined in the OpenGL specification.
B. Alphabet soup
C. Acronyms that help new OpenGL developers learn the ropes.
D. A suite of OpenGL playing cards made available by Khronos in 1997.
E. A suite of open source libraries, among others, which provide valuable functionality to OpenGL programmers including context creation, extension management, and others.
Ans: E

OpenGL Objective Questions Pdf Free Download::

What kind of vertex array is NOT provided by OpenGL?
A. Polygons
B. Vertices
C. Colors
D. Normals
Ans: A

What happens when an object to be drawn is not within the current viewport?
A. A warning is given.
B. It is drawn by OpenGL even though it is not seen.
C. It is ignored.
D. It is clipped from the scene and subsequently not drawn.
Ans: D

What are the four types of clearable buffers?
A. Color, HDR, LTR, VAO
B. Fragment, Vertex, Vector, Color
C. Color, Depth, Stencil, Fragment
D. Color, Depth, Stencil, Accumulation
Ans: D

What function is required in every GLSL shader program?
A. void maine() {}
B. int start() {}
C. void main() {}
D. void program() {}
E. int main() {}
Ans: C

What is a “per-fragment” operation?
A. A way of describing stenciled buffer operations
B. Super-parallel operations that occur in CPU before uploading to the GPU core
C. Operations that occur logically, such as glLogicOp, which tragically fragment your application’s intended output, ruining your render.
D. Also known as a “per-pixel” operation (applicable in some cases), “per-fragment” more accurately describes an operation that occurs through each requested “fragment” by pipelines that deal directly with screen graphics
Ans: D

What is “core” versus “compatibility” styles of writing OpenGL applications?
A. “Core” programmers are the ones who created OpenGL, while “compatibility” programmers are the ones hired by other companies to make older applications work on newer machines.
B. “Core” is the stuff that comes recommended in the specification for the version you are writing for, while “compatibility” uses deprecated functions or functions from other versions that are not backward compatible.
C. “Compatibility” and “Core” modes are the same modes, but one use gl* functions and the other uses cgl* functions
D. There are nineteen different versions of OpenGL, all of which are now listed as “compatibility” except for three that are listed as “core”; those are dated 2/1/1997, 5/18/2002 and 8/11/2009
Ans: B

Does OpenGL perform clipping for objects, not within the current viewport?
A. Yes
B. No
Ans: A

Fill in the blank to draw this triangle: glBegin(GL_TRIANGLES); ….(blank)…. glEnd();
A. glDrawTriangle(x,y,z);
B. glVertex3i(1,2,3); glVertex3i(1,2,3); glTexCoord2i(1,2,3);
C. Put your VBO binding code in there
D. Use 3 sets of common immediate mode functions such as glVertex* (required), glColor*, glTexCoord*
Ans: D

What is glVertextPointer(…) used for?
A. Get a pointer to a vertex.
B. Select a vertex of a polygon.
C. Passing an array of vertices to OpenGL.
D. The convention followed in OpenGL to defining and passing a pointer.
Ans: C

What are the dimensions of a 2D transformation matrix?
A. 3×3
B. 2×2
C. 3×4
D. 4×4
Ans: A

What are EXT and ARB?
A. EXT and ARB functions are deprecated by default in old versions of OpenGL, and can only be accessed with a special key
B. EXT and ARB functions appear in the specification, but do not appear in actual use cases.
C. EXT and ARB functions are not yet integrated into the “core” feature set and are considered experimental but the candidate
Ans: C

What do the letters “ARB” mean in the context of OpenGL?
A. Associated Rendering Buffer
B. Accumulation Rendering Buffer
C. Aligned Rendering Buffer
D. Architecture Review Board
E. Antiquated Resolution Board
Ans: D

How do you activate a shader program in OpenGL?
A. glUserProgram(ProgramID);
B. glUseProgram(ProgramID);
C. glProgram(ProgramID);
D. glShader(ProgramID);
E. glUseShader(ProgramID);
Ans: B

When do you use glFlush and glFinish?
A. 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).
B. You use glFlush to clear the screen and glFinish to draw the screen to the display.
C. 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.
Ans: C

Does OpenGL raise an error if a new display list is given the same name of a previously defined display list?
A. No
B. Yes
Ans: A

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.
A. GL_QUADS, GL_TRIANGLES, GL_LINES, GL_LINE_STRIP, GL_QUAD_STRIP, GL_LINE_LOOP, GL_TRIANGLE_STRIP, GL_POINTS, GL_POLYGON
B. GL_QUAD, GL_TRIANGLE, GL_LINE, GL_LINE_STRIP, GL_QUAD_STRIP, GL_LINE_LOOP, GL_TRIANGLE_STRIP, GL_POINT, GL_POLYGON
C. TRUE or FALSE
D. GL_START, GL_END
Ans: A

Which is better to use for dynamic drawing?
A. Coordinate Pointer
B. Display List
C. Vertex Array
Ans: C

Once shading is enabled, what happens to glColor() calls?
A. A run-time error occurs if both are used.
B. They are ignored.
C. They function as normal.
D. They enhance the shading effects.
Ans: B

What is the purpose of a MIPMAP?
A. A way to store images that use 33% less space on the GPU.
B. Filtered non-uniform definitions of texture space can be resolved only using MIPMAP iconography.
C. Non-isotropic textures used to exhibit quality cache behavior, a basis of non-inverted platform microscopy, a per-fragment compatibility mode in OpenGL.
D. multum in parvo; a LOD texture branching from the main texture that assists in scaling, a basis of wavelet compression
Ans: D

What kind of argument is expected in a function ending with a “v”?
A. An array typecasted with (GLvoid *) or in the type indicated by the preceding letter.
B. Any void variable.
C. A GLuint *pointer.
D. A virtual method function pointer.
Ans: A

Is it possible to perform a reflection of an object across a specified axis?
A. No, this functionality is not possible with the current version of OpenGL.
B. Yes, with glReflect().
C. Yes with simple matrix multiplication.
D. No, you must redraw your object reflected across the desired axis.
Ans: C

The current version of OpenGL does support materials?
A. TRUE, there was no need to remove materials support.
B. FALSE, shaders replaced this functionality.
C. FALSE, ray tracing replaced this functionality.
Ans: B

What kind of coordinates are used in order to represent a transformation as a matrix multiplication operation?
A. Homogeneous
B. Cartesian
C. Parametric
D. Heterogeneous
Ans: A

What is glTexCoord*() used for?
A. Defines a coordinate in a texture space in which to draw on top of the texture.
B. Defining the coordinates in texture space to be mapped to object space.
C. Used to define the coordinate system of a texture.
D. A newly added function where OpenGL supports placing a texting window for mobile applications.
Ans: B

What happens in immediate mode?
A. OpenGL enters into an interactive mode with the user.
B. Primitives can be redrawn from display lists. Hence, no information is lost.
C. Once drawn, primitive information is lost. To redraw, the primitives are drawn by reexecuting the display function.
D. All commands are given the highest priority for execution.
Ans: C

What purpose does the “Scissor Test” serve?
A. To end the “Rubber Band Test”
B. To “cut out” a section of a buffer when performing a copy operation.
C. To scale a section of a buffer.
D. To limit the drawing area.
Ans: D

How many texture units are there in OpenGL?
A. 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.
B. It is hardware specific and can be queried using glGet.
C. It is a fractional equivalent to OpenGL’s version number.
D. It is hardware specific and can be queried using glGetUnits.
Ans: B

Can OpenGL automatically generate texture coordinates?
A. Yes
B. No
Ans: A

Which is a function NOT used for rendering vertex arrays?
A. glDrawArrays()
B. glDrawElements()
C. glDisplayArray()
D. glArrayElement()
Ans: C

What does the Blend Equation do?
A. It tells OpenGL how to anti-alias polygons.
B. It tells OpenGL how to mix fragments in a logical order.
C. It sets up a translucent viewport.
D. It provides the alpha channel with a mixing heuristic, ignoring R, G and B values of a given fragment.
E. It is returned by OpenGL so a programmer can calculate color combinations.
Ans: B

How many cycles does it theoretically take for a single OpenGL call?
A. 2
B. 4
C. 3
D. 1
E. 5
Ans: D

Will a PNG file directly uploaded to a GPU, using the fixed-function pipeline, render with the expected content?
A. Yes.
B. No.
Ans: B

True or False, OpenGL does NOT have its own data types for int, float, and double?
A. False
B. True
Ans: A

Does function deprecation stop older applications from working with newer versions of OpenGL?
A. 3 out of 6 times.
B. Yes.
C. No, never.
D. No, most of the time.
Ans: D

Does OpenGL use column-major order or row-major order when representing a transformation matrix?
A. row-major
B. column-major
Ans: B

What do you have to do to get “compatibility mode” in OpenGL?
A. glEnable(GL_COMPATIBILITY);
B. glEnable(GL_ALL);
C. glEnable(GL_COMPAT);
D. glDisable(GL_STRICT);
E. Nothing
Ans: E

Which is better to use for static drawing?
A. Display List
B. Vertex Array
C. Coordinate Pointer
Ans: A

What are “accumulation buffers”?
A. Accumulation buffers accumulate data coming from the GPU to the graphics display when switching contexts
B. Accumulation buffers offer a unique way to add color to your images
C. Accumulation buffers accumulate pixels in an off-screen buffer but cannot be used outside of an OpenGL shared context
D. Accumulation buffers allow off-screen rendering to occur without affecting the displayed pixels
Ans: D

What is the “workshop” name for the type of geometry and texture effects used in commercial gaming as part of OpenGL (and DirectX)?
A. Polygonal modeling
B. Geometrical polygonal modeling
C. Geometric pleasantness
D. Baked geometry
E. Plasticizing
Ans: D

What is the use of glOrtho?
A. It is only used to create isometric tile games.
B. It is the best way to set the view frustum.
C. glOrtho is used to create a map.
D. To set the extents and behavior of coordinates.
Ans: D

Does OpenGL support hierarchical modeling of drawn objects?
A. Yes
B. No
Ans: A

What is “immediate mode”?
A. A frame loop that repeats once per cycle
B. OpenGL’s mnemonic for the way of converting pixels to HDR equivalents
C. A deprecated set of functions that permit the user to quickly learn the basic building blocks of OpenGL
D. A type of screen mode that allows graphics to immediately be displayed
Ans: C

What is the purpose of calls to glLogicOp(GLenum opcode)?
A. A logical operation applied between RGBA color and RGBA color at the corresponding location.
B. A logical operation applied between one buffer and another during full-screen copying.
C. It serves no purpose and has been deprecated since version 1.
D. A function that returns the error values from OpenGL after performing a “GL logical operation”
Ans: A

What is the non-official name for glBlendFunc(GL_SRC_ALPHA, GL_ONE)?
A. Masked
B. Subtractive
C. Translucency
D. Multiply
E. Additive
Ans: E

What happens in retained mode?
A. The current OpenGL state can be stored when specified. This is useful if a command fails and execution needs to rollback to a previous state.
B. OpenGL retains extra system memory for execution.
C. Primitives can be redrawn from display lists. Hence, no information is lost.
D. Once drawn, primative information is lost. To redraw, the primitives are drawn by reexecuting the display function.
Ans: C

Is a new coordinate system created with every transformation applied, e.g., translate or rotate?
A. No
B. It depends on the transformations
C. Yes
D. Sometimes
Ans: C

What are the native image formats supported by OpenGL?
A. OpenGL does not support any native formats.
B. BGRA, ARGB, RGBA, HDR, and others
C. Next question, please.
D. PNG, JPG, GIF, TIFF, PCX, and others
Ans: B

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?
A. The right.
B. Neither.
C. Both.
D. The left.
Ans: A

Which coordinate system is NOT used during texture mapping?
A. Texture
B. Parametric
C. Light
D. World
Ans: C

When considering lighting, are the effects different when there is one object versus multiple objects?
A. No, the lighting model in OpenGL is very simple.
B. Yes since multiple objects mean light can bounce off of each object and affect the scene.
C. Yes since the absorbtion and reflection of light is shared among object.
Ans: B

What is “multisampling” and how is it used?
A. Multisampling is when multiple textures are used to create a single “mega-texture”
B. Multisampling is a type of anti-aliasing that allows multiple input sources to write to a single output source
C. Multisampling is a method of doing anti-aliasing (and scaling) which is still in use but is deprecated
Ans: C

What is “pixel unpacking”?
A. Retrieving data from GRAM with functions such as glReadPixel, glGetTexImage2D()
B. Open source mumbo-jumbo
C. Uncompressing image files, or uncompressing textures in GRAM within GPU-space
D. Storing data in GRAM with functions such as glDrawPixels, glTexImage2d
E. Real-time rendering operations that affect data integrity in a cross-platform context
Ans: D

How many dimensions are supported when performing texture mapping?
A. 2
B. 1
C. 3
D. 4
Ans: D

What kind of polygons can OpenGL draw?
A. Coplanar convex N-gons without holes
B. Coplanar convex N-gons with holes
C. Concave N-gons
D. Non-colinear coplanar concave N-gons
E. Convex and concave N-gons
Ans: A

What is the difference between glBlendFunc and glBlendFuncSeparate()?
A. glBlendFunc does separate the s and d values
B. glBlendFunc and glBlendFuncSeparate are essentially the same, but glBlendFunc provides more options and is newer, and thus not deprecated.
C. Both are deprecated but glBlendFunc was deprecated in 2002 after glBlendFuncSeparate was deprecated the year prior.
D. glBlendFunc is a shorter call that sets only the s and d factors
Ans: D

What is the non-official name for glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ZERO)?
A. Solarize
B. Additive
C. Overlay
D. Multiply
E. Transparency
Ans: A

What is “pixel packing”?
A. Assembling pixels into network-ready packets
B. Retrieving data from the GPU using glReadPixels, glGetTexImage, etc.
C. Storing data on the GPU using glDrawPixels, glTexImage2D, etc
Ans: B

OpenGL MCQs::