We all know that programming language is the system of syntax, grammar, and

游客2023-12-21  27

问题     We all know that programming language is the system of syntax, grammar, and symbols or words used to give instructions to a computer. Because computers work with binary numbers, first-generation languages, called machine languages, required the writing of long strings of binary numbers to represent such operations as add, subtract, and compare. Later improvements allowed octal, decimal, or hexadecimal representation of binary strings. It is difficult to write error-free programs in machine language; many languages have been created to make programming easier and faster. Symbolic, or assembly, languages-- second-generation languages-- were introduced in the early 1950s. They use simple mnemonics such as "A" for add or "M" for multiply, which are translated into machine language by a computer program called an assembler. An extension of such a language is the macro instruction, a mnemonic (such as "READ") for which the assembler substitutes a series of simpler mnemonics. In the mid-1950s, a third generation of languages came into use. Called high-level languages because they are largely independent of the hardware, these algorithmic, or procedural, languages are designed for solving a particular type of problem. Unlike machine or symbolic languages, they vary little between computers. They must be translated into machine code by a program called a compiler or interpreter. The first such language was FORTRAN (FORmula TRANslation), developed about 1956 and best used for scientific calculation. The first commercial language, COBOL (Common Business Oriented Language), was developed about 1959. ALGOL (ALGOrithmic Language), developed in Europe about 1958, is used primarily in mathematics and science, as is APL (A Programming Language), published in 1962. P1/1 (programming Language 1), developed in the late 1960s, and ADA (for Ada Augusta, countess of Lovelace, biographer of Charles Babbage), developed in 1981, are designed for both business and scientific use. For personal computers the most popular languages are BASIC (Beginners All-purpose Symbolic Instruction Code), developed in 1967 and similar to FORTRAN, and Pascal (for Blaise Pascal, who built the first successful mechanical calculator), introduced in 1971 as a teaching language. Modula 2, a Pacal-like language for commercial and mathematical applications, was introduced in 1982. The C language, introduced (1972) to implement the Unix operating system, has been extended to C++ to deal with the rigors of object-oriented programming. Fourth-generation languages are nonprocedural. They specify what is to be accomplished without describing how. The first one, FORTH, developed in 1970, is used in scientific and industrial control applications. Most fourth-generation languages are written for specific purposes. Fifth-generation languages, which are still in infancy, are an outgrowth of artificial intelligence research. PROLOG (PROgramming Logic) is useful for programming logical processes and making deductions automatically.
    Many other languages have been designed to meet specialized needs. GPSS (General Purpose System Simulator) is used for modeling physical and environmental events, and SNOBOL (String-Oriented Symbolic Language) and LISP (LISt Processing) are designed for pattern matching and list processing. LOGO, a version of LISP, was developed in the 1960s to help children learn about computers. PILOT (Programmed Instruction Learning, Or Testing) is used in writing instructional software, and Occam is a nonsequential language that optimizes the execution of a program’s instructions in parallel processing systems.

选项 A、it is used in designing software.
B、it is hardware-independent.
C、is should be translated into the computer language by software.
D、it is designed to solve some specific problem.

答案 A

解析 本题是是非题。文章中提到a third generation of languages... are largely independent of the hardware; ...are designed for solving a particular type of problem; ... must be translated into machine code,但是没有提到设计软件,因此选择A。
转载请注明原文地址:https://tihaiku.com/zcyy/3292197.html
最新回复(0)