MCS 011
MCS 011
12345 1
2345 222
245 33333
45 4444444
5 33333
222
1
UNIT 6(ARRAYS)
1. What is an array ?
2.Program to find maximum marks among
the 10 students using array(block 2,page 31).
3.Matrix sum.
4.Matrix multiplication.
5.WAP in C to sort a given list of numbers
using bubble sort.
UNIT 7(STRINGS)
1. What is a string ?
2.Short note with example:-
I.Strln()
Ii.Strcpy ()
iii.Strcmp ()
iv.Strcat ()
v.Strrev ()
3.Program to concatenate two strings without using strcat()
function.
4.Program to find string length without using the strln()
function.
5.Program to convert the lower case letters to upper case in a
given string without using strupp() function.
6.Write a program to test whether the given string is a
palindrome or not.
UNIT 8(FUNCTIONS)
1.Function prototypes with example(10 marks)
2.Types of variables and storage classes
3.Local and global variables
4.Write a program using function-
I)with no arguments and with no return
value.
Ii)with no arguments and with return
value.
Iii)with arguments and with no return
value.
Iv)with arguments and with return value.
5.Call by value with example
6.Call by reference with example
7.Difference between call by value and call by
reference.
8.Write a program to swap the values using
the pass by value and pass by reference
methods, separately
9.Recursion with example
10.Wap to find factorial using recursion
11.Fibonacci series with recursion.
UNIT 9(STRUCTURE AND UNION)
1.Write a program, using structures to read and
display data for 10 students.
2.Write a program using C to calculate the net
salary if the basic, TA, DA, allowances and
deductions are Given, using structures
concept.
3.Difference between structure and union
4.Short note:- enumerated data type and typedef
key word
UNIT 10(POINTER)
1.What is pointer?
2.Array of pointer with example
3.Null pointer with example
4.Pointer to pointer example
6.Explain the concept of dynamic memory allocation.
7.Malloc and calloc with example
8.Malloc vs. Calloc
UNIT 11(THE C PREPROCESSOR)
1.Define macros
2.Wap using macro:-
I)#define
Ii)#if
Iii)#else
Iv)#ifdef
V)#elif
3.Macros vs. functions
4. Write a program to find out square and
cube of given number using macros.
UNIT 12(FILES)
1.fopen()
2.fclose ()
3.getc()
4.putc()
5.fgetc()
6.fputc()
7.fgets()
8.fputs()
9.fscanf()
10.fprintf()
11.fread()
12.fwrite()
13.Explain file handling in C.