Computer Graphics Midterm Exam Reviewer v3

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/160

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:22 PM on 8/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

161 Terms

1
New cards

______________ can also be described as the number of horizontal points to vertical points (or vice versa) necessary to produce equal-length lines in both directions on the screen.

Aspect Ratio

2
New cards

The glColorPointer has 4 parameters for the function to work. One of its parameter is the size, for the size it is the number of components per color. What is the minimum number of components?

4

3
New cards

A type of display where a matrix of diodes is arranged to form the pixel positions in the display, and picture definition is stored in a refresh buffer.

LED PANEL

4
New cards

The frequency at which a picture is redrawn on the screen is referred to as ____________________.

REFRESH RATE

5
New cards

use optical effects to convert sunlight or light from some other source into graphics patterns

NONEMISSIVE DISPLAYS

6
New cards

What OpenGL constant is used to activate the use of colors as arrays in your application.

GL_COLOR_ARRAY

7
New cards

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.

Primitive Assembly

8
New cards

The time parameter in glutTimerFunc sets the callback to trigger in the span of

Millisecond

9
New cards

Common aspect ration for vertical smartphones

9:16

10
New cards

The most common type of graphics monitor employing a CRT is the ____________________ display, based on television technology. In this system the electron beam is swept across the screen, one row at a time, from top to bottom

Raster Scan Display

11
New cards

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

Video Card

12
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

GLsizei

int

13
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

GLfloat

float

14
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

GLclampf

float

15
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

GLdouble

double

16
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

GLclampd

double

17
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

GLubyte

unsigned char

18
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

GLushort

unsigned short

19
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

GLuint

unsigned int

20
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

GLenum

unsigned int

21
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

GLbitfield

unsigned int

22
New cards

also called gas-discharge displays, are constructed by filling the region between two glass plates with a mixture of gases that usually includes neon

Plasma Panel

23
New cards

The maximum number of points that can be displayed without overlap on a CRT is referred to as the __________________________.

Resolution

24
New cards

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

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

25
New cards

High-quality raster-graphics systems have 24 bits per pixel in the frame buffer, allowing 256 voltage settings for each electron gun and nearly _________ million color choices for each pixel

17

26
New cards

Common aspect ration for HDTV, Widescreen display

16:9

27
New cards

Alternatively you can use glDrawElements() to render a vertex array, the 2nd parameter for the glDrawElements() function is the

Specifies the number of elements to be rendered

28
New cards

The glColorPointer has 4 parameters for the function to work. What is the purpose of the 1st parameter

Specifies the number of components per color

29
New cards

The glColorPointer has 4 parameters for the function to work. What is the purpose of the last parameter

Specifies a pointer to the first component of the first color element in the array.

30
New cards

How many parameters does glutFullScreen have?

0

31
New cards

Display devices that convert electrical energy into lightD

emissive displays

32
New cards

Copy and Paste the items below to their appropriate description.

GL_POINT

GL_LINE

GL_LINE_LOOP

GL_LINE_STRIP

Use this primitive to draw a sequence of connected line segments

GL_LINE_STRIP

33
New cards

Copy and Paste the items below to their appropriate description.

GL_POINT

GL_LINE

GL_LINE_LOOP

GL_LINE_STRIP

Use this primitive type to render mathematical points. OpenGL renders a point for each vertex specified.

GL_POINT

34
New cards

Copy and Paste the items below to their appropriate description.

GL_POINT

GL_LINE

GL_LINE_LOOP

GL_LINE_STRIP

Use this primitive to close a line strip

GL_LINE_LOOP

35
New cards

Copy and Paste the items below to their appropriate description.

GL_POINT

GL_LINE

GL_LINE_LOOP

GL_LINE_STRIP

Use this primitive to draw unconnected line segments.

GL_LINE

36
New cards

Historically, the operation of most video monitors was based on the standard CRT design. What does CRT stands for

Cathode Ray Tube

37
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

signed char

unsigned char

float

unsigned short

signed short

int

double

unsigned int

Question:

GLbyte

signed char

38
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

signed char

unsigned char

float

unsigned short

signed short

int

double

unsigned int

Question:

GLshort

signed short

39
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

signed char

unsigned char

float

unsigned short

signed short

int

double

unsigned int

Question:

Glint

int

40
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

signed char

unsigned char

float

unsigned short

signed short

int

double

unsigned int

Question:

GLsizei

int

41
New cards

Identify the equivalent C-Language Type for each OpenGL Type Definition, using the different data types below:

signed char

unsigned char

float

unsigned short

signed short

int

double

unsigned int

Question:

GLfloat

float

42
New cards

For this course we will be using the DEvC++ IDE. Which version of IDE does this course recommend?

BloodShed

Orwell DevCpp

MingW

GCC

Orwell DevCpp

43
New cards

GLUT was originally written by.

Graydon Hoare

James Gosling

Mark Kilgard

Ivan Sutherland

Mark Kilgard

44
New cards

On what version of OpenGL does the original GLUT was abandoned?

3.7

1.7

2.5

4.3

3.7

45
New cards

It is a free-software/open source alternative to the OpenGL Utility Toolkit library.

GCC

MingW

Freeglut

LLVM

Freeglut

46
New cards

What does GLUT stands for?

OpenGL Utility Toolkit

OpenGL Utility Template

OpenGL User Tools

OpenGL User Graphical Text

OpenGL Utility Toolkit

47
New cards

In creating an OpenGL application in Dev-C++, what type of project should be selected?

DLL

Windows Application

Static Library

Console Application

Console Application

48
New cards

Where do you add the include and library folders of freeglut?

Project->Options->Directories

Project->Add To Project

Project->New File

Tools->Package Manager

Project->Options->Directories

49
New cards

What additional command line options do you include for an OpenGL program to work in Dev-C++?

-lfreeglut

-lglu32

-lopengl32

All of the above

All of the above

50
New cards

A command line option needed for the successful compilation of an OpenGL application.

-lfreeglut

-lopengl

-lgraphics

-lfreegl

-lfreeglut

51
New cards

Which of the following is the proper declaration of a pointer?

int *x;

int x;

int &x;

ptr x;

int *x;

52
New cards

OpenGL is best described as:

A graphics hardware device

A computer graphics rendering API

An operating system component

A programming language

A computer graphics rendering API

53
New cards

Which company first developed OpenGL?

Microsoft

Silicon Graphics (SGI)

IBM

Oracle

Silicon Graphics (SGI)

54
New cards

The first version of OpenGL was released in:

1990

1992

1994

1996

1994

55
New cards

OpenGL operates using which model?

Object-Oriented Model

Client-Server Model

Event-Driven Model

MVC Model

Client-Server Model

56
New cards

Which organization currently manages OpenGL standards?

ISO

IEEE

Khronos Group

ACM

Khronos Group

57
New cards

The latest version of OpenGL mentioned in the slides is:

3

4

4.5

5

4.5

58
New cards

In the sample OpenGL program, which function clears the screen buffer?

glEnd()

glBegin()

glClear()

glFlush()

glClear()

59
New cards

Which OpenGL function specifies the start of a primitive?

glStart()

glVertex()

glDraw()

glBegin()

glBegin()

60
New cards

What is the role of glEnd()?

Ends a list of vertices

Ends a program

Clears memory

Closes the window

Ends a list of vertices

61
New cards

Which OpenGL function forces buffered commands to execute?

glClear()

glBegin()

glDrawArrays()

glFlush()

glFlush()

62
New cards

Which keyword is used to define a function in C++?

method

func

function

No keyword required

No keyword required

63
New cards

What is the default return type of a function in C++ if none is specified?

void

int

float

double

void

64
New cards

Which of the following correctly defines a function prototype in C++?

int sum(int, int);

sum(int, int);

function sum(int, int);

prototype sum(int, int);

int sum(int, int);

65
New cards

What is a function that calls itself called?

inline function

overloadded function

recursive function

friend function

recursive function

66
New cards

Which of the following is true about inline functions?

Defined inside a class only

Compiler always expands inline functions

They reduce function call overhead

They can only return integers

They reduce function call overhead

67
New cards

What is the purpose of the return statement?

to stop a loop

to end a function and return a value

to return a value

to allocae memory

to end a function and return a value

68
New cards

Which function type does not return any value?

vois

int

double

char

vois

69
New cards

What happens if a function is declared but not defined in C++?

compiler ignores it

linker error occurs

it runs with default behavior

it is treated as inline

linker error occurs

70
New cards

Which keyword is used to define a function inside a class?

inline function

member

nothing spacial, just declare normally

func

nothing spacial, just declare normally

71
New cards

Which of the following allows multiple functions with the same name but different parameters?

Function overriding

Function overloading

Function templating

Operator overloading

Function overloading

72
New cards

What is computer graphics primarily concerned with?

Group of answer choices

Editing audio

Writing novels

Managing databases

Creating and manipulating visual content using computers

Creating and manipulating visual content using computers

73
New cards

Which programming language is widely used for graphics due to performance and memory control?

Group of answer choices

Ruby

C++

Python

Java

C++

74
New cards

What does GPU stand for?

Group of answer choices

Global Performance Utility

Graphics Processing Unit

Graphical Programming Utility

General Processing Unit

Graphics Processing Unit

75
New cards

Which of the following is a raster graphics format?

Group of answer choices

DWG

SVG

Postscript

PNG

PNG

76
New cards

Which graphics type is scalable without loss of quality?

Group of answer choices

Bitmap

Raster

Pixmap

Vector

Vector

77
New cards

Who is considered a pioneer of computer graphics?

Group of answer choices

Alan Turing

John Carmack

Ivan Sutherland

Tim Berners-Lee

Ivan Sutherland

78
New cards

What is the aspect ratio of a screen with 4 horizontal units and 3 vertical units?

Group of answer choices

1:1

3:4

16:9

4:3

4:3

79
New cards

Which application area uses computer graphics for virtual surgery simulations?

Group of answer choices

Scientific Visualization

Medical Visualization

AR

CAD

Medical Visualization

80
New cards

What does VRAM stand for?

Group of answer choices

Video RAM

Visual RAM

Variable RAM

Virtual RAM

Video RAM

81
New cards

Which bit depth supports 256 tones?

Group of answer choices

4-bit

8-bit

24-bit

16-bit

8-bit

82
New cards

Which rendering algorithm introduced in 1980 simulates global illumination using ray tracing?

Group of answer choices

Anti-aliasing

Ray tracing

Z-buffer

Radiosity

Ray tracing

83
New cards

Which graphics pioneer developed the Sketchpad system?

Group of answer choices

Sutherland

Catmull

Blinn

Warnock

Sutherland

84
New cards

Which lighting model includes ambient, diffuse, and specular components?

Group of answer choices

Gouraud

Phong

Lambert

Blinn

Phong

85
New cards

What is the primary advantage of vector graphics over raster graphics?

Group of answer choices

Smaller file size

Better color depth

Scalability without pixelation

Faster rendering

Scalability without pixelation

86
New cards

Which algorithm solves the visibility problem by sorting surfaces?

Group of answer choices

Z-buffer

Warnock

Appel

Sutherland

Sutherland

87
New cards

Which rendering equation was introduced by Kajiya in 1986?

Group of answer choices

Radiosity

Rendering equation

Ray tracing

Shade trees

Rendering equation

88
New cards

Which bit depth supports over 16 million tones?

Group of answer choices

24-bit

32-bit

8-bit

16-bit

24-bit

89
New cards

Which file format is used for vector graphics in web applications?

Group of answer choices

TIFF

SVG

PNG

JPG

SVG

90
New cards

Which graphics concept studies how humans perceive light and visual information?

Group of answer choices

Simulation

Perception

Visualization

Rendering

Perception

91
New cards

Which graphics technique uses physics to animate models over time?

Group of answer choices

Shading

Modeling

Rendering

Simulation

Simulation

92
New cards

What is one purpose of using functions in programming?

Group of answer choices

To increase memory usage

To reuse abstractions

To complicate the code

To make the program longer

To reuse abstractions

93
New cards

The sqrt() function calculates the square root of a number.

Group of answer choices

False

True

True

94
New cards

Which of the following is a function with no return value and no parameter?

Group of answer choices

int addTwoNumbers(int n1, int n2)

void displayHello()

void printit(int x)

int addTwo()

void displayHello()

95
New cards

The int main() function is the only required function in a C++ program.

Group of answer choices

False

True

False

96
New cards

What does the fabs() function return?

Group of answer choices

The logarithm of a number

The floor of a number

The absolute value of a floating-point number

The cube root of a number

The absolute value of a floating-point number

97
New cards

The pow(x, y) function raises x to the power of y.

Group of answer choices

False

True

True

98
New cards

What is the output of cout << "Hello World..." << endl;?

Group of answer choices

Hello World...

"Hello World..."

cout

endl

Hello World...

99
New cards

What is a function prototype?

Group of answer choices

A declaration that tells the compiler about a function's valid input and output

The main part of a function

The body of a function

A variable that stores a function

A declaration that tells the compiler about a function's valid input and output

100
New cards

What is the value of cbrt(27.0)?

Group of answer choices

-3.0

9.0

3.0

27.0

3