Exercises

Answers to Self Review Exercises

1.1

a) machine. b) programs. c) secondary storage unit. d) assembly languages, high-level languages. e) compilers. f) Integrated Development Environment (IDE). g) UNIX. h) Framework Class Library (FCL). i) multitasking. j) XML, SOAP.

1.2

a) False. The UML is used primarily to design object-oriented systems. b) True. c) False. C# allows you to use existing controls to get powerful applications running faster than if you had to write all of the code yourself. d) False. C# is one of many .NET languages (others are Visual Basic and Visual C++). e) False. Object-oriented programming (because it focuses on things) is a more natural way to model the world than procedural programming. f) False. Computers can directly understand only their own machine languages. g) True. h) True. i) True. j) True.

1.3

Categorize each of the following items as either hardware or software:

  1. CPU.
  2. Compiler.
  3. Input unit.
  4. A word-processor program.
  5. A C# program.
1.4

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 target language). Determine which of the following statements are true and which are false:

  1. A compiler translates high-level language programs into target-language programs.
  2. An assembler translates source-language programs into machine-language programs.
  3. A compiler converts source-language programs into target-language programs.
  4. High-level languages are generally machine dependent.
  5. A machine-language program requires translation before it can be run on a computer.
  6. The C# compiler translates high-level language programs into SMIL.
1.5

What are the basic requirements of a .NET language? What is needed to run a .NET program on a new type of computer (machine)?

1.6

Expand each of the following acronyms:

  1. W3C.
  2. XML.
  3. SOAP.
  4. OOP.
  5. CLR.
  6. CLI.
  7. FCL.
  8. MSIL.
  9. UML.
  10. OMG.
  11. IDE.
1.7

What are the key benefits of the .NET Framework and the CLR? What are the drawbacks?

1.8

What are the advantages to using object-oriented techniques?

1.9

You are probably wearing on your wrist one of the world's most common types of objectsa watch. Discuss how each of the following terms and concepts applies to the notion of a watch: object, attributes and behaviors.

1.10

What was the key reason that C# was developed?

1.11

What is the key accomplishment of the UML?

1.12

What did the chief benefit of the early Internet prove to be?

1.13

What is the key capability of the Web?

1.14

What is the key vision of Microsoft's .NET initiative?

1.15

How does the FCL facilitate the development of .NET applications?

1.16

What are Web services and why are they so crucial to Microsoft's .NET strategy?

1.17

What is the key advantage of standardizing .NET's CLI (Common Language Infrastructure) with Ecma?

 
1.18

Why is programming in an object-oriented language such as C# more "natural" than programming in a procedural programming language such as C?

1.19

Despite the obvious benefits of reuse made possible by OOP, what do many organizations report as the key benefit of OOP?

1.20

Why is C# said to be an event-driven language?

1.21

Why is XML so crucial to the development of future software systems?

Introduction to the Visual C# 2005 Express Edition IDE

Preface

Index

    Introduction to Computers, the Internet and Visual C#

    Introduction to the Visual C# 2005 Express Edition IDE

    Introduction to C# Applications

    Introduction to Classes and Objects

    Control Statements: Part 1

    Control Statements: Part 2

    Methods: A Deeper Look

    Arrays

    Classes and Objects: A Deeper Look

    Object-Oriented Programming: Inheritance

    Polymorphism, Interfaces & Operator Overloading

    Exception Handling

    Graphical User Interface Concepts: Part 1

    Graphical User Interface Concepts: Part 2

    Multithreading

    Strings, Characters and Regular Expressions

    Graphics and Multimedia

    Files and Streams

    Extensible Markup Language (XML)

    Database, SQL and ADO.NET

    ASP.NET 2.0, Web Forms and Web Controls

    Web Services

    Networking: Streams-Based Sockets and Datagrams

    Searching and Sorting

    Data Structures

    Generics

    Collections

    Appendix A. Operator Precedence Chart

    Appendix B. Number Systems

    Appendix C. Using the Visual Studio 2005 Debugger

    Appendix D. ASCII Character Set

    Appendix E. Unicode®

    Appendix F. Introduction to XHTML: Part 1

    Appendix G. Introduction to XHTML: Part 2

    Appendix H. HTML/XHTML Special Characters

    Appendix I. HTML/XHTML Colors

    Appendix J. ATM Case Study Code

    Appendix K. UML 2: Additional Diagram Types

    Appendix L. Simple Types

    Index



    Visual C# How to Program
    Visual C# 2005 How to Program (2nd Edition)
    ISBN: 0131525239
    EAN: 2147483647
    Year: 2004
    Pages: 600

    Flylib.com © 2008-2020.
    If you may any questions please contact us: flylib@qtcs.net