IGNOU MCS-11 (July 2024 - January 2025) Assignment Questions
Question 1:
Discuss the differences between iterative and recursive approaches in solving problems. Write C programs to compute the factorial of a number using both iterative and recursive methods. Compare their performance and memory usage.
Question 2:
Write a C program to find the sum of all elements in an array.
Question 3:
Write a C program to perform division on 2 matrices A and B of size NXN and store the result in matrix C.
Question 4:
Without using the built-in string functions, write a C program to take a choice from the user (use a SWITCH statement) (i) to find the string length (ii) for string concatenation, (iii) string copy and (iv) string comparison.
Question 5:
Explain the concept of pointers in C and their various uses. Write a C program that uses pointers to perform operations on arrays, including finding the maximum and minimum values, and reversing the array. Discuss the advantages and potential pitfalls of using pointers.
Question 6:
What are structures in C, and how are they used? Write a C program that defines a structure to store student information (name, roll number, and marks) and includes functions to input, display, and sort the student records by marks. Explain the advantages of using structures for complex data.
Question 7:
Explain the concept of file handling in C. Write a C program to read data from a file, process the data (such as calculating the sum and average of numbers), and write the results to another file. Discuss the various modes of file opening and the importance of closing files.
Question 8:
Explain the role of preprocessor directives in C. Write a C program that uses macros to define constants and perform inline calculations. Discuss the use of conditional compilation directives to create a program that behaves differently based on defined macros. Analyze the benefits and limitations of using preprocessor directives in C programming.
IGNOU MCS-11 (July 2023 - January 2024) Assignment Questions
Q1: Write an algorithm, draw corresponding flow chart and write an interactive program which prompts the user with the following options on the opening menu:
1) To accept two integers and check whether they are equal or not
2) To check whether a given number is even or odd
3) To check whether a given number is a positive number or a negative number
4) To check whether the given year is a LEAP year or not.
5) Quit
Enter your choice:
Note: Use SWITCH..CASE statement.
Q2: Write the functions in C for the following:
(a) To find the square of any number.
(b) To find the absolute difference between two integers.
(c) To convert a decimal number to its equivalent binary number.
(d) To find the largest element in a given array of n elements.
Q3: Write an interactive program using recursion for each of the following:
(a) To count the digits of a given number.
(b) To reverse a string
(c) To find the least-common-multiple of two numbers.
Q4: Write interactive C programsto perform the following on strings:
(a) To find the length of a given string without using the string library functions.
(b) To compare two strings without using string library functions.
(c) To count the total number of vowels and consonants in a string and display the counts separately.
Q5: Write an interactive C program to insert new elements in the unsorted array.
Q6: Using Structures in C, write an interactive program to display the mark-sheet and grade card for 10 students for a MOOC course.
Note: Assumptions can be made wherever necessary and mention them.
Q7: Using File Handling concept in C programming, write the C programs for the following:
(a) To find the number of lines in a text file.
(b) To delete specific line from a text file.
(c) To copy a file to another folder with a different file-name.
Buy MCS-11 Assignment