COMPUTER GRAPHICS Review Exam Q &
A USC Latest Version 2026
The first version of OpenGL was released in:
1990
1992
1994
1996
1994
OpenGL operates using which model?
Object-Oriented Model
Client-Server Model
Event-Driven Model
MVC Model
Client-Server Model
Which organization currently manages OpenGL standards?
ISO
IEEE
Khronos Group
ACM
Khronos Group
The latest version of OpenGL mentioned in the slides is:
3
4
4.5
5
4.5
In the sample OpenGL program, which function clears the
screen buffer?
,glEnd()
glBegin()
glClear()
glFlush()
glClear()
Which OpenGL function specifies the start of a primitive?
glStart()
glVertex()
glDraw()
glBegin()
glBegin()
What is the role of glEnd()?
Ends a list of vertices
Ends a program
Clears memory
Closes the window
Ends a list of vertices
Which OpenGL function forces buffered commands to
execute?
glClear()
glBegin()
glDrawArrays()
glFlush()
glFlush()
Which keyword is used to define a function in C++?
method
func
function
No keyword required
No keyword required
,What is the default return type of a function in C++ if none is
specified?
void
int
float
double
void
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);
What is a function that calls itself called?
inline function
overloadded function
recursive function
friend function
recursive function
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
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
Which function type does not return any value?
vois
int
double
char
vois
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
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
Which of the following allows multiple functions with the
same name but different parameters?
Function overriding
Function overloading
Function templating
Operator overloading
Function overloading
What is computer graphics primarily concerned with?
Group of answer choices
Editing audio
Writing novels
A USC Latest Version 2026
The first version of OpenGL was released in:
1990
1992
1994
1996
1994
OpenGL operates using which model?
Object-Oriented Model
Client-Server Model
Event-Driven Model
MVC Model
Client-Server Model
Which organization currently manages OpenGL standards?
ISO
IEEE
Khronos Group
ACM
Khronos Group
The latest version of OpenGL mentioned in the slides is:
3
4
4.5
5
4.5
In the sample OpenGL program, which function clears the
screen buffer?
,glEnd()
glBegin()
glClear()
glFlush()
glClear()
Which OpenGL function specifies the start of a primitive?
glStart()
glVertex()
glDraw()
glBegin()
glBegin()
What is the role of glEnd()?
Ends a list of vertices
Ends a program
Clears memory
Closes the window
Ends a list of vertices
Which OpenGL function forces buffered commands to
execute?
glClear()
glBegin()
glDrawArrays()
glFlush()
glFlush()
Which keyword is used to define a function in C++?
method
func
function
No keyword required
No keyword required
,What is the default return type of a function in C++ if none is
specified?
void
int
float
double
void
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);
What is a function that calls itself called?
inline function
overloadded function
recursive function
friend function
recursive function
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
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
Which function type does not return any value?
vois
int
double
char
vois
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
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
Which of the following allows multiple functions with the
same name but different parameters?
Function overriding
Function overloading
Function templating
Operator overloading
Function overloading
What is computer graphics primarily concerned with?
Group of answer choices
Editing audio
Writing novels