0% found this document useful (0 votes)
76 views2 pages

Question Set

The document contains a list of programming tasks primarily focused on C and OpenMP, as well as MPI. It includes tasks such as adding numbers, calculating the area of a circle, string manipulation, and various OpenMP functionalities like thread management and parallel processing. The tasks are designed to enhance understanding of command line arguments, pointers, and parallel programming concepts.

Uploaded by

sonakashibose28
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views2 pages

Question Set

The document contains a list of programming tasks primarily focused on C and OpenMP, as well as MPI. It includes tasks such as adding numbers, calculating the area of a circle, string manipulation, and various OpenMP functionalities like thread management and parallel processing. The tasks are designed to enhance understanding of command line arguments, pointers, and parallel programming concepts.

Uploaded by

sonakashibose28
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Question set

1. Write a C program to add two numbers using command line arguments

2. Write a C program to find Area of circle using Command Line Arguments


3. Write a C program to Reverse a given string using Command Line Arguments
4. Write a C program to find a given string is Palindrome or not using Command Line
Arguments
5. Write a C program to demonstrate accessing values of the variables indirectly using
pointer to pointer
6. Write a C program to Add 2 numbers using pointers
7. Write an OpenMP program to get the thread ID.
8. Write an OpenMP Program to set the number of threads manually
9. Write an OpenMP Program for Creation of threads and limit its usage by num_threads
clause
10. Write an OpenMP Program for Implementation of single clause
11. Write an OpenMP Program for Implementation of master clause
12. Write an OpenMP Program to Compare Parallel, master and single clauses
13. Write an OpenMP Program to Compare single and critical clauses
14. Write an OpenMP Program using Shared and Private variables
15. Write an OpenMP Program using Private and First private clauses.
16. Write an OpenMP Program to find sum of first 100 natural numbers using for clause
17. Write an OpenMP Program to find sum of first 100 natural numbers using reduction
clause
18. Write an OpenMP Program using parallel reduction to compute the sum, maximum, or
minimum of an array
19. Write an OpenMP Program to perform Matrix multiplication
20. Write an OpenMP Program to implement task and task wait clauses
21. Write an OpenMP Program to implement Implementation of task loop clause
22. Write a MPI program to create the number of processes in the distributed network
23.Write a MPI program for Sending and receiving data in a distributed network

You might also like