Professional Documents
Culture Documents
Important Questions For Viva Programming in C: Chapter 1: Introduction
Important Questions For Viva Programming in C: Chapter 1: Introduction
Chapter 1: Introduction
1. What is program? What is programming?
Ans:
• Program is set of instructions to computer.
• Programming is the process of writing program using specific programming language.
2. What is software?
Ans:
• Software is the collection of programs which is used for solving specific problem.
• Example: AutoCad, SAP, DevC++ etc.
3. What are types of translators?
Ans:
• Translators are the system software that are used to translate Assembly level/ High level
language into low level (binary) language.
• Types of Translators:
a) Assembler (Assembly Language to Low Level Language)
b) Compiler (High Level Language to LLL whole program)
c) Interpreter (High Level Language to LLL line by line)
Chapter 6: Functions
1. What is function?
2. Why is function used in program?
3. What are types of function?
4. Compare library function and user-defined function.
5. Write examples of any 6 Library functions.
6. What are types of functions according to return type and parameter.
7. What are the components of function?
8. What is function prototype?
9. Differentiate between function prototype and function definition.
10. What are information received compiler from a function prototype?
11. What is formal parameter/argument?
12. What is actual parameter/argument?
13. Why return statement is used in function?
14. What is recursive function?
15. What are two conditions required to construct recursive functions?
16. Compare recursive function and iteration.
17. What is macro?
18. What is preprocessor directive?
19. Compare function and macro.
20. Compare pass by value and pass by reference.
21. How do you return multiple values from a function?
Chapter 7: Pointers
1. What is pointer?
2. How do you declare pointer?
3. Do you return multiple values using pointer?
4. Compare array and pointer.
5. What is NULL pointer?
6. What is bad pointer?