Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

ELECTIVE

QuestionAnswer
For this course we will be using the DEvC++ IDE. Which version of IDE does this course recommend? Orwell DevCpp
GLUT was originally written by. Mark Kilgard
On what version of OpenGL does the original GLUT was abandoned? 3.7
It is a free-software/open source alternative to the OpenGL Utility Toolkit library. Freeglut
What does GLUT stands for? OpenGL Utility Toolkit
In creating an OpenGL application in Dev-C++, what type of project should be selected? Console Application
Where do you add the include and library folders of freeglut? Project->Options->Directories
What additional command line options do you include for an OpenGL program to work in Dev-C++? All of the above
A command line option needed for the successful compilation of an OpenGL application. -lfreeglut
Which of the following is the proper declaration of a pointer? int *x;
OpenGL is best described as: A computer graphics rendering API
Which company first developed OpenGL? Silicon Graphics (SGI)
The first version of OpenGL was released in: 1994
OpenGL operates using which model? Client-Server Model
Which organization currently manages OpenGL standards? Khronos Group
The latest version of OpenGL mentioned in the slides is: 4.5
In the sample OpenGL program, which function clears the screen buffer? glClear()
Which OpenGL function specifies the start of a primitive? glBegin()
What is the role of glEnd()? Ends a list of vertices
Which OpenGL function forces buffered commands to execute? glFlush()
Which keyword is used to define a function in C++? No keyword required
What is the default return type of a function in C++ if none is specified? void
Which of the following correctly defines a function prototype in C++? int sum(int, int);
What is a function that calls itself called? recursive function
Which of the following is true about inline functions? They reduce function call overhead
What is the purpose of the return statement? to end a function and return a value
Which function type does not return any value? void
What happens if a function is declared but not defined in C++? linker error occurs
Which keyword is used to define a function inside a class? nothing special, just declare normally
Which of the following allows multiple functions with the same name but different parameters? Function overloading
What is computer graphics primarily concerned with? Creating and manipulating visual content using computers
Which programming language is widely used for graphics due to performance and memory control? C++
What does GPU stand for? Graphics Processing Unit
Which of the following is a raster graphics format? PNG
Which graphics type is scalable without loss of quality? Vector
Who is considered a pioneer of computer graphics? Ivan Sutherland
What is the aspect ratio of a screen with 4 horizontal units and 3 vertical units? 4:3
Which application area uses computer graphics for virtual surgery simulations? Medical Visualization
What does VRAM stand for? Video RAM
Which bit depth supports 256 tones? 8-bit
Which rendering algorithm introduced in 1980 simulates global illumination using ray tracing? Ray tracing
Which graphics pioneer developed the Sketchpad system? Sutherland
Which lighting model includes ambient, diffuse, and specular components? Phong
What is the primary advantage of vector graphics over raster graphics? Scalability without pixelation
Which algorithm solves the visibility problem by sorting surfaces? Sutherland
Which rendering equation was introduced by Kajiya in 1986? Rendering equation
Which bit depth supports over 16 million tones? 24-bit
Which file format is used for vector graphics in web applications? SVG
Which graphics concept studies how humans perceive light and visual information? Perception
Which graphics technique uses physics to animate models over time? Simulation
What is one purpose of using functions in programming? To reuse abstractions
The sqrt() function calculates the square root of a number. True
Which of the following is a function with no return value and no parameter? void displayHello()
The int main() function is the only required function in a C++ program. False
What does the fabs() function return? The absolute value of a floating-point number
The pow(x, y) function raises x to the power of y. True
What is the output of cout << "Hello World..." << endl;? Hello World...
What is a function prototype? A declaration that tells the compiler about a function's valid input and output
What is the value of cbrt(27.0)? 3.0
What is the purpose of the return statement? It tells the computer to leave the function immediately.
What is the value of addTwoNumbers(10, 100) given the example code? 110
Which of the following is a key characteristic of a well-defined function according to the presentation? It should perform a single well-defined task.
Which of the following are examples of functions with a parameter and a return value? int addTwoNumbers(int n1, int n2)
What is the output of fmod(13.657, 2.333)? 1.992
What is the output of addTwoNumbers(addTwo(), 100) given the example code? 115
What is the purpose of the using namespace std; statement? It allows the program to use identifiers from the std namespace without the std:: prefix.
Which of the following is an example of an int function with no parameters? int addTwo()
What does the return 0; statement in int main() typically signify? The program executed successfully.
A function's "contract" defines its inputs and outputs. True
What is the value of floor(-9.8)? -10
What does OpenGL stand for? Open Graphics Library
The OpenGL rendering pipeline is a sequence of stages that processes 3D data to produce a 2D image. True
Which of the following is a fixed-function stage of the OpenGL rendering pipeline? Rasterization
Which company first developed OpenGL? Silicon Graphics
The Geometry Shader is a mandatory stage of the rendering pipeline. False
What is the purpose of the Fragment Shader? To determine the final color of a fragment
Which of the following is a geometric primitive in OpenGL? Polygons
What is a "programmable stage" in the OpenGL pipeline? A stage where developers can write custom code called shaders
What does the glutCreateWindow() function do? Creates a window on the screen with a specified title
What is the purpose of the glFlush() command? To force buffered OpenGL commands to execute
What is the Khronos Group? An industry consortium that manages open, royalty-free standards
The glutInit() function must be called before other GLUT and OpenGL functions. True
What is the purpose of glVertex2f()? To specify the location of a vertex
What is the purpose of glutMainLoop()? To enter an infinite event-processing loop
What is the term for a property that determines how a primitive is displayed by OpenGL? Attribute
What is the first programmable stage of the OpenGL rendering pipeline? Vertex Shader
What are Vertex Buffer Objects (VBOs) and Vertex Array Objects (VAOs) used for? Defining and organizing raw vertex data in memory
What is the purpose of glClear(GL_COLOR_BUFFER_BIT)? To clear the color buffer
The OpenGL pipeline saves time by skipping unnecessary work, such as clipping off-screen objects. True
What is the client-server model in the context of OpenGL? A model where the application is the client and the vendor's implementation is the server
A command line option needed for the successful compilation of an OpenGL application. Group of answer choices -lgraphics -lopengl -lfreeglut -lfreegl -lfreeglut @@
A command line option needed for the successful compilation of an OpenGL application Group of answer choices -glu32 -lglut32 -gl32 -lfreegl -lfreeglut32
Which of the following gives the memory address of integer variable a? Group of answer choices &a; address(a); *a; *a; &a;
. A Symbol used to determine the address of a variable or simple called the address-of-operator. &
Which of the following is a valid C array definition? Group of answer choices int array[0]; void numbers[5]; float $$payments[10]; int nums[10]; int nums[10];@@
(New Question) 1 pts What is the last legal subscript that can be used with the following array? int values[5]; Group of answer choices 6 5 0 4 4
Using a pointer you are directly accessing the value of a given variable. Group of answer choices True False FALSE@@
What is the output of C Program with functions.? void show(); int main() { show(); printf("ARGENTINA "); return 0; } void show() { printf("AFRICA "); }
What is the output of C Program with functions.? void myshow(int); void main() { int a=10; printf("%d ", a); myshow(a); printf("%d", a); } void myshow(int k) { k=20; } 10 20
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 Group of answer choices TEsselation Per-Sample Operations Primitive Assembly Rasterization Tessalation @@
OpenGL was designed to be _______________________ Group of answer choices Operating System Independent All of the above Fast and Lightweight Object-Oriented All of the above @@
______________ is the header file to be included to use the GLUT library Group of answer choices opengl.h glut.h gl.h freeglut.h glut.h @@
A command line option needed for the successful compilation of an OpenGL application. -lfreeglut
A Symbol used to determine the address of a variable or simple called the address-of-operator. &
What is the last legal subscript that can be used with the following array: int values[5]; 4
What is the output of the following C program with functions and pointers?
void myshow(int *);
void main() {
int a=10;
printf("%d ", a);
myshow(&a);
printf("%d", a);
}
void myshow(int *k) {
*k=20;
} 10 20
What will be the output of the program?
include<stdio.h>
int fun(int i)
{
i++;
return i;
}
int main()
{
int fun(int);
int i=3;
fun(i=fun(fun(i)));
printf("%d\n", i);
return 0;
} 5
What will be the output of the following C code?
include <stdio.h>
void m(int k)
{
printf("hi");
}
void m(double k)
{
printf("hello");
}
void main()
{
m(3);
} Compile time error
What file do you need to copy for your OpenGL application to run. freeglut.dll
In pointer p the expression *(p+1) is equivalent to p[1]. True
To move the pointer p to the next location in an array we use *p+=1; False
Which of the following gives the memory address of a variable pointed to by pointer a? a
OpenGL’s architecture is a client-server model where the client is the application and the server is the _______________. Video Card
In the OpenGL Rendering pipeline it is the Shader stage that will process a Fragment generated by the Rasterization into a set of colors. Fragment Shader
In the OpenGL Rendering pipeline it is where increases the number of polygons to smoothen out the object. Tessellation
The glutInitWindowPosition(0,0) makes the upper left corner of the window as a reference to be placed at what position in the screen. Upper Left
_____________ is an OpenGL function specifies the beginning of an object of type mode. Modes include GL_POINTS, GL_LINES, and GL_POLYGON. glBegin()
The function call glutDisplayFunc(display) is a callback function where display() is called only once in the whole lifetime of a program. False
_____________ is an OpenGL function specifies the end of a list of vertices. glEnd()
_____________ is an OpenGL function forces previously buffered OpenGL commands to execute. glFlush()
What OpenGL attribute command sets the width of the lines. glLineWidth()
How many bits does the glLineStipple() function pattern represent to describe a line pattern. 16
What does the letter f suffix in the glVertex2f() function refer to? The data type of the coordinates
The command used to enable line style pattern in OpenGL. GL_LINE_STIPPLE
What does the number suffix in the glVertex2f() function refer to? Number of function parameters
The color white is represented by the command glColor3f(0.0f,0.0f,0.0f). False
What is the minimum number of vertex specifications in using GL_QUADS. 4
What is the minimum number of vertex specifications in using GL_POLYGON. 4
In the glColor4f() function what does the 4th parameter represent. Alpha
Shaders are required to create an OpenGL application. False
In the OpenGL Rendering pipeline it is the stage that handles the processing of individual vertices. Vertex Shader
OpenGL is a part of the _____________ Visual Computing Ecosystem. 3D Graphics
In the OpenGL Rendering pipeline it is where shapes are corrected for possible detection of gaps on the surface so there would be no gaps. Tessellation
A glut function that makes the program enter an infinite event-processing loop; it should be the last statement in main(). glutMainLoop()
_____________ is an OpenGL function that specifies the location of the vertex. glVertex()
You use the command glVertex2fv() when you refer to data that is in an array. True
GL_LINES needs two glVertex2f() commands to render a line. True
In the glColor3f() function what does the 2nd parameter represent. Green
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
In the OpenGL Rendering pipeline it is where fragments output from a Fragment Shader are processed and written to various buffers. Per-Sample Operations
What is true to the following statement. All of the mentioned
What group is responsible for managing the OpenGL specification. Khronos
OpenGL was designed to be _______________________. All of the above
_____________ is the header file to be included to use the GLUT library. glut.h
The glutInitWindowSize(param1,param2) parameters specify the __________________ of a window. Width, Height
_____________ is an OpenGL function that clears all buffers whose bits are set in mask. GL_COLOR_BUFFER_BIT refers to the color buffer. glClear()
How many OpenGL Primitives are there in the OpenGL API? 10
GL_POINTS needs two glVertex2f() commands to render a point. False
It is required for OpenGL to enable Line Stippling before changing the line style pattern. True
Created by: vivalph4
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards