
Parallel and Distributed Practical Lab Quiz
Authored by Manimaran Marudachalam
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
OpenMP is:
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_____________
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:
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:
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?
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-
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
18 questions
SQL Quiz
Quiz
•
University
20 questions
Google SketchUp Tool
Quiz
•
KG - University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
20 questions
Designing Network Infrastructure and Network Security
Quiz
•
KG - University
18 questions
Memory-Mobo-Hard/Software
Quiz
•
University
17 questions
Microprocessor - Intel 8088 - Part 1
Quiz
•
University
16 questions
Digital Icons
Quiz
•
12th Grade - University
20 questions
PARC Linux Basic Part 2
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University