Friday, April 17, 2015

List of C Programs for FE SEM II (SPA)

1.        Write a program to accept a two digit number and display it in reversed form.
2.        Write a program to display the first n natural numbers, where the value of n is taken from user.
3.        Write a program to find the factorial of a number.
4.        Write a program to display the multiplication table of a user entered number. The table must be upto 10.
5.        Write a program to calculate the value of the following series.
6.        Write a program to display the following for the users specified number of lines.
*
**
*** 
****
*****
|
 n lines 
7.        Write a program to display the following for the user specified number of lines.
       *
      **
     ***     
    ****
   *****
  ******     
 *******
********
   |
   n lines

8.        Write  a program to display the following asking the user for the number of lines
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6

9.        Write a program to display the following asking the user for the number of lines.
                      A
                   A B A
                A B C B A
             A B C D C B A
          A B C D E D C B A
        A B C D E F E D C B A

10.     Write a program to check if the entered number is prime number or not.
11.     Write a program to check if the entered number is Armstrong or not.
12.     Write a program to check if the year entered is leap year or not.
13.     Write a program to display the user entered number in words.
14.     Write a program to find value of y using function, where y=xn.
15.     Write a menu driven program to perform add / subtract / multiply / divide / modulus based on the users choice.
16.     Write a program to display the month name by accepting the month number from user.
17.     Write a program to demonstrate the use of break statement and continue statement.
18.     Write a program to find GCD and LCM of two numbers.
19.     Write a program to add two numbers using function.
20.     Write a program to find the factorial of a number using a function.
21.     Write a program to find n Fibonacci elements, using a recursive function.
22.     Write a program to find value of y using recursive function, where y=xn.
23.     Write a program to print transpose of a square matrix.
24.     Write a program to accept ‘n’ integers from user into an array and display the average of these numbers.
25.     Write a program to accept ‘n’ integers from user into an array and display the count of even and odd numbers of these.
26.     Write a program to find an element in an array and display the index of the element using a function. OR Write a program to implement sequential search algorithm.
27.     Write a program to sort numbers in ascending order. Write a program to implement bubble sorting algorithm for sorting numbers in ascending order.
28.     Write a program to accept ‘n’ integers from user into an array and display the largest element.
29.     Write a program to add two matrices of size m x n.
30.     Write a program to accept a string, copy it into another string and display this new string.
31.     Write a program to accept two strings, join them and display the result.
32.     Write a program to accept a string and find its length without using the string header file.
33.     Write a program to reverse a user entered string.
34.     Write a program to check whether the entered string is palindrome or not (Do not use the string header file).
35.     Write a program to find the sum of column elements of a 2 dimensional M x N array.
36.     Write a program to count blank spaces, digits, vowels and consonants in the string.
37.     Write a program to swap two numbers using a function. Pass the values to be swapped to this function using call-by-value method.
38.     Write a program to swap two numbers using a function. Pass the values to be swapped to this function using call-by-reference method.
39.     Write a program to store and display the name, roll number and fees of a student using structure.
40.     Define structure within structure consisting of following elements:
                                                      i.        Employee Code
                                                     ii.        Employee Name
                                                    iii.        Employee Salary and
                                                   iv.        Employee Date_of_joining

Write a C program to read at least 10 records and display them.

Thursday, April 9, 2015

QUESTION BANK FOR I A E 2(APRIL 2015)


        
QUESTION BANK FOR I A E 2(APRIL 2015)

SEM: II                                                                                             Sub: S P A.   

Q.1
02 Marks Questions.

               a)
Differentiate between while and do-while loop.
     
          b)
Explain break with example.

           c)
Explain continue with example.

          d)
Differentiate between if-else ladder and Switch case.

          e)
Differentiate between for and while loop.

           f)
Explain global variable.

         g)
Explain local variable.

         h)
Explain Auto storage class with example.

           i)
Explain static storage class with example.

           j)
Explain return keyword

         k)
Find the output (on break).

           l)
Find the output (on continue).
Q.2
05 Marks Questions.

            a)
Write a program in C to generate prime numbers between 100-200

           b)
Write a program in C to find out GCD and LCM of any 2 numbers.
   
          c)
Write a program in C to display the pattern.

         d)
Write a program in C to check whether the number is an Armstrong or not.
Q.3
05 Marks Questions.

            a)
Write a program in C to find out factorial of a number using recursion.

          b)
Write a program in C to print fibbonacci of N elements using function.

           c)
Write a program in C to find out power of a number using recursion.

          d)
Write a program in C to check whether the number is palindrome or not using function.         

Tuesday, March 17, 2015

Wonders of C Language

/* Copy the program on to your system and run to check the wonders of  C language */



#include <stdio.h>
# include <stdlib.h>
int main()
{

int a,b,c;

for (b=c=10;a= "Love Your INDIA \
TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^NBELP\
eHBFHT}TnALVlBLOFAKFCFQHFOQIAIREETMSQGCSQOUHATFAJKSbEALGSkMCSlOASn^r\
^r\\tZvYxXyT|S~Pn SPm SOn TNn ULo0ULo#ULo-WHq!WFs XDt!"[b+++6];)
while(a-->64) putchar (++c=='Z'?c=c/9:33^b&1);
getchar();

}

ECCF Question Describe the Block diagram of Operational Amplifier Draw the pin diagram of  µA 741 op-amp Draw the schematic diagram o...