GPU Programming and Graphics APIs # MCQs Practice set

Q.1 What does GPU stand for?

Graphics Processing Unit
General Purpose Unit
Graphical Programming Utility
Global Processing Unit
Explanation - GPU stands for Graphics Processing Unit, a specialized processor designed to accelerate graphics rendering.
Correct answer is: Graphics Processing Unit

Q.2 Which API is commonly used for 3D graphics rendering?

OpenGL
SQL
HTML
CSS
Explanation - OpenGL (Open Graphics Library) is widely used for rendering 2D and 3D graphics in applications.
Correct answer is: OpenGL

Q.3 What is the main function of shaders in GPU programming?

Store textures
Execute small programs on GPU
Save memory
Compile source code
Explanation - Shaders are small programs that run on the GPU to control rendering effects like lighting and shading.
Correct answer is: Execute small programs on GPU

Q.4 Which of these is a low-level graphics API?

Vulkan
Python
C#
MySQL
Explanation - Vulkan is a low-level graphics API that provides developers with more direct control over GPU operations.
Correct answer is: Vulkan

Q.5 DirectX is primarily associated with which operating system?

Linux
macOS
Windows
Android
Explanation - DirectX is a collection of APIs developed by Microsoft, mainly used on Windows platforms for graphics and gaming.
Correct answer is: Windows

Q.6 What type of memory is primarily used in GPUs for fast graphics operations?

RAM
VRAM
ROM
Cache
Explanation - VRAM (Video RAM) is optimized for storing image data and textures for fast GPU access.
Correct answer is: VRAM

Q.7 Which API is known for its use in Apple devices?

DirectX
OpenGL
Metal
Vulkan
Explanation - Metal is Apple’s proprietary graphics API designed for iOS and macOS devices.
Correct answer is: Metal

Q.8 What does GLSL stand for?

Graphics Layer Shading Language
General Shader Logic
GL Shader Language
GPU Logic Scripting Language
Explanation - GLSL stands for OpenGL Shading Language, used to write shaders in OpenGL.
Correct answer is: GL Shader Language

Q.9 In GPU programming, what does the term 'pipeline' refer to?

CPU instructions
Stages of graphics rendering
File transfer method
A network connection
Explanation - The graphics pipeline refers to the sequence of steps that process data into rendered images.
Correct answer is: Stages of graphics rendering

Q.10 Which of the following is NOT a stage in the graphics pipeline?

Vertex Processing
Rasterization
Fragment Shading
File Compression
Explanation - File compression is unrelated to graphics rendering; the pipeline includes stages like vertex processing and rasterization.
Correct answer is: File Compression

Q.11 CUDA is a parallel computing platform developed by which company?

Intel
AMD
NVIDIA
Microsoft
Explanation - CUDA (Compute Unified Device Architecture) was developed by NVIDIA to leverage GPUs for general-purpose computing.
Correct answer is: NVIDIA

Q.12 What does the term 'frame rate' in graphics refer to?

Number of images displayed per second
Number of pixels per inch
Speed of GPU clock
Memory bandwidth
Explanation - Frame rate (measured in FPS) indicates how many frames are rendered per second.
Correct answer is: Number of images displayed per second

Q.13 Which graphics API is designed as a successor to OpenGL?

Metal
DirectX 12
Vulkan
CUDA
Explanation - Vulkan was designed as a successor to OpenGL, offering lower overhead and better performance.
Correct answer is: Vulkan

Q.14 Which stage of the graphics pipeline converts vertices into pixels?

Clipping
Rasterization
Tessellation
Transformation
Explanation - Rasterization converts geometric data (vertices) into fragments or pixels for display.
Correct answer is: Rasterization

Q.15 Which is an example of a high-level shading language?

C++
GLSL
Python
HTML
Explanation - GLSL is a high-level shading language specifically for programming shaders in OpenGL.
Correct answer is: GLSL

Q.16 What does tessellation in GPU programming achieve?

Reduces memory usage
Increases resolution of geometry
Stores texture data
Handles sound processing
Explanation - Tessellation subdivides polygons to create more detailed geometry for rendering.
Correct answer is: Increases resolution of geometry

Q.17 Which part of GPU is responsible for executing shaders?

Shader Cores
Control Unit
ALU
Cache
Explanation - Shader cores in the GPU execute shader programs, enabling parallel rendering computations.
Correct answer is: Shader Cores

Q.18 What is the purpose of double buffering in graphics rendering?

To increase VRAM
To avoid screen tearing
To speed up GPU clock
To compress textures
Explanation - Double buffering uses two buffers to ensure smooth frame transitions and reduce screen tearing.
Correct answer is: To avoid screen tearing

Q.19 Which company developed the graphics API called 'Mantle'?

Intel
NVIDIA
AMD
Microsoft
Explanation - AMD developed Mantle as a low-level graphics API, which influenced later APIs like Vulkan and DirectX 12.
Correct answer is: AMD

Q.20 What does API stand for in GPU programming?

Application Programming Interface
Advanced Processing Instruction
Algorithm Processing Input
Automatic Program Integration
Explanation - API stands for Application Programming Interface, allowing programs to interact with hardware like GPUs.
Correct answer is: Application Programming Interface

Q.21 In real-time rendering, what does V-Sync do?

Improves texture quality
Synchronizes frame rate with display refresh rate
Increases polygon count
Reduces VRAM usage
Explanation - V-Sync eliminates screen tearing by synchronizing the GPU’s frame rate with the display refresh rate.
Correct answer is: Synchronizes frame rate with display refresh rate

Q.22 Which GPU manufacturer introduced the 'Turing' architecture?

Intel
AMD
NVIDIA
Apple
Explanation - NVIDIA introduced the Turing architecture, which brought real-time ray tracing to GPUs.
Correct answer is: NVIDIA

Q.23 What is the role of texture mapping in graphics rendering?

Applies images to 3D models
Stores shader programs
Handles GPU clock speed
Compiles API calls
Explanation - Texture mapping applies 2D images onto 3D models to add realism.
Correct answer is: Applies images to 3D models

Q.24 Which graphics API is exclusive to Microsoft platforms?

OpenGL
DirectX
Vulkan
Metal
Explanation - DirectX is Microsoft’s proprietary graphics API, mainly for Windows and Xbox.
Correct answer is: DirectX

Q.25 Which modern rendering technique simulates realistic light reflection and refraction?

Rasterization
Ray Tracing
Clipping
Shading
Explanation - Ray tracing simulates light behavior for highly realistic rendering, but requires significant GPU power.
Correct answer is: Ray Tracing