2

Click here to load reader

SPA Question Bank

Embed Size (px)

Citation preview

Page 1: SPA Question Bank

SPA University Question Bank By Prof. Smita Patil-Bhoir

1. Problem Definition

1) Explain how problem is defined with the help of suitable example.

2. Algorithm

2) What do you mean by algorithm? Which points you should consider while

developing algorithm.

3) What is modular programming ? What are the characteristics and advantages of

modular programming ?

4) What is an algorithm? How to calculate efficiency of an algorithm?

5) Explain different asymptotic notations.

6) What is flowchart? Explain pros and cons of using it. Draw a flow chart to print roots

of quadratic equation.

7) Give comparison between OOP and POP.

3. Expressing algorithm: Sequence

8) Explain the purpose of following standard library functions

1) Floor() 2) ceil() 3) sqrt()

9) State any two library functions in math.h along with its uses.

10) Explain different formatted and unformatted I/O functions.

4. Concept of scalar data types

11) Explain different data-types in C.

12) Explain operator precedence in C.

13) Explain different operators in C. Also explain precedence and associativity of

operators.

5. Expressing algorithm: Iteration

14) Explain difference between for, while and do-while.

15) Difference between while and do…while.

16) Explain use of break and continue in program.

17) Explain jumping statement in C with suitable example.

Page 2: SPA Question Bank

SPA University Question Bank By Prof. Smita Patil-Bhoir

6. Expressing algorithm: Selection

18) Explain difference between switch, ladder of if-else and nested if-else

7. Decomposition of Solution

19) Explain difference between call by value and call by reference.

8. Additional C data types

20) Explain any three string functions.

21) Explain reference and de-reference operators with example.

Note- : In the example above we used ampersand sign (&). This sign is called the reference

operator.

We also used the asterisk sign (*). This sign is called the dereference operator. Explain

various storage classes used in c with example.

22) Explain concept of recursion. Write a program to print Fibonacci series using

recursion.

23) Explain how to read the contents of file and write into the file with syntax.

24) What do you mean by static and auto storage class. Explain.

25) What do you mean by struct. Explain nested structure.

26) What are different ways for passing parameter passing to a function. Explain

with suitable example.

27) What do you mean by FILE? What are different functions available to read date

from the file. Specify different modes in which files can be opened along with

syntax.

28) Explain basic difference between structures and unions.

29) Explain enum data-type with suitable example.

30) Give difference between

1) Recursion and iteration

2) Actual and formal parameters

31) Explain term typedef.

32) Compare array and structure.

33) What is pointer? Give its benefits.