QUESTION
BANK FOR I A E 2(APRIL 2015)
SEM: II Sub:
S P A.
Q.1
|
02 Marks
Questions.
|
|
Differentiate
between while and do-while loop.
|
||
Explain
break with example.
|
||
Explain
continue with example.
|
||
Differentiate
between if-else ladder and Switch case.
|
||
Differentiate
between for and while loop.
|
||
Explain
global variable.
|
||
Explain
local variable.
|
||
Explain
Auto storage class with example.
|
||
Explain
static storage class with example.
|
||
Explain
return keyword
|
||
Find the output (on break).
|
||
Find
the output (on continue).
|
||
Q.2
|
05 Marks
Questions.
|
|
Write
a program in C to generate prime numbers between 100-200
|
||
Write
a program in C to find out GCD and LCM of any 2 numbers.
|
||
Write
a program in C to display the pattern.
|
||
Write
a program in C to check whether the number is an Armstrong or not.
|
||
Q.3
|
05 Marks
Questions.
|
|
Write
a program in C to find out factorial of a number using recursion.
|
||
Write
a program in C to print fibbonacci of N elements using function.
|
||
Write
a program in C to find out power of a number using recursion.
|
||
Write a program in C to check whether the number is
palindrome or not using function.
|
No comments:
Post a Comment