High Performance Computing MCQs with answers Page - 15

Here, you will find a collection of MCQ questions on High Performance Computing. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. A simple kernel for adding two integers: __global__ void add( int *a, int *b, int *c ) { *c = *a + *b; } where __global__ is a CUDA C keyword which indicates that:

  • (A) add() will execute on device, add() will be called from host
  • (B) add() will execute on host, add() will be called from device
  • (C) add() will be called and executed on host
  • (D) add() will be called and executed on device

A

Admin • 833.24K Points
Coach

Q. If variable a is host variable and dev_a is a device (GPU) variable, to allocate memory to dev_a select correct statement:

  • (A) cudamalloc( &dev_a, sizeof( int ) )
  • (B) malloc( &dev_a, sizeof( int ) )
  • (C) cudamalloc( (void**) &dev_a, sizeof( int ) )
  • (D) malloc( (void**) &dev_a, sizeof( int ) )

A

Admin • 833.24K Points
Coach

Q. If variable a is host variable and dev_a is a device (GPU) variable, to copy input from variable a to variable dev_a select correct statement:

  • (A) memcpy( dev_a, &a, size);
  • (B) cudamemcpy( dev_a, &a, size, cudamemcpyhosttodevice );
  • (C) memcpy( (void*) dev_a, &a, size);
  • (D) cudamemcpy( (void*) &dev_a, &a, size, cudamemcpydevicetohost );

A

Admin • 833.24K Points
Coach

Q. Triple angle brackets mark in a statement inside main function, what does it indicates?

  • (A) a call from host code to device code
  • (B) a call from device code to host code
  • (C) less than comparison
  • (D) greater than comparison

A

Admin • 833.24K Points
Coach

Q. Scaling Characteristics of Parallel Programs Ts is

  • (A) increase
  • (B) constant
  • (C) decreases
  • (D) none

A

Admin • 833.24K Points
Coach

Q. Speedup tends to saturate and efficiency _____ as a consequence of Amdahl’s law.

  • (A) increase
  • (B) constant
  • (C) decreases
  • (D) none

A

Admin • 833.24K Points
Coach

Q. Speedup obtained when the problem size is _______ linearly with the number of processing elements.

  • (A) increase
  • (B) constant
  • (C) decreases
  • (D) depend on problem size

A

Admin • 833.24K Points
Coach

Q. The n × n matrix is partitioned among n processors, with each processor storing complete ___ of the matrix.

  • (A) row
  • (B) column
  • (C) both
  • (D) depend on processor

A

Admin • 833.24K Points
Coach

Q. cost-optimal parallel systems have an efficiency of ___

  • (A) 1
  • (B) n
  • (C) logn
  • (D) complex

A

Admin • 833.24K Points
Coach

Q. The n × n matrix is partitioned among n2 processors such that each processor owns a _____ element.

  • (A) n
  • (B) 2n
  • (C) single
  • (D) double

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ