Appendix L - Answers to Checkpoints - Appendix Answers to...

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

View Full Document Right Arrow Icon
Answers to Checkpoints Chapter 1 1.1 Because the computer can be programmed to do so many different tasks. 1.2 The Central Processing Unit (CPU), main memory, secondary storage devices, input devices, output devices. 1.3 Arithmetic and Logic Unit (ALU), and Control Unit 1.4 Fetch: The CPU’s control unit fetches the program’s next instruction from main memory. Decode: The control unit decodes the instruction, which is encoded in the form of a number. An electrical signal is generated. Execute: The signal is routed to the appropriate component of the computer, which causes a device to perform an operation. 1.5 A unique number assigned to each section of memory. The address is used to identify a location in memory. 1.6 Program instructions and data are stored in main memory while the program is operating. Main memory is volatile, and loses its contents when power is removed from the computer. Secondary storage holds data for long periods of time —even when there is no power to the computer. 1.7 It means that an operating system is capable of running multiple programs at once. 1.8 A key word has a special purpose, and is defined as part of a programming language. A programmer-defined symbol is a word or name defined by the programmer. 1.9 Operators perform operations on one or more operands. Punctuation symbols mark the beginning or ending of a statement, or separates items in a list. 1.10 A line is a single line as it appears in the body of a program. A statement is a complete instruction that causes the computer to perform an action. 1.11 Because their contents may be changed. 1.12 The original value is overwritten. 1.13 A compiler is a program that translates source code into an executable form. 1.14 Syntax errors are mistakes that the programmer has made that violate the rules of the programming language. These errors must be corrected before the compiler can translate the source code. 1.15 The Java compiler translates Java source code into byte code, which is an intermediate language. The Java Virtual Machine executes the byte code instructions. 1.16 The Java Virtual Machine (JVM) is a program that reads Java byte code instructions and executes them as they are read. In other words, it interprets byte code instructions. You can think of the JVM as a program that simulates a computer whose machine language is Java byte code. 1.17 The program's purpose, input, process, and output. 1.18 Before you create a program on the computer, it is often a good idea to imagine what the computer screen will look like while the program is running. If it helps, draw pictures of the screen, with sample input and output, at various points in the program. Appendix L
Background image of page 1

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

View Full DocumentRight Arrow Icon
1.19 A cross between human language and a programming language. Pseudocode is especially helpful when designing an algorithm. Although the computer can’t understand pseudocode, programmers often find it helpful to write an algorithm in a language that’s “almost” a programming language,
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 06/17/2009 for the course IS 2033 taught by Professor Khin during the Spring '09 term at The University of Texas at San Antonio- San Antonio.

Page1 / 24

Appendix L - Answers to Checkpoints - Appendix Answers to...

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