After a glRenderMode (GL_SELECT), no fragment are produced.
Can "discard" be used in a vertex shader?
Can glNormal be called between glBegin and glEnd ?
Can you read a uniform value from the C code?
Consider the following code: glTranslatef (1.0, 2.0, 3.0); glRotatef (40, 1.0, 0.0, 0.0); What will be the first transformation from a geometric point of view?
Translation 0%
Rotation 0%
Does gluProject use the current matrix stack?
glOrtho is used to define a _________ matrix.
modelview 0%
projection 0%
texture 0%
view 0%
model 0%
How can you access the current modelview matrix?
With glModelviewMatrix 0%
With glGetMatrix 0%
With glReadMatrix 0%
With glStack 0%
None of the above 0%
How do you initialize the name stack?
Using glCreateStack () 0%
Using glInitNames () 0%
Using glPushMatrix () 0%
None of the above 0%
If the viewport is 1024 by 768, the projection matrix is a 45 degree perspective matrix with the viewport ratio and the modelview matrix is the identity, what will be drawn on the screen when the f...
Yellow lines 0%
Yellow square 0%
Yellow rectangle 0%
This code is an invalid drawing function 0%
None of the above 0%
In Linux, what API will you use to get an OpenGL context?
agl 0%
wgl 0%
glX 0%
None of the above 0%
In which version of OpenGL, GLSL was introduced as a core feature?
1.1 0%
1.2 0%
1.3 0%
2.0 0%
2.1 0%
In Windows, what API will you use to get an OpenGL context?
agl 0%
wgl 0%
glX 0%
None of the above 0%
Is gluBeginPolygon the same as glBegin(GL_POLYGON)?
Is the following a valid drawing function? void draw (void) { glClear (GL_COLOR_BUFFER_BIT); glBegin (GL_QUADS); glVertex2i (1, 0); glVertex2i (1, 1); glVertex2i (-1, 1); ...
Is the following a valid drawing function? void draw (void) { glClear (GL_COLOR_BUFFER_BIT); glMatrixMode (GL_PROJECTION); glLoadIdentity (); glPushMatrix (); gluPerspective (...
Is the following code correct? glBegin (GL_QUADS); glVertex2i (1, 0); glVertex2i (1, 1); glVertex2i (-1, 1); glVertex2i (-1, 0); glEnd (GL_QUADS);
Is the following code valid? glMatrixMode (GL_MODELVIEW); glLoadIdentity (); glTranslatef (0, 0, -10);
Is there any non-structured flow of control like "goto" in GLSL?
On what language is GLSL syntax based?
ruby 0%
C 0%
python 0%
Objective-C 0%
None of the above 0%
On which matrix stack should gluLookAt be used?
Texture 0%
Projection 0%
Modelview 0%
Color 0%
On which matrix stack should gluOrtho2D be used?
Texture 0%
Color 0%
Modelview 0%
Projection 0%
OpenGL can draw convex polygons. Can it draw non-convex ones?
OpenGL has some windows manipulation functions.
The matrix, after the following calls, will be the identity matrix. glLoadIdentity (); glTranslatef (0, 0, -10); glRotatef (40, 1, 0, 0); glTranslatef (0, 0, 10); glR...
What does glActiveTexture do?
It changes the active texture unit 0%
It queries the active texture unit 0%
It overrides the current texture unit 0%
None of the above 0%
What does glBitmap do?
It loads a bitmap file 0%
It loads a png file 0%
It draws a bitmap 0%
It creates a texture 0%
None of the above 0%
What does glClear do?
It clears all OpenGL buffers 0%
It clears the OpenGL buffers specified in an argument 0%
It sets the window color to black 0%
None of the above 0%
What does glFrustum do?
It multiplies the current matrix by a translation matrix 0%
It multiplies the current matrix by a perspective matrix 0%
It multiplies the current matrix by a texture matrix 0%
It multiplies the current matrix by a color matrix 0%
None of the above 0%
What does glGetMinmax do?
It gets minimum and maximum vertex values 0%
It gets minimum and maximum surface values 0%
It gets minimum and maximum texture values 0%
It gets minimum and maximum pixel values 0%
None of the above 0%
What does glPassThrough() do?
It passes polygon through the depth buffer 0%
It loads the accumulation buffer 0%
It places a marker in the feedback buffer 0%
It loads a texture 0%
None of the above 0%
What does gluOrtho2D do?
It sets the eye position 0%
It defines a projection matrix 0%
It defines a modelview matrix 0%
None of the above 0%
What image format does OpenGL understand?
png 0%
bmp 0%
tiff 0%
tga 0%
OpenGL cannot read images directly 0%
What is a display list?
A buffer object 0%
A list of commands 0%
A list of vertices 0%
None of the above 0%
What is a proxy texture?
A server side texture 0%
A texture without pixel data 0%
A 3d texture 0%
None of the above 0%
What is a varying variable?
A variable passed from the C code to the vertex shader 0%
A variable passed from the C code to the fragment shader 0%
A variable passed from the vertex shader to the fragment shader 0%
A variable passed from the fragment shader to the vertex shader 0%
None of the above 0%
What is blending?
Texturing 0%
Layer composition 0%
Geometry transformation 0%
None of the above 0%
What is gl_Vertex in a vertex shader?
An attribute 0%
An uniform 0%
A varying 0%
A constant 0%
None of the above 0%
What is the common size of OpenGL matrices?
2x2 0%
3x3 0%
4x4 0%
3x4 0%
4x3 0%
What is the default parameter qualifier?
none 0%
in 0%
out 0%
inout 0%
None of the above 0%
What is the difference between glLoadTransposeMatrix and glLoadMatrix?
glLoadTransposeMatrix does not require any argument to transpose the matrix on top of the stack wheras glLoadMatrix does 0%
glLoadTransposeMatrix transposes the given matrix before loading it wheras glLoadMatrix does not 0%
glLoadTransposeMatrix loads the matrix in the transpose area of the GPU wheras glLoadMatrix does not 0%
None of the above 0%
What is the difference between statements A and B? A: gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex; B: gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
They are equivalent 0%
The former has a syntax error whereas the latter has not any 0%
The former is valid whereas the latter is not 0%
None of the above 0%
What is the first argument of glRotate?
The angle in radians 0%
The angle in degrees 0%
The center vector 0%
None of the above 0%
What is the primary language of OpenGL?
C++ 0%
C 0%
Ruby 0%
Perl 0%
Java 0%
What is the purpose of glTexCoord?
To specify the origin and size of a texture 0%
To associate a texture coordinate with a vertex or raster position 0%
To generate a UV map from a 3D model 0%
To generate a coordinate grid for the current texture 0%
None of the above 0%
What is true of OpenGL?
It is a pixel precise specification 0%
It has numerous implementations 0%
It can be fully implemented in software 0%
None of the above is true 0%
What is true of the following code? glPushMatrix (); glLoadIdentity (); glTranslatef (1.0, 2.0, 4.0); glPopMatrix ();
After this code has been executed, the matrix stack will be restored to its original state. 0%
This code has a syntax error. 0%
Load identity cannot appear after a push matrix. 0%
None of the above is true 0%
What is usually the best texture format for upload?
GL_UNSIGNED_BYTE 0%
GL_UNSIGNED_SHORT 0%
GL_UNSIGNED_INT_8_8_8_8_REV 0%
GL_INT 0%
GL_FLOAT 0%
What is vsync?
Synchronization with vertex arrays 0%
Synchronization with the monitor refresh rate 0%
Synchronization with VBO 0%
Synchronization with the windows server 0%
None of the above 0%
What is/are the return type/s of glGetx () ?
int 0%
It/they depend/s on the function 0%
void 0%
float 0%
vector 0%
What should be added to make this drawing function valid? void draw (void) { glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glTranslatef (0, 0, -10); glColor3f (1.0, 1....
It is already valid 0%
glPushMatrix () 0%
glLoadIdentity () 0%
glPopMatrix () 0%
None of the above 0%
What should be the render mode to use glLoadName ()?
GL_RENDER 0%
GL_SELECT 0%
GL_FEEDBACK 0%
None of the above 0%
What will be drawn by the following code? glBegin (GL_QUADS); glVertex2i (1, 0); glVertex2i (1, 1); glVertex2i (-1, 0); glEnd ();
A quad 0%
A polygon 0%
A line 0%
This code is invalid 0%
None of the above 0%
What will be drawn by the following code? glBegin (GL_QUADS); glVertex2i (1, 0); glVertex2i (1, 1); glVertex2i (-1, 0); glVertex2i (-1, 1); glEnd ();
A quad 0%
A triangle 0%
Two lines 0%
A circle 0%
None of the above 0%
What will be the size of the quad drawn by the following code on the screen? glBegin (GL_QUADS); glVertex2i (1, 0); glVertex2i (1, 1); glVertex2i (-1, 1); glVertex2i (-1, 0); ...
1 pixel 0%
1 cm 0%
1 inch 0%
It depends on the projection and modelview matrices 0%
None of the above 0%
What will happen if a null pointer is used with glTexImage2D()? (In OpenGL >1.1)
An error will occur 0%
Undefined behaviour wil result 0%
The texture space will be allocated for future use with sub-textures 0%
None of the above 0%
What will happen if you do the following? glMatrixMode (GL_PROJECTION); glRotatef (10, 1, 0, 0);
A bus error will result 0%
An OpenGL error will result 0%
A rotation matrix is multiplied with the current projection matrix 0%
The projection matrix will be filled with garbages 0%
None of the above 0%
When a matrix has been popped from the stack, is it possible to read it again?
Yes, in the backbuffer 0%
Yes, with the matrix history 0%
Yes, by pushing an empty matrix 0%
No 0%
When glMultMatrix takes a matrix, how should it be ordered?
Row-major 0%
Column-major 0%
Mixed mode 0%
None of the above 0%
Which color is defined by the following call? glColor3f (1.0, 0.0, 0.0);
blue 0%
gray 0%
white 0%
red 0%
green 0%
Which color is defined by the following call? glColor3ub (0, 255, 0);
red 0%
blue 0%
green 0%
gray 0%
white 0%
Which function should be used to specify the coordinates of a point?
glPoint 0%
glCoord 0%
glVertex 0%
glPointCoord 0%
None of the above 0%
Which function should be used to specify the value of a sampler1D?
glSampler1D 0%
glSamplerUniform 0%
glUniform1i 0%
glSetSampler 0%
None of the above 0%
Which function should be used to upload a 2D texture to OpenGL?
glUploadTex 0%
glTexCreate2D 0%
glTexImage2D 0%
glBuildTexture2D 0%
glTexture 0%
Which of the following are valid picking methods?
Back buffers 0%
Select buffers 0%
Automatic selection 0%
Render buffers 0%
None of the above 0%
Which of the following buffer types is/are supported in OpenGL?
Stencil 0%
Color 0%
Depth 0%
Accumulation 0%
All of the above 0%
Which of the following functions has an unsigned byte variant? (taking GLubyte as arguments)
glVertex 0%
glColor 0%
glNormal 0%
glTexCoord 0%
None of the above 0%
Which of the following is faster?
glBegin, glVertex, etc. 0%
Vertex buffer objects 0%
Vertex arrays 0%
None of the above 0%
Which of the following is not a valid argument to glBegin ()?
GL_POINTS 0%
GL_LINES 0%
GL_LINE_STRIP 0%
GL_TRIANGLES 0%
GL_QUADS_FAN 0%
Which of the following is not a valid argument to glMatrixMode ?
GL_COLOR 0%
GL_PROJECTION 0%
GL_TEXTURE 0%
GL_DEPTH 0%
GL_MODELVIEW 0%
Which of the following is not an OpenGL primitive?
Point 0%
Polygon 0%
Circle 0%
Quad 0%
Triangle 0%
Which of the following is typically applied to the modelview matrix stack?
glFrustrum 0%
glRotate 0%
gluPerspective 0%
glOrtho 0%
gluOrtho2d 0%
Which of the following might be used to draw VBOs?
glDrawArrays 0%
glDrawRangeElements 0%
glDrawElements 0%
glDrawVBO 0%
None of the above 0%
Which primitives may be used to draw a circle?
Polygon 0%
Lines 0%
Quads 0%
Triangles 0%
None of the above 0%
Which values can be used with glTexParameter and GL_TEXTURE_MAG_FILTER parameter names?
GL_NEAREST 0%
GL_FAR 0%
GL_BILINEAR 0%
GL_LINEAR 0%
GL_MIPMAP 0%
Who created OpenGL?
Sun 0%
Microsoft 0%
SGI 0%
Apple 0%
Dell 0%
With depth test enabled, will the following drawing code work for depth testing? void draw (void) { glClear (GL_COLOR_BUFFER_BIT); glPolygonMode (GL_FRONT_AND_BACK, GL_LINE); glMa...