SPA QUESTION BANK [1st UNIT TEST]

QUESTION BANK [SPA]

1.  What are constant, dataypes and variable?
2.  Write a program to display numbers from 10 to 1 and then 10 to 1.
3.  Draw a flow chart to find the greatest number out of 3 numbers.
4.  Explain switch control statement with help of example.
5.  Explain increment and decrements operators with an example.
6.  Write a program to calculate GCD and LCM of two numbers.
7.  Explain ternary operators with example?
8.  Write difference between while and do-while loop.
9.  Write a program to generate Fibonacci series up to n terms.
10. Write a program to find biggest of given 3 numbers using conditional operator.
11. Write a program to Calculate and print the factorial of given Number.
12. Explain bitwise operators with example in C language.
13. Write a program to find the gross salary by taking input as basic salary, DA as 50% and HRA as 40%.
14. Write a program to swap to numbers.

Prof. Mukhtar Ansari
Computer Engineering Department
SoET - AIKTC

Comments

Popular posts from this blog

Exp : 1 & 2 : Working with HTML and CSS

DV and LS Routing Algorithm Implementation in ns2

JAVA PROGRAMMING QUESTION BANK FOR PTT-1 (ACADEMIC YEAR 2015-16)