Q. A CUDA program is comprised of two primary components: a host and a _____.

  • (A) gpu??kernel
  • (B) cpu??kernel
  • (C) os
  • (D) none of above
πŸ’¬ Discuss
βœ… Correct Answer: (A) gpu??kernel

Q. The kernel code is dentified by the ________qualifier with void return type

  • (A) _host_
  • (B) __global__??
  • (C) _device_
  • (D) void
πŸ’¬ Discuss
βœ… Correct Answer: (B) __global__??

Q. The kernel code is only callable by the host

  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (A) true

Q. The kernel code is executable on the device and host

  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (B) false

Q. Calling a kernel is typically referred to as _________.

  • (A) kernel thread
  • (B) kernel initialization
  • (C) kernel termination
  • (D) kernel invocation
πŸ’¬ Discuss
βœ… Correct Answer: (D) kernel invocation

Q. Host codes in a CUDA application can Initialize a device

  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (A) true

Q. Host codes in a CUDA application can Allocate GPU memory

  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (A) true

Q. Host codes in a CUDA application can not Invoke kernels

  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (B) false

Q. CUDA offers the Chevron Syntax to configure and execute a kernel.

  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (A) true

Q. the BlockPerGrid and ThreadPerBlock parameters are related to the ________ model supported by CUDA.

  • (A) host
  • (B) kernel
  • (C) thread??abstraction
  • (D) none of above
πŸ’¬ Discuss
βœ… Correct Answer: (C) thread??abstraction

Jump to