Computer Programming QUESTION BANK
Computer Programming QUESTION BANK
UNIT – II
PART A
Short Answer Type Questions
1. Define Program.
2. Name the problem solving techniques.
3. List the steps involved in Program Development Cycle.
4. Define Algorithm.
5. List the characteristics of a good algorithm.
6. What is a Flowchart? Give its classification.
7. What is “Pseudo code”?
8. What are the types of Programming Languages?
9. What is Debugging?
10. How did the term debug come?
11. List the type of errors faced by programmers.
1. What is testing?
12. What is C language?
13. How is the name C derived?
14. What is a byte?
15. What is a word?
16. What is nibble?
17. What is the acronym for ASCII, ANSI?
18. Give the salient feature of C language?
19. What is a statement?
20. What are header files?
21. Define C Tokens and its types.
22. What is a Keyword?
23. Define Constant and different types of C constants.
24. What is data type?
25. Mention the different data types of C language?
26. What is a variable and how you declare a variable in C?
27. What is a Volatile Variable?
ACHARIYA COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE and Affiliated to Pondicherry University)
Achariyapuram, Villianur, Puducherry – 605 110.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
28. What is the need for Type conversion?
29. List the types of Type conversion.
30. What is an Operator and Operand?
31. How do you classify C operators?
32. List the precedence of operators.
33. Explain conditional operator with example.
34. What is the use of size-of operator?
35. What is an lvalue?
36. Explain the meaning of Lvalue?
37. What is the need for input-output functions and list its types?
38. What value is returned when the scanf () function is executed?
39. What value is returned when the printf() function is executed?
40. What is the difference between getche () and getch ()?
41. Difference between scanf and printf function.
PART B
ESSAY TYPE QUESTIONS:
42. Draw the flowchart and write the algorithm to print sum of given ‘n’ numbers.
43. Discuss the various I/O functions with examples.
44. Explain the programs development cycle.
45. Explain the various Input and Output functions used in ‘C’.
46. Explain the various operators and its precedence in ‘C’.
47. Explain the problem solving techniques.
48. Explain the steps involved in program development cycle.
49. Describe the operators available in ‘C’.
50. Explain about formatted and unformatted I/O functions in ‘C’.
51. Describe various operators in available in ‘C’.
52. Explain various I/O functions in ‘C’.
53. Discuss the various escape sequences characters in ‘C’.
54. Explain the structure of ‘C’ programming.
55. Explain the various data types in C.
56. Design and Develop an algorithm and flowchart for generating prime numbers.
57. Design and Develop an algorithm and flowchart for generating Fibonacci Series.
ACHARIYA COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE and Affiliated to Pondicherry University)
Achariyapuram, Villianur, Puducherry – 605 110.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
58. Explain in detail about Pseudo code.
59. Compare and Contrast Keywords and Identifiers in ‘C’ Language.
60. Explain in detail about variable and Constants in C.
UNIT – III
PART A
Short Answer Type Questions
1. What are Control structures or Control statements?
2. How do you categorize the Control structures?
3. Define Conditional control statement.
4. Define Unconditional control statement.
5. Define Decision-making and its types.
6. Define Branching.
7. When do you use switch statement?
8. Define Looping and its types.
9. What is the difference between while and do-while loop statements?
10. What is an array?
11. How do you declare an array?
12. How do you classify arrays?
13. What is a function?
14. What are the benefits of using functions?
15. How function is classified?
16. How do you categorize the function types?
17. Distinguish between the user-defined functions and the standard functions?
18. List various library functions available in C language.
19. What are the elements of user-defined functions?
20. What are the elements of function header?
21. Explain about function declaration with example.
22. Distinguish between function definition and function declaration?
23. What is a calling program and how is different from called program?
24. How does the function return a value to a calling function/program?
25. If the specific return type is not mentioned, then what value will be returned?
ACHARIYA COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE and Affiliated to Pondicherry University)
Achariyapuram, Villianur, Puducherry – 605 110.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
26. Distinguish between arguments and parameter?
27. What do you mean by passing arrays to a function?
28. How does the function that returns multiple values?
29. Write about scope of the variable.
30. Distinguish between a local variable and a global variable?
31. What do you mean by parameter passing?
32. List the different types of parameter passing mechanisms in C?
33. Distinguish between call-by-value and call-by-reference parameter passing mechanisms?
34. What does the storage class tell the compiler?
35. List the four storage class specifiers in C.
36. What is recursion?
37. Define string.
38. What is a character array?
PART B
ESSAY TYPE QUESTIONS:
1. Explain Switch Statement with example.
2. Explain the usage of any five string function in ‘C’ with example.
3. Illustrate the various ways of passing values to the functions with example program.
4. Explain the storage classes in ‘C’ with example.
5. Explain about the various looping statements in ‘C’ example.
6. What are the branching and looping statements available in ‘C’? Explain them.
7. Write a program to find the product of two matrices.
8. Write a program to delete a specific element from an array and rearrange the elements
9. Explain about the standard library functions.
10. Explain the various decision making statements in ‘C’ with examples.
11. Explain passing value to the functions with example programs.
ACHARIYA COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE and Affiliated to Pondicherry University)
Achariyapuram, Villianur, Puducherry – 605 110.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
UNIT – IV
PART A
Short Answer Type Questions
1. How many types of data structures are there?
2. What is a Structure?
3. What do you mean by structure declaration?
4. What are embedded structures?
5. How do you access the members of a structure?
6. What is the need for an array of structures?
7. How do you pass structure between functions?
8. How user-defined data types are defined?
9. Explain enumerated data type.
10. What is a union?
11. Define Pointers.
12. What is a pointer variable?
13. How to declare a pointer variable?
14. How are pointer variables initialized?
15. What is a pointer value and address?
16. What are the Features of Pointers?
17. Difference between const char* p and char const* p.
18. What are the Advantages of Pointers?
19. Discuss about pointers & arrays.
20. What do you mean by array of pointers?
21. Discuss about pointers & strings.
22. What is pointer to a function?
23. Discuss about pointers and structures.
24. Define Dynamic Memory Allocation (DMA).
25. What are the differences between malloc() and calloc()?
26. What is a null pointer?
27. What is a void pointer?
ACHARIYA COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE and Affiliated to Pondicherry University)
Achariyapuram, Villianur, Puducherry – 605 110.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
PART B
ESSAY TYPE QUESTIONS:
UNIT – V
PART A
Short Answer Type Questions
1. What is a file?
2. Classify file operation levels.
3. What is a data file?
4. Why data files are required?
5. Classify the File types?
6. Why FILE data type is required?
7. List the basic file operations that C supports.
8. What are the steps involved for File operations?
9. Explain the syntax for opening a file.
10. Explain the syntax for closing a file.
11. What is random access to a file?
12. Explain command line arguments?
13. Define “C” Preprocessor.
14. What are the rules for defining preprocessor?
15. What are the Preprocessor Directives?
16. Define Macro Substitutions.
17. Define File inclusion directives.
18. Define Conditional compilation directives.
PART B
Essay Type Questions
19. Discuss the different file input and output statements with examples.
20. Explain the various file inclusion directives and write a program to include your own file
to access the user defined function.
21. Describe the conditional compilation directives.
22. Discuss the various file operation and mode of operation in file.
23. Write a program to store the only upper case letter in a file.
24. Write a program to copy between two files getting the filenames as command line
arguments.
25. Write a ‘C’ program to copy the content to another file.
ACHARIYA COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE and Affiliated to Pondicherry University)
Achariyapuram, Villianur, Puducherry – 605 110.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
26. Discuss about macro substitution with program.