zoukankan      html  css  js  c++  java
  • Chapter1 Getting Ready

    Review Questions

    1. What does portability mean in the context of programming?

    A perfect portable program is one whose source code can,without modification,be compiled to a successful program on a variety of different computer systems.

    2. Explain the difference between a source code file, object code file, and executable file.

    A source code file contains code as written in whatever language the programmer is using. An object code file contains machine language code; it need not be the code for a complete program. An executable file contains the complete code, in machine language, constituting an executable program.

    3. What are the seven major steps in programming?

    a. Defining program objectives.

    b. Designing the program.

    c. Coding the program.

    d. Compiling the program.

    e. Running the program.

    f. Testing and debugging the program.

    g. Maintaining and modifying the program.

    4. What does a compiler do?

    A compiler translates source code (for example, code written in C) to the equivalent machine language code, also termed object code.

    5. What does a linker do?

    The linker combines translated source code with library code and start-up code to produce an executable program.

    苟利国家生死以, 岂因祸福避趋之
  • 相关阅读:
    Vmstat主要关注哪些数据?
    Swap是个什么东东?
    Buffers与cached啥区别
    做错的题目——关于构造器返回值
    做错的题目——this的指向
    JS判断一个数是否为质数
    数组扁平化
    JS实现快速排序
    正则实现千分符
    获取鼠标的当前位置
  • 原文地址:https://www.cnblogs.com/chintsai/p/10291583.html
Copyright © 2011-2022 走看看