IGNOU MCS-201 Programming in C and Python - IGNOU Solved Assignment (Latest)
Get IGNOU MCS-201 Assignments Soft Copy ready for Download in PDF for (January 2024 – July 2024) in English Language.
- Helps save time and effort-really well
- Promises Good Marks in Less Time
- Answers that are verified and accurate
- Based on IGNOU Guidelines.
- Description
- Previous Year Solved Question Papers Included
- Assignments Details
- Assignment Submission End Date
- What's Included
PLEASE MATCH YOUR ASSIGNMENT QUESTIONS ACCORDING TO YOUR SESSION
IGNOU MCS-201 (January 2025 – July 2025) Assignment Questions
SECTION-A (C-Programming)
Q1: Write an algorithm, draw a flow chart and write its corresponding C program to convert a Binary decimal number to its equivalent Decimal number.
Q2: Write an algorithm and use the concept of Structures to write the program in C, to generate Progress-Report of students of a class X of the school for all its 4 terms (the class is of 20 students). Assumptions can be made wherever necessary.
Q3: Write a C program to generate the following pattern:
*
* *
* * *
* * * *
* * * * *
Q4: Write a C program to perform the following operation on matrices D = A * (B + C), where A, B and C are matrices of (3 X 3) size and D is the resultant matrix.
Q5: Use the concept of File Handling, to Write a program in C, to collect a list of N numbers in a file, and separate the even and odd numbers from the given list of N numbers, and put them in two separate files namely even_file and odd_file, respectively.
SECTION-B (PYTHON-Programming)
Q6: Write Python code to perform the following:
(i) Copy content of file first.txt to second.txt
(ii) Reading a file
(iii) Writing into a file
(iv) Appending into a file
Q7: Write an algorithm to find the slope of a line segment whose endpoint coordinates are (x1, y1) and (x2, y2). The algorithm gives output whether the slope is positive, negative or zero. Transform your algorithm into Python program.
Note: Slope of line segment = (y2 – y1)/(x2–x1).
Q8: Write a programme in Python to create a package named Volume and create 3 module in it named – Cube, Cuboid and Sphere each having a function to calculate Volume of Cube, Cuboid and Sphere respectively. Import the module in separate location and use the functions. Assumptions can be made wherever necessary. Support your programme with suitable comments to improve readability.
Q9: Write a program in Python to perform following:
To find square root of numbers in a list using lambda function.
To display first n lines from a file, where n is given by user.
To display size of a file in bytes
To display frequency of each word in a file.
Q10: What are Co-routines? How Co-routines differ from threads? How Co-routines support cooperative multi-tasking in python? Compare Subroutines and Co-routines.
IGNOU MCS-201 (January 2024 – July 2024) Assignment Questions
SECTION-A (C-Programming)
Q1: Briefly discuss the concept of “Call by value” and “Call by reference”. Give example code in C for each. Support your code with suitable comments.
Q2: Briefly discuss the relation between Pointers and Arrays, giving suitable example. Write a program in C, to print transpose of a 2D matrix entered by a user. Support your program with suitable comments.
Q3: Write an algorithm to find the slope of a line segment whose end point coordinates are (x1, y1) and (x2, y2). The algorithm gives output whether the slope is positive, negative or zero. Transform your algorithm to C program.
Note : Slope of line segment = (y2 – y1) / (x2 – x1)
Q4: Write an algorithm to find the HCF (Highest Common Factor) of the two numbers entered by a user. Transform your algorithm to a C program, support your program with suitable comments.
SECTION-B (PYTHON-Programming)
Q1: Discuss the connect( ) method of MySQL. Connector interface. List the arguments involved with connect( ) method. Write Python code to create database student_DB and to connect to student_DB (make suitable assumptions wherever necessary).
Q2: What are Pandas ? Write steps to import, read and print a CSV file using Pandas. Also, transform your steps in to suitable code in Python.
Q3: Write steps to create a package. Apply these steps to create a package named volume and create 3 modules in it named cube, cuboid and sphere, having function to calculate volume of the cube, cuboid and sphere respectively. Import the modules defined in the package and use the defined functions for calculation of volume respectively.
Q4: What does map( ) function do ? Write a program in Python to print the cube of the numbers present in the list, by using map( ) function.
MCS-201 Assignments Details
University | : | IGNOU (Indira Gandhi National Open University) |
Title | : | Programming in C and Python |
Language(s) | : | English |
Code | : | MCS-201 |
Degree | : | |
Subject | : | C and Python programming |
Course | : | Core Courses (CC) |
Author | : | Gullybaba.com Panel |
Publisher | : | Gullybaba Publishing House Pvt. Ltd. |