Internal Test Subject-Introduction To Computing 1 Yr, Sec - A Full Marks: 20 Time: 1hr. Answer Any Four
Internal Test Subject-Introduction To Computing 1 Yr, Sec - A Full Marks: 20 Time: 1hr. Answer Any Four
Internal Test
Subject- Introduction to Computing
1st Yr, Sec- A
Full marks: 20 Time: 1hr.
Answer any four
1. (a) What is Pointer?
(b) Write a C program to swap two numbers without using any 3rd variable. [1+4]
2. (a) What is array?
(b) Write a C program to check if a string is Palindrome. [1+4]
3. (a) Write the difference between switch case & if-else.
(b) Write a C program to calculate the summation of the following series.
12 + 22 + 32 + …….. [2+3]
4. (a) What is recursive function?
(b) Write a C program to calculate the g.c.d of two numbers. [1+4]
5. (a) Write the difference between while & do-while.
(b) Write a C program to print the following pattern.
*
* *
* * *
* * * * [2+3]