AnswersToReviewQuestions - Answers to Review Questions...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Answers to Review Questions Chapter 1. Introduction 1. Babbage’s Analytical Engine introduced the concept of programming to computing. 2. Augusta Ada Byron is generally recognized as the first programmer. The U.S. Department of Defense named the Ada programming language in her honor. 3. The heart of von Neumann architecture is the stored-programming concept, in which both data and programming instructions are stored in the same memory system. 4. Hardware is tangible and comprises the physical parts of a computer; software is intangible and consists of the programs the computer executes. 5. The abstract concept that forms the core of computer science is problem-solving. 6. For a solution technique to be an algorithm, it must be Clearly and unambiguously defined Effective, in the sense that its steps are executable Finite, in the sense that it terminates after a bounded number of steps 7. Algorithmic design refers to the process of designing a solution strategy to fit a particular problem; coding refers to the generally simpler task of representing that solution strategy in a programming language. 8. A higher-level language is a programming language that is designed to be independent of the particular characteristics that differentiate computers and to work instead with general algorithmic concepts that can be implemented on any computer system. The higher-level language used in this text is called Java. 9. Each type of computer has its own machine language, which is different from that used in other computers. The compiler acts as a translator from the higher-level language into the machine language used for a specific machine. 10. A source file contains the actual text of a program and is designed to be edited by people. An object file is created by the compiler and contains a machine-language representation of the program. Most programmers never work directly with object files. 11. A syntax error is a violation of the grammatical rules of the programming language. The compiler catches syntax errors when it translates your program. Bugs are errors of the logic of the program. Programs containing bugs are perfectly legal in the sense that the compiler can find no violation of the rules, but nonetheless they do not behave as the programmer intended.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Art and Science of Java – 2 – Answers to review questions 12. False. Even the best programmers make mistakes. One of the marks of a good programmer is the ability to find and correct those mistakes. 13. False. Between 80 and 90 percent of the cost of a program comes from maintaining that program after it is put into practice. 14. The term software maintenance refers to development work on a program that continues after the program has been written and released. Although part of software maintenance involves fixing bugs that were not detected during initial testing, most maintenance consists of adapting a program to meet new requirements.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/01/2009 for the course COMP SCI 1MD3 taught by Professor Various during the Spring '07 term at McMaster University.

Page1 / 22

AnswersToReviewQuestions - Answers to Review Questions...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online