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

游客2023-12-19  7

问题    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. [br] Which programming language is designed for the instruction of youngsters?

选项 A、BASIC
B、FORTRAN
C、ALGOL
D、LOGO

答案 D

解析 细节题。根据文章提到的LOGO,a version of LISP,was developed in the 1960s to help children learn about computers,我们可以确定D为正确选择。
转载请注明原文地址:https://www.tihaiku.com/zcyy/3285614.html
最新回复(0)