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.         

No comments:

Post a Comment

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