Solucionario d c++

Páginas: 33 (8090 palabras) Publicado: 19 de febrero de 2012
Instructor’s Manual
for

C How to Program, 4/e

Deitel & Deitel
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved.

Contents

1 Introduction to Computers, the Internet and the World Wide Web 2 3 4 5 6 7 8 9 Introduction to C Programming Structured Program Development in C C Program Control C Functions C Arrays Pointers C Characters andStrings C Formatted Input/Output

1 5 19 55 97 169 233 283 319

10 Structures, Unions, Bit Manipulations and Enumerations 11 12 C File Processing Data Structures

333 353 375

II

13 14 15 16 17 18 19 20 21 22 23 24

The Preprocessor Other C Topics C++ as a “Better C” C++ Classes and Data Abstraction C++ Classes: Part II C++ Operator Overloading C++ Inheritance C++ Virtual Functions andPolymorphism C++ Stream Input/Output C++ Templates C++ Exception Handling: Solution Introduction to Java Applications and Applets

441 447 457 463 485 493 499 511 519 537 543 547 557 585 603 617 633 661

25 Beyond C & C++: Operators, Methods & Arrays in Java 26 27 28 29 30 Java Object-Based Programming Java Object-Oriented Programming Java Graphics and Java2D Java Graphical User InterfaceComponents Java Multimedia: Images, Animation, and Audio

1
Introduction to Computers, the Internet and the World Wide Web: Solutions
SOLUTIONS
1.3 Categorize each of the following items as either hardware or software: a) CPU ANS: hardware. b) C compiler ANS: software. c) ALU ANS: hardware. d) C preprocessor ANS: software. e) input unit ANS: hardware. f) a word processor program ANS: software.1.4 Why might you want to write a program in a machine-independent language instead of a machine-dependent language? Why might a machine-dependent language be more appropriate for writing certain types of programs? ANS: Machine independent languages are useful for writing programs to be executed on multiple computer platforms. Machine dependent languages are appropriate for writing programs tobe executed on a single platform. Machine dependent languages tend to exploit the efficiencies of a particular machine. 1.5 Translator programs such as assemblers and compilers convert programs from one language (referred to as the source language) to another language (referred to as the object language). Determine which of the following statements are true and which are false: a) A compilertranslates high-level language programs into object language. ANS: True. b) An assembler translates source language programs into machine language programs. ANS: True. c) A compiler converts source language programs into object language programs. ANS: False. d) High-level languages are generally machine-dependent. ANS: False. e) A machine language program requires translation before the program can berun on a computer. ANS: False.

© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved.

2 Introduction to Computers, the Internet and the World Wide Web: Solutions

Chapter 1

1.6

Fill in the blanks in each of the following statements: a) Devices from which users access timesharing computer systems are usually called . ANS: terminals. b) Acomputer program that converts assembly language programs to machine language programs is called . ANS: an assembler. c) The logical unit of the computer that receives information from outside the computer for use by the computer is called . ANS: The input unit. d) The process of instructing the computer to solve specific problems is called . ANS: computer programming. e) What type of computerlanguage uses English-like abbreviations for machine language instructions? . ANS: a high-level language. f) Which logical unit of the computer sends information that has already been processed by the computer to various devices so that the information may be used outside the computer? . ANS: The output unit. g) The general name for a program that converts programs written in a certain computer...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Solucionario c semana 3
  • G Em C D C
  • Caso D&C
  • C Y D 1
  • Viamina C Y D T
  • C. D. Fas
  • A B C y D
  • Oscar_Mayorga Amplificadores C D

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS