Parallel and Distributed Practical Lab Quiz

Parallel and Distributed Practical Lab Quiz

University

20 Qs

quiz-placeholder

Similar activities

The AI Shield

The AI Shield

University

15 Qs

Data Mining - Classification Mining

Data Mining - Classification Mining

University

15 Qs

Quiz # 1 in Capstone Project and Research 1

Quiz # 1 in Capstone Project and Research 1

University

15 Qs

unit-4-testing

unit-4-testing

University

20 Qs

Quiz on List and Tuples

Quiz on List and Tuples

University

16 Qs

Data Structure & Algo - Prelim Long Quiz

Data Structure & Algo - Prelim Long Quiz

University

21 Qs

Week 5: Test your understanding part 1

Week 5: Test your understanding part 1

University

20 Qs

Introduction to Networking

Introduction to Networking

University

15 Qs

Parallel and Distributed Practical Lab Quiz

Parallel and Distributed Practical Lab Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Manimaran Marudachalam

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • OpenMP is:

A standard for Distributed Programming Model

A standard for uniprocessor optimization

A standard for writing parallel applications that supports shared programming model

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

OpenMP follows fork/join model because


  • OpenMP programs start with a single thread

It initiates with a single thread and further a team of threads is created

Statements in parallel block are executed in parallel by every thread

master creates “team of parallel worker”, threads and at end of parallel region, all threads synchronize, and join master thread At start of parallel region

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • Barrier synchronizations should be used whenever we want to ensure all threads have completed a common phase of their execution_____________  

Before any of them start the next phase

After any of them start the next phase

Before any of them start the previous phase

After any of them start the previous phase

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • Omp_get_num_threads () environment variable gives:

Thread ID of all the threads

Maximum number of threads in a team

Return number of threads in a team

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • Omp_get_thread_num () environment variable gives:

Maximum number of threads in a team

Thread ID of the thread

Both a) and b)

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • Consider the following piece of code:#include #include  int main(void){omp_set_num_threads (10);#pragma omp parallel {for (i=0; i<100; i++)printf ("Parallel Processing Quiz.\n");}return 0;} How many times “Parallel Processing Quiz” will get printed? 

100 times

1000 times

10 times

Can't predict

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  •  

    If both export OMP_NUM_THREADS and omp_set_num_threads both are used in a program than the threads will be set to launch the parallel section in accordance with-

Omp_set_num_threads

OMP_NUM_THREADS

Whichever sets maximum number of threads

Whichever sets minimum number of threads

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?