

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 2
This page cannot be seen from the preview
Don't miss anything!


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)