BCA_NEWL Programming in C & Python, Assignments of Computer Programming

This document contains study material and notes for **BCA New Syllabus – Programming in C and Python**. It covers important programming concepts such as variables, data types, operators, control statements, functions, arrays, pointers, and basic program examples in C and Python. Course: BCA (Bachelor of Computer Applications) Subject: Programming in C & Python University: IGNOU This PDF is useful for BCA students for exam preparation, assignments, and understanding basic programming concepts.

Typology: Assignments

2025/2026

Uploaded on 03/08/2026

abhishek-thakur-16
abhishek-thakur-16 🇮🇳

5 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
12
Course Code : MCS-201
Course Title : Programming in C and PYTHON
Assignment Number : BCA_NEWOL(II)/201/Assignment/2026
Maximum Marks : 100
Weightage : 30%
Last Date of Submission : 30th April, 2026 (for January Session)
31st October, 2026 (for July Session)
There are ten questions in this assignment which carries 80 marks. Each question carries 8
marks. Rest 20 marks are for viva-voce. Answer all the questions from both the sections i.e.
Section A and Section B. You may use illustrations and diagrams to enhance the
explanations. Include the screen layouts also along with your assignment responses. Please
go through the guidelines regarding assignments given in the Programme Guide for the
format of presentation.
SECTION-A (C-Programming)
Question1: Write an algorithm, draw a flow chart and write its corresponding C program to convert a
decimal number to its equivalent Binary number. (8 Marks)
Question2: Write an algorithm and its corresponding C program to generate students’ Progress-Report
for VIII standard (section of 20 students) of a CBSE school for all its 4 terms. Use Structures
concept. Assumptions can be made wherever necessary. (8 Marks)
Question 3: Write a C program to generate the following pattern: (8 Marks)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Question 4: 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. (8 Marks)
Question 5: Write a C program to take a list of N numbers, separate even and odd numbers and put them
in two appropriate files (evenfile and oddfile). Use File Handling concept. (8 Marks)
SECTION-B (PYTHON-Programming)
Question 6: Write a program in Python to check if a given year (entered by user) is a leap year or not,
support your programme with suitable comments to improve readability (8 Marks)
Question 7: Write a program to prompt for a score between 0.0 and 1.0. If the score is out of range, print
an error. If the score is between 0.0 and 1.0, print a grade using the following table
(8 Marks)
pf2

Partial preview of the text

Download BCA_NEWL Programming in C & Python and more Assignments Computer Programming in PDF only on Docsity!

Course Code : MCS- 201

Course Title : Programming in C and PYTHON

Assignment Number : BCA_NEWOL(II)/ 201 /Assignment/ 2026

Maximum Marks : 100

Weightage : 30 %

Last Date of Submission : 30 th^ April, 202 6 (for January Session)

31 st^ October, 20 26 (for July Session)

There are ten questions in this assignment which carries 80 marks. Each question carries 8

marks. Rest 20 marks are for viva-voce. Answer all the questions from both the sections i.e.

Section A and Section B. You may use illustrations and diagrams to enhance the

explanations. Include the screen layouts also along with your assignment responses. Please

go through the guidelines regarding assignments given in the Programme Guide for the

format of presentation.

SECTION-A (C-Programming) Question1: Write an algorithm, draw a flow chart and write its corresponding C program to convert a decimal number to its equivalent Binary number. (8 Marks) Question2: Write an algorithm and its corresponding C program to generate students’ Progress-Report for VIII standard (section of 20 students) of a CBSE school for all its 4 terms. Use Structures concept. Assumptions can be made wherever necessary. (8 Marks) Question 3: Write a C program to generate the following pattern: (8 Marks) 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Question 4: 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. (8 Marks) Question 5: Write a C program to take a list of N numbers, separate even and odd numbers and put them in two appropriate files (evenfile and oddfile). Use File Handling concept. (8 Marks) SECTION-B (PYTHON-Programming) Question 6: Write a program in Python to check if a given year (entered by user) is a leap year or not, support your programme with suitable comments to improve readability (8 Marks) Question 7: Write a program to prompt for a score between 0.0 and 1.0. If the score is out of range, print an error. If the score is between 0.0 and 1.0, print a grade using the following table (8 Marks)

Score Grade >= 0.9 A >= 0.8 B >= 0.7 C >= 0.6 D < 0.6 F Question 8: Write a programme in Python to create a package named Area and create 3 module in it named – square, circle and rectangle each having a function to calculate area of square, circle and rectangle respectively. Import the module in separate location and use the functions. (8 Marks) Question 9: Write a program in Python to perform following: (8 Marks)  To find cube of numbers in a list using lambda function.  To display frequency of each word in a file.  To display first n lines from a file, where n is given by user.  To display size of a file in bytes Question 10: What are Co-routines? How Co-routines support cooperative multi-tasking in python? How Co-routines differ from threads? Compare Subroutines and Co-routines. (8 Marks)