Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
24 views

Computer Programming QUESTION BANK

Uploaded by

Udhaya Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Computer Programming QUESTION BANK

Uploaded by

Udhaya Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

ACHARIYA COLLEGE OF ENGINEERING TECHNOLOGY

(Approved by AICTE and Affiliated to Pondicherry University)


Achariyapuram, Villianur, Puducherry – 605 110.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
QUESTION BANK
SUB CODE: T106 SEM: I
SUBJECT NAME: COMPUTER PROGRAMMING YEAR: I
Short Answer Type Questions
UNIT – I
1. First calculating device & First calculator of the world?
2. Mechanical calculator & First Mechanical computer?
3. First electro-mechanical computer & First Electronic computer and when it was
built?
4. Who invented the Napier’s bones?
5. Who invented the Pascaline and when?
6. Who invented the Slide Rule?
7. Who invented the Punched card system?
8. Who invented the fast counting machine and what its name?
9. Who designed the Difference Engine and for what purpose?
10. Define Computer?
11. What is an Information Technology?
12. Define Data, Information.
13. What are the major Components of 1st, 2nd, 3rd and 4th generation Computers?
14. Expand ASCC, ENIAC and EDSAC?
15. What is a Personal Computer? List the different types of PCs?
16. What is a Mainframe computer? Where are they used?
17. Define CPU.
18. Define Control Unit and ALU.
19. List out the characteristics of Computer.
20. Define Hardware and Software.
21. What are the types of Software?
22. Define Primary Storage and its Components.
23. Define Secondary Storage and its types.
24. What are the types of Input Devices?
25. What are the Applications of computers?
26. Define Printing Devices and its types.
27. Define Operating System and its Functions.
28. How do you categorize the Operating System?
29. Define Compiler, Interpreter.
ACHARIYA COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE and Affiliated to Pondicherry University)
Achariyapuram, Villianur, Puducherry – 605 110.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
30. List the Role of Information Technology.
31. What is Internet and list its important services?
32. Define Intranet.
PART B
ESSAY TYPE QUESTIONS:
33. Explain the components of computer system.
34. Describe about Internet and its services.
35. Explain the applications of computer.
36. Write the procedure to prepare a pay bill slips for employee it have 10 data using
worksheet.
37. Explain in detail the classification of computers.
38. Draw the block diagram of a computer and explain its components.
39. Explain the applications of Internet.
40. Discuss the characteristics of computer.
41. Explain the various Network Structures.
42. Draw a flowchart for student mark processing
43. What is internet? What are the steps involved to connection to the internet?
44. Compare LAN, WAN, MAN with their applications.
45. Explain the working of internet. How do you send electronic mail to your friend?
46. Discuss various categories of Software and Services of Operating Systems.
47. Write the procedure for the preparing a worksheet for mark sheet.
48. Explain the history of computer.
49. Discuss in detail the various characteristics of software with a classification
diagram.
50. Explain different types of network with neat diagram.
51. Explain the relationship between system software and application software.
52. List out the difference between the following:
a. Hardware and Software
b. Low Level and High Level Language.
c. Internet and Intranet
ACHARIYA COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE and Affiliated to Pondicherry University)
Achariyapuram, Villianur, Puducherry – 605 110.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

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:

1. Write a ‘C’ program to store the employee details using structure.


2. Write the ‘C’ program to arrange the given names in alphabetical order.
3. Discuss the use of nested structures with example program.
4. Write a program to store the player’s details in the array of structures and sort the array
name wise.
5. Write a program perform arithmetic operations using arithmetic pointer.
6. Write a program to create array of structure objects.
7. Explain about nested structures with example.
8. Describe about declaration and initialization of structures.
9. Write a ‘C’ program to find the sum of an array integer numbers using pointers.
10. Compare structure with Union.
11. Write Short notes on: Pointers to structures.
ACHARIYA COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE and Affiliated to Pondicherry University)
Achariyapuram, Villianur, Puducherry – 605 110.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

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.

You might also like