首页 > 计算机应用技术> JAVA程序设计
题目内容 (请给出正确答案)
[主观题]

enum language{BASIC=3,Assembly:6,Ada=100,C0B0L,F0RTRAN)lang; 下列操作错误的是()。A

enum language{BASIC=3,Assembly:6,Ada=100,C0B0L,F0RTRAN)lang; 下列操作错误的是()。

A.1ang=Ada;

B.1ang=(enum language)100;

C.1ang=++Ada;

D.enum language*p一⟨

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“enum language{BASIC=3,Assembly…”相关的问题
第1题
Which of the following is not the basic system of language?A.The grammar system.B.Alphab

Which of the following is not the basic system of language?

A.The grammar system.

B.Alphabet system.

C.The word system.

D.The sound system.

点击查看答案
第2题
The most basic reason why dialects should be prese

rved is that language helps to ______ a culture

A) retain B) relate C) remark D) review

点击查看答案
第3题
Chomsky refers to the child ’s innate endowment as ____, a set of principles which a

A. language acquisition device

B. innate knowledge

C. universal grammar

D. basic grammar

点击查看答案
第4题
It is assumed that the world has 3 000 languages, which can be grouped into roughly _ language families on the basis of similarities in their basic word stock and grammar.

A.200

B.300

C.400

D.500

点击查看答案
第5题
Which of the following are high-level languages? A.COBOL, FORTRAN, ASSEMBLER, PASCAL. B.MACHINE LA

Which of the following are high-level languages?

A.COBOL, FORTRAN, ASSEMBLER, PASCAL.

B.MACHINE LANGUAGE, LIST, BASIC, PROLOG.

C.COMPILER, FLOW MATIC, ALGOL, LOGO.

D.None of the above.

点击查看答案
第6题
Since 1949, great changes have taken place in China. Yet, the Chinese language has changed
relatively little in terms of its basic syntax and phonology although some vocabulary changes, such as in forms of address, e. g. tongzhi(同志), xiaojie(小姐), and xiansheng(先生), have occurred. How does this fact(that the world view of a people has changed radically but the language has changed little)relate to the claim that knowing and using a particular language shapes ones world view?

点击查看答案
第7题
Computer Languages 计算机语言 A computer must be given instructions in a language that it understa

Computer Languages

计算机语言

A computer must be given instructions in a language that it understands, that is, a particular pattern of binary digital information. On the earliest computers, programming was a difficult, laborious task, because vacuum tube ON/OFF switches had to be set by hand. Teams of programmers often took days to program simple tasks, such as sorting a list of names. Since that time a number of computer languages have been devised, some with particular kinds of functioning in mind and others aimed more at ease of use-the user-friendly approach.

Machine Language

Unfortunately, the computer's own binary based language, or machine language, is difficult for humans to use. The programmer must input every command and all data in binary form, and a basic operation such as comparing the contents of a register to the data in a memory chip location might look like this: 11001010 00010111 11110101 00101011. Machine language programming is such a tedious, time-consuming task that the time saved in running the program rarely justifies the days or weeks needed to write the program.

Assembly Language

One method programmers devised to shorten and simplify the process is called assembly language programming. By assigning a short (usually three letter) mnemonic code to each machine language command, assembly language programs could be written and-debugged-cleaned of logic and date errors-in a fraction of the time needed by machine language programmers. In assembly language, each mnemonic command and its symbolic operands equals one machine instruction. An assembler program translates the mnemonic opcodes (operation codes) and symbolic operands into binary language and executes the program. Assembly language is a type of low level computer programming language in which each statement corresponds directly to a single machine instruction. Assembly languages are, thus, specific to a given processor. After writing an assembly language program, the programmer must use the assembler language into machine code. Assembly language provides precise control of the computer, but assembly language programs written for one type of computer must be rewritten to operate on another type. Assembly language might be used instead of a high levcl language for any of three major reasons: speed, control, and preference. Programs written in assembly language usually run faster than those generated by a compiler; use of assembly language lets a programmer interact directly with the hardware (processor, memory, display, and input/output ports). Assembly language, however, can be used only with one type of CPU chip or microprocessor. Programmers who expended much time and effort to learn how to program one computer had to learn a new programming style each time they worked on another machine. What was needed was a shorthand method by which one symbolic statement could represent a sequence of many machine language instructions, and a way that would allow the same program to run on several types of machines. These needs led to the development of so-called high level languages.

High Level Languages

High level languages often use English-Iike words-for example, LIST, PRINT, OPEN, and so on-as commands that might stand for a sequence of tens or hundreds of machine language instructions. The commands are entered from the keyboard or from a program in memory or in a storage device, and they are interpreted by a program that translates them into machine language instructions.

Translator programs are of two kinds: interpreters and compilers. With an interpreter, programs that loop back to reexecute part of their instructions reinterpret the same instructions each time it appears, so interpreted programs run much more slowly than machine language programs. Compilers, by contrast, translate an entire program into machine language prior to execution, so such programs run as rapidly as though they were written directly in machine language.

American computer scientist Grace Hopper is credited with implementing the first commercially oriented computer language. After programming an experimental computer at Harvard University[1], she worked on the UNIVAC[2]I and II computers and developed a commercially usable high level programming language called FLOW MATIC to facilitate computer use in scientific applications. IBM[3]then developed a language that would simplify work involving complicated mathematical formulas. Begun in 1954 and completed in 1957, FORTRAN (FORmula TRANslator)[4]was the first comprehensive high level programming language that was widely used. In 1957, the Association for Computing Machinery[5]set out to develop a universal language that would correct some of FORTRAN' s perceived faults. A year later, they released ALGOL[6](ALGOrithmic Language), another scientifically oriented language; widely used in Europe in the 1960s and 1970s, it has since been superseded by newer languages, while FORTRAN continues to be used because of the huge investment in existing programs. COBOL[7](COmmon Business Oriented Language), a commercial and business programming language, concentrates on data organization and file handling and is widely used today in business.

BASIC[8](Beginners All-purpose Symbolic Instruction Code) was developed at Dartmouth College in the early 1960s for use by nonprofessional computer users. The language came into almost universal use with the microcomputer explosion of the 1970s and 1980s. Condemned as slow, inefficient, and inelegant by its detractors, BASIC is nevertheless simple to learn and easy to use. Because many early microcomputers were sold with BASIC built into the hardware (in ROM memory) the language rapidly came into widespread use. As a very simple example of a BASIC program, consider the addition of the numbers 1 and 2, and the display of the result. This is written as follows (the numerals 10-40 are line numbers):

10 A=1

20 B=2

30 C=A+B

40 PRINT C

Although hundreds of different computer languages and variants exist, several others deserve mention. PASCAL[9], originally designed as a teaching tool, is now one of the most popular microcomputer languages. LOGO was developed to introduce children to computers. C, a language Bell Laboratories designed in the 1970s, is widely used in developing systems programs, such as language translators. LISP[10]and PROLOG are widely used in artificial intelligence.

COBOL

COBOL, in computer science, acronym for COmmon Business-oriented language, is a verbose, English-like programming language developed between 1959 and 1961. Its establishment as a required language by the U. S. Department of Defense, its emphasis on data structures. and its English-like syntax (compared to those of FORTRAN and ALGOL) led to its widespread acceptance and usage, especially in business applications. Programs written in COBOL, which is a compiled language, are split into four divisions: Identification, Environment, Data, and Procedure. The Identification division specifies the name of the program and contains any other documentation the programmer wants to add. The Environment division specifies the computer(s) being used and the files used in the program for input and output. The Data division describes the data used in the program. The Procedure division contains the procedures that dictate the actions of the program.

C & C++

A widely used programming language, C was developed by Dennis Ritchie at Bell Laboratories in 1972; it was so named because its immediate predecessor was the B programming language. Although C is considered by many to be more a machine independent assembly language than a high level language, its close association with the UNIX[11]operating system, its enormous popularity, and its standardization by the American National Standards Institute (ANSl)[12]have made it perhaps the closest thing to a standard programming language in the microcomputer/workstation marketplace. C is a compiled language that contains a small set of built in functions that are machine dependent. The rest of the C functions are machine independent and are contained in libraries that can be accessed from C programs. C programs are composed of one or more functions defined by the programmer; thus, C is a structured programming language. C+ +, in computer science, is an object oriented version of the C programming language, developed by Bjarne Stroustrup in the early 1980s at Bell Laboratories and adopted by a number of vendors, including Apple Computer, Sun Microsystems, Borland International, and Microsoft Corporation.

Notes

[1]Harvard University:美国哈佛大学。

[2]UNIVAC(Universal Automatic Computer):通用自动计算机。

[3]IBM(International Business Machine Corp):国际商用机器公司。

[4]FORTRAN(FORmula TRANslator):公式翻译程序设计语言。

[5]the Association for Computing Machinery:计算机协会(美国)。

[6]ALGOL(ALGOrithmic Language):面向代数的语言。

[7]COBOL(Common Business Oriented Language):面向商业的通用语言。

[8]BASIC(Beginners All-purpose Symbolic Instruction Code):初学者通用符号指令码。

[9]PASCAL(Philips Automatic Sequence Calculator):菲利浦自动顺序计算机语言。

[10]LISP(List Process):表处理程序,或表处理语言。

[11]UNIX(Uniplexed Information and Computer Systems):UNIX操作系统,1969年在

AT&T Bell实验室开发的多用户多任务操作系统。

[12]ANSI(American National Standards Institute):美国国家标准学(协)会。

点击查看答案
第8题
选出应填入下面一段英语中______内的正确答案。 OOP language that create object, such as (1) and

选出应填入下面一段英语中______内的正确答案。

OOP language that create object, such as(1)and(2),are beginning to take hold as viable tools for programmers.To effectively reuse object, programmers need a place to store them such as an ODBMS or a RDBMS with object oriented extensions.

Databases that handle object data not only let user store and retrieve(3)data, but also let them store objects created by OOP languages, to facilitate rapid software development and reuse, and let them(4)new multimedia applications combining multiple data types.

RDBMS vendors have developed new extensions to exiting DB technology to accommodate the most common forms of(5)data.

(1) PASCAL (2) BASIC (3)C (4)C++

(5) FORTRAN (6) SMALLTALK (7) numeric (8) nonalphanumeric

(9) structured (10) unstructured (11) to build (12) build

(13) to be build (14) built

点击查看答案
第9题
Assembly Language汇编语言Introducing Assembly Language Assembly language unlocks the secrets of you

Assembly Language

汇编语言

Introducing Assembly Language

Assembly language unlocks the secrets of your computer's hardware and software[1]. It teaches you about the way the computer's hardware and operating system work together and how application programs communicate with the operating system.

To understand a computer and it.s operating system fully, one needs to study software at various levels. One is the application program level, where such programs interact with DOS. Another is the high-level language level, where powerful statements are expanded into many machine instructions recognized directly by CPU (Central Processing Unit), as well as the way programs communicate with DOS.

What Is Assembly Language?

Assembly language is a programming language with a one-to-one correspondence between its statements and a computer's machine language. There is no single assembly language because there is no single type of computer CPU. Each assembly language is directly influenced by a computer's machine instruction set and hardware architecture.

Strictly speaking, IBM-PC assembly language refers to instructions recognized by the intel 8086-80486(CPU) microprocessor family. But there is such close interaction between the CPU, computer peripherals, the DOS operating system, and the macro assembler itself that our discussions will often include all these topics.

What Is An Assembler?

An assembler is a program that converts source-code programs into machine language. In this passage, we will refer to an assembler that generates machine instructions for IBM- compatible microcomputers. All such computers use the Intel family of microprocessors, beginning with the Intel 8088, through the Intel 80486 (and beyond). Our programs will run under the PC-DOS/MS-DOS operating system, version 3. 0 or later. The two best- known assemblers for the IBM-PC are MASM (Microsoft Assembler) and TASM (Borland Turbo Assembler).

Assembly language is a specific set of instructions for a particular computer system. It provides a direct correspondence between symbolic statements and machine language. An assembler is a program that translates a program written in assembly language into machine language, which may in turn be executed by the computer. Each type of computer has a different assembly language, because the computer's design influences the instructions it can execute.

Assembly language is called a low-level language because it is close to machine language in structure and function. We can say that each assembly language instruction corresponds to one machine instruction. In contrast, high-level languages such as Pascal[2], BASIC[3], FORTRAN[4], and COBOL[5]contain powerful statements that are translated into many machine instructions by a compiler.

Why Learn Assembly Language?

People learn assembly language for various reasons. The most obvious one may be to learn about the computer's architecture and operating system. You may want to learn more about the computer you work with and about the way languages generate machine code. Because of assembly language's close relationship to machine language, it is closely tied to the computer's hardware and software.

You may also want to learn assembly language for its utility. Certain types of programming are difficult or impossible to do in high-level language. For example, direct communication with the computer's operating system may be necessary. A high-speed color graphics program may have to be written using a minimum of memory space. A special program may be needed to interface a printer to a computer. Perhaps you will need to write a telecommunications program for the IBM-PC. Clearly, the list of assembly language applications is endless.

Often there is a need to remove restrictions. High-Ievel languages, out of necessity, impose rules about what is allowed in a program. For example, Pascal does not allow a character value to be assigned to an integer variable.[6] This makes good sense unless there is a specific need to do just that. An experienced programmer will find a way around this restriction or rule; nearly everything is left to the discretion of the programmer. The price for such freedom is the need to handle many details that would otherwise be taken care of by the programming language itself.

Assembly language's usefulness as a learning tool should not be underestimateD. By having such intimate contact with the operating system, assembly language programmers come to know instinctively is how the operating system works. This knowledge, coupled with knowledge of hardware and data storage, gives them a tremendous advantage when tackling unusual programming problems. They have a different viewpoint than programmers who know only high-level language.

Assembly Language Applications

At first, the assembly language programs presented later will seem almost trivial. Those new to assembly language often cannot believe the amount of work required to perform relatively simple tasks. The language requires a great deal of attention to detail. Most programmers don't write large application programs in assembly language. Instead, they write short, specific routines.

Often we write subroutines in assembly language and call them from high-level language programs. You can take advantage of the strengths of the high-level languages by using them to write applications. Then you can write assembly language subroutines to handle operations that are not available in the high-level language.

Suppose you are writing a business application program in COBOL for the IBM-PC. You then discover that you need to check the free space on the disk, create a subdirectory, write a file, and create overlapping windows, all from within the program. Assuming that your COBOL compiler does not do all this, you can then write assembly language subroutines to handle these tasks.

Let's use another example: you might have written a word processing program in C[7]or Pascal, but it performs slowly when.updating the screen display. If you knew how, you could write routines in assembly language to speed up critical parts of the application and allow the program to perform up to professional standards.

Large application programs written purely in assembly language, however, are beyond the scope of the person who has just finished this book. There are many people who write complete assembly language application program for the IBM-PC. The few programmers in this group are familiar with several machine architectures and assemblers, and have been programming professionally for at least several years. These fortunate individuals still had to start with a basic foundation, and this book is intended to help you acquire just that.

Above all, assembly language programmers must know their date, for without a detailed understanding of how each date type is stored(at the bit level) , one might make serious mistakes. High-Ievel programming languages intentionally shield programmers from implementation-specific details, in the name of convenience and source-code portability. Assembly language, in contrast, is highly machine-specific and imposes few, if any, restrictions.

Machine Language

Before we embark on a rather long and detailed study of assembly language, let's put it into perspective. A computer doesn't actually understand assembly language-it understands machine language. Machine language is a language made up of numbers, which can be interpreted by a computer's CPU. A CPU usually has a small program embedded directly in the chip, called microcode. The microcode interpreter translates machine instructions directly into hardware signals.

Machine language makes it possible for the CPU to perform ordinary tasks, such as moving numbers or performing arithmetiC. Each CPU has its own machine language; or, in the case of IBM-compatible computers, all CPUs that belong to the intel family (8088, 8086,80186,80286,80386,80486) share a common machine language. This is an example of a machine language instruction that moves 5 into the AL register: 10110000 00000101. The number is written in binary, a number system made up of only the digits 1 and 0. The first 8 bits are the operation code (op code), which identifies it as the instruction that moves an 8-bit number to the AL register. The second 8 bits are the operand[8]. The complete instruction moves the number 5 to a register called AL. Registers are high-speed storage locations inside the CPU. They are identified by two-letter names, such as AH, AL, or AX.

A CPU's instructions set is the set of machine instruciions that the CPU is able to execute. For the Intel CPU family, the instruction set is downward-compatible, meaning that an instruction that works on a lower-level processor will always work on a higher-level processor. For example, the MOV instruction[9]works on the 8088, and therefore must work on the 80286. But there are many advanced instructions for the 80286 that do not work on the 8088.

At one time, all programs were written in machine language. But it's easy to see that machine instructions are difficult for humans to read and write. This is why assemblers and compilers were created, which would convert more readable instructions, created by a text editor, into machine language. Instead of writing the machine instruction shown earlier, we would write the following in assembly language:

M o v ah, 5

Notes

[1]unlocks the secrets:揭开了……奥秘。

[2]Pascal(Philips Automatic Sequence Calculator):菲利浦自动顺序计算机语言。

[3]Basic(Beginner's All-purpose Symbolic Instruction Code):初学者通用符号指令码。

[4]Fortran(Formula Translator):公式翻译程序设计语言,FORTRAN语言。

[5]COBOL(Common Business-Oriented Language):面向商业的通用语言,COBOL语言。

[6]For example,Pascal does not allow a character value to be assigned to an integer variable.例如,Pascal语言就不允许给一个整变量赋予字符值。

[7]C:C语言,一种高级程序设计语言,由贝尔实验室开发成功。

[8]Operand:操作数;运算数。

[9]Mov instruction:数据传输指令。

Say whether the following is true or not:

点击查看答案
第10题
Read the following paragraphs and then answer four questions. (北外2011研) The idea behin

Read the following paragraphs and then answer four questions. (北外2011研) The idea behind the experiential vision of learning is that the use of the target language for communicative purposes is not only the goal of learning, but also a means of learning in its own right. This may clearly involve students using language which they may not have fully mastered, and contrasts with other more traditional approaches which emphasize part practice(i. e. , isolating parts of the whole for explicit study and learning)leading up in a more or less controlled manner to integrated language use for communicative purposes. An experiential approach to learning may therefore involve a degree of what Johnson(1982)refers to as an in at the deep end strategy. Simply throwing learners into wholly uncontrolled and undirected language use is, of course, as dubious a strategy with respect to language learning as doing the same with someone who is learning to swim. For this reason, considerable effort has been devoted by methodologists, material writers, and teachers in recent decades to the way in which two sets of factors can be combined. One is the basic insight that language use can serve a significant role in promoting learning, and the other is the acknowledgement that use of the language needs to be structured in a coherent and pedagogically manageable way. The experiential vision of learning has evolved in a variety of ways since the 1960s and is now encountered in a number of differing forms. Nevertheless, most experiential approaches to learning rest on five main principles which were developed in the earlier days of the communicative movement, even if certain receive more attention in one variant than in another. These principles are the following: message focus, holistic practice, the use of authentic materials, the use of communication strategies, and the use of collaborative modes of learning.(Tudor 2001: 79) An analytical view of learning posits that according explicit attention to the regularities of language and language use can play a positive role in learning. Each language manifests a number of structural regularities in areas such as grammar, lexis and phonology, and also with respect to the ways in which these elements are combined to communicate messages. The question, therefore, is not whether languages have structural regularities or not, but whether and in which way explicit attention to such regularities can facilitate the learning of the language. An analytical approach to learning rests on a more or less marked degree of part practice, i. e. , isolating parts of the whole for explicit study and learning, even if its ultimate goal remains the development of learners ability to put these parts together for integrated, holistic use. At least, two main considerations lend support to an analytical approach to learning. First, in terms of learning in general, the isolation and practice of sub-parts of a target skill is a fairly common phenomenon Second, explicit identification of regularities in a language has advantages which Johnson(1996: 83)refers to as generativity and economy. Mastering a regularity in a language gives learners access to the generative potential of this regularity in new circumstances Explicit presentation or discovery of the structural regularities of a language can therefore represent a short-cut to mastery of this language and support learners ability to manipulate these regularities for communicative purposes.(Tudor 2001: 86-7) (1)What are the differences between experiential and analytical modes of language learning? (2)What serves as the theoretical foundation for the experiential mode of language learning and what are its advantages and disadvantages? (3)What serves as the theoretical foundation for the analytical mode of language learning and what are its advantages and disadvantages? (4)How would you balance the two modes of learning in your teaching or learning of a foreign language?

点击查看答案
第11题
Is language ,like food,a basic human need without which a child at a critical period of li
fe can be starved and damaged? Judging from the drastic experiment of Frederick ? in the thirteenth century ,it may be. Hoping to discover what language a child would speak if he heard no mother tongue, he told the nurses to keep silent. All the infants died before the first year. But clearly there was more than lack of language here. What was missing was good mothering. Without good mothering, in the first year of life especially ,the capacity to survive is seriously affected. Today no such service lack exists as that ordered by Frederick. Nevertheless, some children are still backward in speaking. Most often the reason for this is that the mother is insensitive to the signals of the infant , whose brain is programmed to learn language rapidly. If these sensitive periods are neglected, the ideal time for acquiring skills passes and the might never be learned so easily again. A bird learns to sing and to fly rapidly at the right time , but the process is slow and hard once the critical stage has passed. Experts suggest that speed stages. are reached in a fixed sequence. and at a constantage, but there are cases where speech has started late in a child who eventually turns out to be of high IQ. At twelve weeks a baby smiles and makes vowel-like sounds. at twelvemonths he can speak simple words and understand simple commands. at eighteen month she has a vocabulary of three to fifty words. At three he knows about 1 000 words which he can put into sentences,and at four he knows his language differs from tbat of his parents in style. rather than grammar. Recent evidence suggests that an infant is born with the eapacity of speaking. What is special about man&39;s brain, compared with that of the monkey,is the complex system which enables a child to connect the sight and feel of,say,a toy- bear with the sound pattern toy-bear". And even more incredible is the young brains ability to pick out an order in language from the mixture of sound around him. to analyze , to combine and recombine theparts of a language in new ways. But speech has to be induced-and this depends on interaction between the mother andthe. child. where the mother recognizes the signals in the child&39;s babbling. grasping and smiling,and responds to them. lnsensitivity of the mother to these signals dull the interaction because the child gets discouraged and sends out only the obvious signals. Sensitivity to the childs non-verbal signals is essential to the growth and development of language.

What is tbe purpose of the drastic experiment of Frederick in tbe thirteenth century?

A.To discover what language a child would speak without bearing any human speech

B.To prove that a baby couldn’t live witbout his mother

C.To find out what role careful nursing would play in teaching a child to speak

D.To prove that a child would be damaged without learning a langunge

Aecording to the passnage the reason that children of the Frederick’s experment died is___.A.lack of language

B.lack of good mothering

C.without mothet tongue

D.the nurses’enteless nursing

Today some children are backward in speaking because___.A.they are incapable of learning langunge rapidly

B.tbey are faced with so mouch language at once

C.their mothers respond inadequstely to their attempts to speak

D.their brain is not programmed to learn language rapidly

请帮忙给出每个问题的正确答案和分析,谢谢!

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改