wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CS6801- Multi­core Architectures and Programming

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What is OpenMP ?

a)

OpenMP = Open Multi-threading

b)

OpenMP = Open Multi-tasking

c)

Multi tasking

d)

OpenMP = Open Multi-processing

2.

Compiling and running OpenMP code

a)

hellosmp

b)

g++ fopenmp hellosmp.c -o hellosmp

c)

gcc -fopenmp hellosmp.c -o hellosmp

d)

gcc -fopenmp hellosmp.c -o hellosmp

./hellosmp

3.

Specifying the parallel region (creating threads)

a)

pragma omp parallel

{}

b)

omp parallel

{}

c)

#pragma omp parallel

{}

d)

pragma omp

{}

4.

Display "Hello, world." using multiple threads.

a)

main(void)

{

#pragma omp parallel

{

printf("Hello, world.\n");

}


return 0;

}

b)

#include < stdio.h >


int main(void)

{

#pragma omp parallel

{

printf("Hello, world.\n");

}


return 0;

}

c)

#include < stdio.h >


int main(void)

{

pragma omp parallel

{

printf("Hello, world.\n");

}


return 0;

}

d)

#include < stdio.h >


int main(void)

{

#pragma

{

printf("Hello, world.\n");

}


return 0;

}

5.

What Is Shared-memory Architecture?

a)

A space is visible to all execution threads.

b)

A multi address space is visible to all execution threads.

c)

A address space is visible to all execution threads.

d)

A single address space is visible to all execution threads.

6.

What Is Task-throughput?

a)

The number of multi tasks completed in a given time

b)

The number of singel tasks completed in a given time

c)

The number of tasks completed in a given time

d)

The number of thread completed in a given time

7.

Efficiency is

a)

E= S

b)

E= S/P

c)

E= P

d)

E= P/S

8.

State Amdahl’s law.

a)

1/(1-p) + (p/s)

b)

(1-p) + (p/s)

c)

1/(1-p)

d)

(1-p) + (p/s)

9.

In message passing a process receives information by executing the

a)

Send

b)

Send Primitive

c)

Receive

d)

Receive Primitive

10.

SCSI system organization Quiz

a)

small common-system interface

b)

small common-system interaction

c)

small computer-system interface

d)

small computer-system interaction