INTERNAL EXAM (Oct – 2010)
MCA Sem - I
610001 - Fundamentals of Programming
1. What is an array? Explain the procedure to initialize one-dimensional
and two dimensional array.(Draw Figure) [6 Marks] 2(a). State what will be the output of following code [3 Marks] (a) void main() { int i= - 20; printf(“%u”,i); } (b) |
void main() { int i; for( i=-32767; i++, i;) printf(“\n%d”,i); } (c) |
void main() { int i= 5; printf(“%d%d%d”,i++,i,--i); } |
2(b).Distinguish between while and do-while loop with suitable examples. [3 Marks]
OR
2(b).Explain Conditional Operator with example.
3.Write a C program to multiply two matrices. [6 Marks]
OR
3.What is Algorithm? List Different ways of stating Algorithm.
Draw a Flowchart To Check whether the given number is an Armstrong
Number or not.4.What is the purpose of switch statements? Explain it with syntax and
Example. [6 Marks]OR
4.Explain the use of following with example.
(1) goto (2) break (3) continue (4) getch() (5) getche() (6) getchar()5.What are formatted I/O statements in C? Explain with Example. [6 Marks]
OR
5.Write a C program to check whether the entered number is Perfect or not.
0 comments:
Post a Comment