wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CS0045 M3-M4

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

The function call glutDisplayFunc(display) is a callback function where display() is called only once in the whole lifetime of a program

a)

True

b)

False

2.

How many bits does the glLineStipple() function pattern represent to describe a line pattern

a)

64

b)

16

c)

32

d)

8

3.

What does the number suffix in the glVertex2f() function is referring to?

a)

No of function parameters

b)

The maximum value of the coordinates

c)

No of colors to be used

d)

None of the above

4.

What does the letter f suffix in the glVertex2f() function is referring to?

a)

The data type of the coordinates

b)

Tells that you are specifying a position

c)

The last character f is mandatory for using glVertex

d)

None of the above

5.

You use the command glVertex2fv() when you refer to a data that is in the array?

a)

True

b)

False

6.

The color blue is represented by the command glColor3f(1.0f,0.0f,0.0f)

a)

True

b)

False

7.

OpenGL uses an object-oriented framework to make its functions easy to use

a)

True

b)

False

8.

The color black is represented by the command glColor3f(1.0f,1.0f,1.0f)

a)

True

b)

False

9.

The color white is represented by the command glColor3f(0.0f,0.0f,0.0f)

a)

True

b)

False

10.

It is required for OpenGL to enable Line Stippling before changing the line style pattern

a)

True

b)

False

11.

The command used to enable line style pattern in OpenGL

a)

GL_LINE

b)

GL_LINE_LOOP

c)

GL_LINE_STIPPLE

d)

GL_LINE_PATTERN

12.

In the glColor3f() function what does the 1st parameter represent

a)

Green

b)

Blue

c)

Red

d)

Alpha

13.

In the glColor3f() function what does the 3rd parameter represent

a)

Green

b)

Blue

c)

Red

d)

Alpha

14.

In the glColor3f() function what does the 2nd parameter represent

a)

Green

b)

Blue

c)

Red

d)

Alpha

15.

OpenGL was first developed at

a)

Google

b)

Apache

c)

Oracle

d)

SGI

16.

is an OpenGL function species that end of a list of vertices

a)

glEnd()

b)

glBegin()

c)

glVertex()

d)

glClear()

17.

is an OpenGL function species the location of the vertex

a)

glFlush()

b)

glBegin()

c)

glVertex()

d)

glClear()

18.

is an OpenGL function force previously buffered OpenGL commands to execute

a)

glFlush()

b)

glBegin()

c)

glVertex()

d)

glClear()

19.

is an OpenGL function clears all buffers whose bits are set in mask. GL_COLOR_BUFFER_BIT refers to the color buffer

a)

glFlush()

b)

glBegin()

c)

glVertex()

d)

glClear()

20.

is an OpenGL function specifies the beginning of an object of type mode. Modes include GL_POINTS, GL_LINES, and GL_POLYGON

a)

glFlush()

b)

glBegin()

c)

glVertex()

d)

glClear()

21.

The glutInitWindowPosition(0,0) makes the upper left corner of the window as a reference to be placed at what position in the screen

a)

Upper Left

b)

Bottom Left

c)

Upper Right

d)

Bottom Right

22.

In the OpenGL Rendering pipeline it is where shapes are being corrected for possible detection of gaps on the surface so there would be no gaps

a)

Tesselation

b)

Rasterization

c)

Per-Sample Operations

d)

Primitive Assembly

23.

In the OpenGL Rendering pipeline it is the process whereby each individual primitive is broken down into discrete elements called fragments, based on the sample coverage of the primitive.

a)

Tesselation

b)

Rasterization

c)

Per-Sample Operations

d)

Primitive Assembly

24.

In the OpenGL Rendering pipeline it is where fragment shaders are processed, and their resulting data are written to various buffers.

a)

Tesselation

b)

Rasterization

c)

Per-Sample Operations

d)

Primitive Assembly

25.

In the OpenGL Rendering pipeline it is where the parts of the primitive that are determined to be potentially visible are sent to a fixed-function subsystem called the rasterizer

a)

Vertex Post Processing

b)

Rasterizer

c)

Per-Sample Operations

d)

Primitive Assembly

26.

In the OpenGL Rendering pipeline it is the stage where the vertex outputs of the vertex processing undergo a variety of operations.

a)

Vertex Post Processing

b)

Rasterizer

c)

Per-Sample Operations

d)

Primitive Assembly

27.

In the OpenGL Rendering pipeline it is where increases the number of polygons to smoothen out the object

a)

Tesselation

b)

Rasterization

c)

Geometry Shader

d)

Primitive Assembly

28.

In the OpenGL Rendering pipeline it is the shader stage that will process a fragment generated by the rasterization into a set of colors

a)

Tesselation

b)

Fragment Shader

c)

Geometry Shader

d)

Primitive Assembly

29.

In the OpenGL Rendering pipeline it is the stage that handles the processing of individual vertices

a)

Vertex Shader

b)

Per-Sample Operations

c)

Primitive Assembly

d)

Vertex Post Processing

30.

In the OpenGL Rendering pipeline it is the stage where we describe certain attributes, like the position of a point in 2D or 3D space, or multiple points on a surface

a)

Vertex Specification

b)

Per-Sample Operations

c)

Primitive Assembly

d)

Vertex Post Processing

31.

The glutInitWindowSize(param1,param2) parameters specifies the ______ of a window

a)

Bottom, Top

b)

Width, Height

c)

Height, Width

d)

Top, Bottom

32.

OpenGLs architecture is a client-server model where the client is the application and the server is the

a)

Video Card

b)

Device Driver

c)

Code Server

d)

Internet Server

33.

OpenGL is a computer graphics rendering

a)

Software

b)

Tool

c)

Engine

d)

API

34.

What year does the first version of OpenGL was released

a)

1991

b)

1993

c)

1994

d)

1992

35.

A glut function that makes the program to enter an infinite event-processing loop. It should be the last statement in the main() function

a)

glutMainLoop()

b)

glutInit()

c)

glutCreateWindow()

d)

glutDisplayFunc()

36.

GL_POINTS needs two glVertex2f() commands to render a point

a)

True

b)

False

37.

GL_LINES needs two glVertex2f() commands to render a line

a)

True

b)

False

38.

What is the minimum number of vertex specification in using GL_QUADS

a)

3

b)

4

c)

2

d)

5

39.

If the number of vertices specified for GL_TRIANGLES is not multiples of 3. What will happen to the rendered triangle

a)

Nothing will be rendered

b)

A compilation error will occur

c)

A runtime error will occur

d)

A triangle will be rendered and the excess vertex will be ignored

40.

OpenGL was designed to be

a)

Object-Oriented

b)

Window System Independent

c)

Fast and Lightweight

d)

All of the above

41.

OpenGL was designed to be

a)

Object-Oriented

b)

Operating System Independent

c)

Fast and Lightweight

d)

All of the above

42.

Shaders are required to create an OpenGL application

a)

True

b)

False

43.

How many OpenGL Primitives are there in the OpenGL API?

a)

10

b)

9

c)

7

d)

8

44.

What is the minimum number of vertex specification in using GL_POLYGON

a)

4

b)

2

c)

3

d)

5

45.

is a user defined program designed to run on some stage of a graphics

a)

Material

b)

Shader

c)

Texture

d)

Lighting

46.

What group is responsible for managing the OpenGL specification

a)

Apache

b)

Khronos

c)

SGI

d)

Google

47.

is the header file to be included to use the GLUT library

a)

gl.h

b)

glut.h

c)

opengl.h

d)

freeglut.h

48.

Use this to render mathematical points. It also renders a point for each vertex specified.

a)

GL_POINTS

b)

GL_LINES

c)

GL_QUADS

d)

GL_POLYGON

e)

GL_TRIANGLES

49.

Use this to draw a single filled convex n-gon primitive. It also renders an n-sided polygon. If n is less then 3, it will not render anything

a)

GL_POINTS

b)

GL_LINES

c)

GL_QUADS

d)

GL_POLYGON

e)

GL_TRIANGLES

50.

Use this to draw individual convex quadrilaterals. It renders a quadrilateral for each group of 4 vertices

a)

GL_QUADS

b)

GL_QUAD_STRIP

c)

GL_QUAD_LOOP

51.

Use this to draw a sequence of quadrilaterals that share edges.

a)

GL_QUADS

b)

GL_QUAD_STRIP

c)

GL_QUAD_LOOP

52.

Use this to draw individual triangles. It also renders a triangle for each group of 3 vertices

a)

GL_TRIANGLE_STRIP

b)

GL_TRIANGLE_FAN

c)

GL_TRIANGLES

53.

Use this to draw sequence of triangles that share edges

a)

GL_TRIANGLE_STRIP

b)

GL_TRIANGLE_FAN

c)

GL_TRIANGLES

54.

Use this to draw a fan of triangles that share edges and also share a vertex. Each triangle shares the first vertex specified

a)

GL_TRIANGLE_STRIP

b)

GL_TRIANGLE_FAN

c)

GL_TRIANGLES

55.

Use this primitive to draw unconnected line segments. OpenGL draws a line segment for each group of 2 vertices

a)

GL_LINES

b)

GL_LINE_STRIP

c)

GL_LINE_LOOP

56.

Use this primitive to draw a sequence of connected line segments. OpenGL renders a line segment between the 1st and 2nd vertices

a)

GL_LINES

b)

GL_LINE_STRIP

c)

GL_LINE_LOOP

57.

Use this primitive to close a line strip. OpenGL renders a line segment between the 1st and 2nd vertices with the addition of a closing line segment between the final and first vertices

a)

GL_LINES

b)

GL_LINE_STRIP

c)

GL_LINE_LOOP

58.

glLineStipple syntax

a)

glLineStipple(repeatFactor, pattern)

b)

glLineStipple(pattern, repeatFactor)

c)

glLineStipple(repeatFactor, patternFactor)

d)

glLineStipple(patternFactor, repeatFactor)

59.

default value of glLineWidth

a)

1.0

b)

0.0

c)

2.5

d)

5.0

60.

sets the fixed width of lines

a)

glLine

b)

glLineWidth

c)

glLineLength

d)

glLineVertex