Quiz

Multiple choice, single answer

What is the main strength of GPUs compared to CPUs?

  • A) Faster single-thread performance

  • B) Larger cache memory

  • C) Massive parallelism

  • D) Better branch prediction

Which type of problems benefit most from GPUs?

  • A) Sequential algorithms with many branches

  • B) Data-parallel computations on large datasets

  • C) Small tasks with low arithmetic intensity

  • D) I/O-bound workloads

What is a “kernel” in GPU programming?

  • A) The GPU operating system

  • B) A function executed on the CPU

  • C) A function executed in parallel on the GPU

  • D) A memory buffe

Threads on a GPU are typically organized into:

  • A) Pipelines and queues

  • B) Blocks and grids

  • C) Stacks and heaps

  • D) Nodes and clusters

What is a key challenge when using GPUs?

  • A) Writing sequential code

  • B) Managing data transfer between host and device

  • C) Increasing clock frequency

  • D) Reducing number of threads

Which programming models are commonly used for GPUs?

  • A) CUDA

  • B) OpenCL

  • C) Directive-based models (e.g., OpenMP)

  • D) All of the above

What does “host” refer to in GPU programming?

  • A) The GPU device

  • B) The CPU controlling the GPU

  • C) The memory bus

  • D) The operating system

What happens if memory accesses are poorly structured?

  • A) Performance improves

  • B) GPU ignores them

  • C) Performance degrades significantly

  • D) The program crashes immediately