大工17秋《汇编语言程序设计》在线测试2满分答案

合集下载

汇编语言程序设计题目以及答案

汇编语言程序设计题目以及答案

汇编语言程序设计题目以及答案[P1] 汇编语言程序设计题目以及答案汇编语言是一种底层计算机语言,它直接使用机器指令来编写程序。

本文将介绍一些汇编语言程序设计的题目,并提供相应的答案。

通过这些题目和答案的学习,读者可以更好地理解和掌握汇编语言程序设计的基本概念和技巧。

[题目一] 计算两个数的和要求:编写汇编程序,计算两个给定的整数的和,并将结果存储在指定的内存位置中。

答案:```assemblysection .datanum1 dd 10 ; 第一个整数num2 dd 20 ; 第二个整数result dd 0 ; 结果section .textglobal _start_start:mov eax, [num1] ; 将num1值存入寄存器eaxadd eax, [num2] ; 将num2值与eax寄存器中的值相加mov [result], eax ; 将结果存储到result变量mov eax, 1 ; 准备执行系统调用mov ebx, 1 ; 文件描述符:标准输出mov ecx, result ; 输出的数据mov edx, 4 ; 数据长度int 0x80 ; 执行系统调用mov eax, 1 ; 准备执行系统调用xor ebx, ebx ; 正常退出int 0x80 ; 执行系统调用```[题目二] 字符串反转要求:编写汇编程序,将一个给定的字符串反转,并将结果存储在指定的内存位置中。

答案:```assemblysection .datastr db 'Hello', 0 ; 待反转的字符串section .bssreverse resb 6 ; 存储反转后的字符串section .textglobal _start_start:mov esi, str ; esi指向待反转的字符串mov edi, reverse ; edi指向存储反转结果的位置 mov ecx, 5 ; 字符串长度为5mov ebx, 1 ; ebx用于计数reverse_loop:mov al, [esi+ebx]mov [edi-ebx+5], alinc ebxloop reverse_loopmov byte [edi+5], 0 ; 在末尾添加字符串结束符 mov eax, 4 ; 准备执行系统调用mov ebx, 1 ; 文件描述符:标准输出mov ecx, reverse ; 输出的数据mov edx, 6 ; 数据长度int 0x80 ; 执行系统调用mov eax, 1 ; 准备执行系统调用xor ebx, ebx ; 正常退出int 0x80 ; 执行系统调用```[题目三] 求平均数要求:编写汇编程序,计算给定的一组整数的平均数,并将结果存储在指定的内存位置中。

东师汇编语言程序设计17春在线作业2免费答案

东师汇编语言程序设计17春在线作业2免费答案

一、单选题(共 10 道试题,共 30 分。

V 1. 循环程序中最重要的一部分是(A. 设置循环的初始状态B. 循环体C. 循环控制变量D. 以上三者都是标准答案:B2. 非法文件代号的错误代码是(A. 06B. 03C. 19D. 02标准答案:A3. 循环程序有几种结构方式(A. 3B. 2C. 1D. 0标准答案:B4. MOV DX,COUNT[BP][DI]的源操作数的寻址方式是(A. 变址寻址B. 基址寻址C. 直接寻址D. 基址变址寻址标准答案:D5. 调用一个子程序结束之后需返回应该用(指令。

A. CallB. iretC. retD. iret or ret标准答案:C6. 存储器的物理地址是由段地址和(组合而成的A. 寄存器地址B. 偏移地址C. 位移D. 存储器地址标准答案:B7. 将十六进制数FFH转换为十进制数是(A. 165B. 11111111C. 1515D. 255标准答案:D8. 如果一个文件被赋予“只读”属性,那么用户可以(A. 写文件B. 修改文件C. 读文件D. 读写文件标准答案:C9. 键盘中断调用16H的0号功能是将读入字符的ASCII码送入(A. AHB. ALC. BHD. BL标准答案:B10. DOS中断类型功能号位21表示(A. 功能调用B. 程序终止C. 终止地址D. 严重错误向量标准答案:A二、多选题(共 10 道试题,共 30 分。

V 1. CPU利用输入输出指令与外部设备交换什么信息(A. 控制信息B. 状态信息C. 数据信息D. 总线信息标准答案:ABCD2. CRAY PROC ① PUSH AX ② ADD AX,BX RET ③ ENDP CRY④上面程序哪个部分有错(A. ①B. ②C. ③D. ④标准答案:AD3. 下列(是关系操作符。

A. JMPB. NEC. JED. LT标准答案:BD4. 不影响条件码的指令有(A. 条件转移B. 串传送指令C. 乘法指令D. 除法指令标准答案:ABD5. I/O端口有哪几种(A. 数据端口B. 控制端口C. 状态端口D. 串行口标准答案:ABC6. 下列与比例因子有关的寻址方式有哪些(A. 相对寻址方式B. 比例变址寻址C. 基址比例变址寻址D. 寄存器寻址标准答案:BC7. 对于16位操作数,寄存器可以是(A. axB. alC. bxD. bp标准答案:ACD8. 计算机软件分为(类。

大工17秋《专业英语(计算机英语)》在线测试123满分

大工17秋《专业英语(计算机英语)》在线测试123满分

⼤⼯17秋《专业英语(计算机英语)》在线测试123满分⼤⼯17秋《专业英语(计算机英语)》在线测试1需要QQ2959415429 微信 open4511⼀、单选题 (共 20 道试题,共 80 分)1.(), difference between the lowest and highest frequencies transmitted in a particular channel or system.A.AmplitudeB.BandwidthC.Bridgework2.( ) also called a Personal computer or PC, defines a computer, which is designed for general use by a single person. It can perform all of its inputting, processing, outputting, and storage activities by itself.A.MicrocomputerB.SupercomputerC.MainframeD.Minicomputer3.( ) programs are used to recover deleted or damaged(corrupted) files.A.Data recoveryB.System callC.System crashD.System software4.( ):In encryption, a two-key system in which the key used to lock data is made public, so everyone can "lock".A second private key is used to unlock or decrypt.A.Asymmetric keyB.Symmetric keyC.Coputer virusD.Digital signatures5.( ) refers to the physical equipment that can perform the basic functions contained within the data processing cycle.A.SoftwareB.HardwareC.MemoryD.CPU6.Which one is a word processing and text editing tool?A.PhotoshopB.WordC.Extreme 3DD.Premiere7.( ) are the peripherals that allow users to enter data, programs, commands, and user responses into a computer and transform them into a suitable form for processing.A.RAMB.ROMC.Input devicesD.Memory8.The first computers used () for circuitry and magnetic drums for memory, and were often enormous, taking up entire rooms.A.vacuum tubesB.transistorsC.integrated circuitsD.microprocessors9.() performs arithmetic, comparison, and logic operations. It is one part of the CPU.A.RAMB.ROMC.CPUD.ALU10.( )(Pravate Key),in encryption, one key is used to both lock and unlock data. Compare with public key.A.Asymmetric keyB.Symmetric keyC.Coputer virusD.Digital signatures11.Processing is done inside the computer in an area called the ( ).A.input devicesB.output devicesC.system unitD.central processing unit12.A ( ) can be written to once. After that they can be read many times without deterioration but cannot be written on or erased.A.CD-RB.CD-ROMC.CD-RWD.DVD13.( ) provides reliable, full-duplex connections and reliable service by ensuring that data is resubmitted when transmission results in an error.A.TCPB.ARPC.UDPD.IP14.( ) is an outline of the logic of the program you will write.A.Program flowchartsB.Logic structuresC.PseudocodeD.Design15.Linux is an operating system similar to ( ) that is becoming more and more popular.A.Windows 98B.Windows 2000C.Windows XPD.Unix16.( ) shorts for Waveform. It is the audio file format of Microsoft, and it is the waveform sound file format in Windows defined by Microsoft. It is the most common file format of digital sound derived from sampling.A.MIDIB.WAVC.RAD.Audio17.In a ( ) network, all microcomputers and other communication devices are connected to a continuous loop.A.busB.starC.treeD.ring18.() have more storage capacity than diskettes and also offer faster access to the data they hold.A.Hard disksB.Optical disksC.Zip diskD.CD19.In 1947 three scientists, John Bardeen, William Shockley, and Walter Brattain working at( )invented the transistor computer.A.BaiduB.MicrosoftC.AT&T's Bell LabsD.Yahoo20.( ), to send files from a user's microcomputer to another computer. Compare with download.A.UploadB.TelecommutingC.HypertextD.Online service⼆、判断题 (共 10 道试题,共 20 分)1.Mouse belongs to output.()A.错误B.正确2.CPU stands for Central Processing Unit. It performs the system's calculating and processing.A.错误B.正确N, communications network that covers a wide geographical area, such as a state or a country.( )A.错误B.正确4.WWW stands for "World Wide Web"; it is the large global collection of Internet servers which support hypertext documents coded in HTML, and transferred via HTTP.A.错误B.正确5.The transistor computer did not last as long as the vacuum tube computer lasted, but it was less important in the advancement of computer technology.A.错误B.正确6.Object Oriented Programming(OOP) is a programming method that combines data and the instructions for processing that data into a self-sufficient "object" that can be used in other programs.()A.错误B.正确7.Windows versions before Windows 95 rely on DOS as the operating system.()A.错误B.正确 is an E-mail address.A.错误B.正确9.An online payment is a monetary transcation from the customer to the vendor over the Internet by credit card, digital cash, e-wallets, and smart cards.A.错误B.正确10.View shortcut menus by right-clicking with the mouse.()A.错误B.正确⼤⼯17秋《专业英语(计算机英语)》在线测试2⼀、单选题 (共 20 道试题,共 80 分)1.The two components of the CPU are connected by a kind of electronic roadway called a(an) ().BB.busC.portD.keyboard2.The operation system ( ).A.manages the disks and filesB.manages the computer's resourcesC.manages the computer's memoryD.All of the above3.() ,also known as service programs, perform specific tasks related to managing computer resources.A.Utilities programsB.System softwareC.Operating systemD.none of the above4.():In encryption, a two-key system in which the key used to lock data is made public, so everyone can "lock".A second private key is used to unlock or decrypt.A.Asymmetric keyB.Symmetric keyC.Coputer virusD.Digital signatures5.A () port is an interface that connects devices by transferring more than one bit at a time.A.serialB.parallelBD.none of the above6.( ), software used in corporate networks (intranets and extranets) to prevent unauthorized people from accessing the network.A.FirewallB.ModemC.HypertextD.TCP7.The common input devices are the ()and the keyboard.A.printerB.speakerC.monitorD.mouse8.A ( ) channel allows simultaneous message exchange in both directions.It really consists of two simplex channels, a forward channel and a reverse channel,linking the same points.A.half-duplexB.full-duplexC.simplexD.none of the above9.(), the process of compressing a file such that,after being compressed and decompressed, it matches its original format bit for bit.A.Lossy compressionB.Lossless compressionC.BitmapD.Vector image10.( ) have more storage capacity than diskettes and also offer faster access to the data they hold.A.Hard disksB.Optical disksC.Zip diskD.CD11.The ( ) is automatically loaded into RAM soon after you turn on, or "boot" the computer.A.application softwareB.operating softwareC.shellpiler12.The ( ) is a worldwide system of computer networks in which any one computer can get information from/or talk to any other connected computer using the TCP/IP protocols.A.InternetB.WWWC.ARPANETD.ISP13.A()is a cable which is capable of carrying signals representing data from one place to another.A.busB.byteC.bitD.disk14.A backup program ( ).A.makes a copy of files you selectB.returns you to the previous programC.undoes the last change you madeD.None of the above15.A ( ) is an electronic device that operates under the control of instructions stored in its own memory, which can according to specified rules, produce results,and store the results for future use.puterB.CPUC.input deviceD.output device16.The fourth generation computers can be characterized by both the jump to monolithic integrated circuits and the invention of( ).A.microprocessorB.transistorC.chipD.circuit17.We abbreviate Virtual Private Networks to ( ).A.NICB.VPNC.HUBD.MODEM18.The technical development that marks the third generation of computers is the use of () in computers.A.vacuum tubesB.integrated circuitsC.transistorsD.virtual memory19.( ), interface that enables dissimilar networks to communicate with one another.A.GatewayB.BridgeC.BandwidthD.none of the above20.ERP is ( ).A.Enterprise resource planning softwareB.Enterprise Application IntegrationC.Electronic Application IntegrationD.None of the above.⼆、判断题 (共 10 道试题,共 20 分)1.Output devices are peripherals that allow users to enter data, programs, commands, and user responses into a computer and transform them into a suitable form for processing.( )A.错误B.正确2.CPU stands for Central Processing Unit. It performs the system's calculating and processing.A.错误B.正确3.An ISP is a company that provides access to the Internet.A.错误B.正确4.Memory also called main memory, primary storage, RAM, is an internal storage area in the computer, where data and programs designed for immediate processing are held.A.错误B.正确5.Device drivers are specialized programs designed to allow particular input or output devices to communicate with the rest of the computer system.( )A.错误B.正确6.A compilier is software that looks at an entire high-level program before translating it into machine language.A.错误B.正确7.A location in RAM memory is accessed by its address.()A.错误B.正确8.The fourth generation computers can be characterized by both the jump to monolithic integrated circuits and the invention of microprocessor.()A.错误B.正确9.Software also called a program, is the series of computer language coded instructions that tells the computer how to perform tasks.A.错误B.正确10.Java is a compiled object-oriented programming language used to write applets.A.错误B.正确⼤⼯17秋《专业英语(计算机英语)》在线测试3-0012⼀、单选题 (共 20 道试题,共 80 分)1.An ( ) is a monetary transcation from the customer to the vendor over the Internet by credit card, digital cash, e-wallets, and smart cards.A.Electronic CommerceB.Credit cardC.Online paymentD.none of the above2.The technical development that marks the third generation of computers is the use of () in computers.A.vacuum tubesB.integrated circuitsC.transistorsD.virtual memory3.( ), the process of changing plaintext data into enciphered text through an algorithm.B.EncryptionC.AuthenticateD.Hacker4.( ), also called communications network; a system of interconnected computers, telephones, or other communications devices.A.ProtocolB.NodeC.Packetwork5.Processing is done inside the computer in an area called the ( ).A.input devicesB.output devicesC.system unitD.central processing unit6.A (),also called a silicon chip or semiconductor,is a small piece of silicon that contains thousands of microminiature electronic circuit components, mainly transistors.A.busB.chipC.portD.keyboard7.() is the electronic device that interprets and carries out the basic instructions that operate the computer.A.ProcessorB.hardwareC.memoryD.CPU8.( ) also called a Personal computer or PC, defines a computer, which is designed for general use by a single person. It can perform all of its inputting, processing, outputting, and storage activities by itself.A.MicrocomputerB.SupercomputerC.MainframeD.Minicomputer9.The process of translating instructions into commands is called ( ).A.decodingB.registerC.digitalD.port10.A ()is a communication device that enables computers to communicate via telephone lines or cable.A.modemB.hardwareC.software11.( ) is a way of transferring files over the Internet from one computer to another.A.InternetB.FTPC.E-mailD.ISP12.()(Reduced Instruction Set Computer) refers to processors that support fewer instructions than CISC chips. The reduced number of instructions enables them to execute instructions faster.A.CISCB.RISCC.RAMD.ROM13.The first computers used () for circuitry and magnetic drums for memory, and were often enormous, taking up entire rooms.A.vacuum tubesB.transistorsC.integrated circuitsD.microprocessors14.() (Joint Photographic Experts Group), standard for compressing continuous-tone still pictures. It does not handle black-and-white images, nor does it handle motion picture compression.A.JPEGB.MPEGC.MIDID.none of the above15.() controls how you enter data or instructions and how information is displayed on the computer screen.er interfacenguage translatorsC.Utilities programsD.System software16.The standard protocol used for sending Internet e-mail is called ( ). It works in conjunction with POP servers.A.SMTPB.WWWC.TCPD.UDP17.The common input devices are the ( ) and the ( ).A.keyboard,printerB.keyboard,microphoneC.mouse,monitorD.mouse,keyboard18.() will provoke radical changes in the teaching process during the coming decades, particularly as smart students discover they can go beyond the limits of traditional teaching methods.A.AnimationB.WAVC.MultimediaD.none of the above19.( ) is an outline of the logic of the program you will write.A.Program flowchartsB.Logic structuresC.PseudocodeD.Design20.A ( ) converts the programmer's procedural language program, called the source code, into a machine language code, called the object code.pilerB.AssemblerC.InterpreterD.Code generator⼆、判断题 (共 10 道试题,共 20 分)1.A bus is a cable which is capable of carrying signals representing data from one place to another.( )A.错误B.正确2.Application software consists of programs that perform specific tasks for users.( )A.错误B.正确3.The fourth generation computers can be characterized by both the jump to monolithic integrated circuits and the invention of microprocessor.()A.错误B.正确4.The ENIAC used thousands of vacuum tubes,which took up a lot of space and gave off a great deal of heat just like light bulbs do.A.错误B.正确5.Asymmetric key(Public Key),in encryption, one key is used to both lock and unlock data.( )A.错误B.正确6.CPU is the soul of a computer.A.错误B.正确7.View shortcut menus by right-clicking with the mouse.()A.错误B.正确8.ERP is Enterprise resource planning software.A.错误B.正确9.Device drivers are specialized programs designed to allow particular input or output devices to communicate with the rest of the computer system.( )A.错误B.正确10.A leased line is a line rented from a telephone company for the exclusive use of a customer to access Internet.( )A.错误B.正确。

大工16秋《汇编语言程序设计》在线测试2满分答案

大工16秋《汇编语言程序设计》在线测试2满分答案
A.错误
B.正确
正确答案:B
13.使用数值回送操作符TYPE返回DD的值为4。
A.错误
B.正确
正确答案:B
14.算术操作符中MOD是乘除运算符。
A.错误
B.正确
正确答案:A
15.使用数值回送操作符TYPE返回DF的值为18。
A.错误
B.正确
正确答案:A
16.逻辑与移位操作符:AND,OR,XOR,NOT,SHL,SHR。
A. 100
B. 0
C. 13
D. 20
正确答案:A
7.在数据定义ABC DB 100 DUP(?)后,存储情况共占有()个字节。
A. 15
B. 6
C. 7
D. 100
正确答案:D
8.在数据定义ARRAY2 DB 100 DUP(0,2 DUP(1,2),0,3)后,存储情况中数据序列00,01,02,01,02,00,03总共存储()次。
A. 10
B. 20
C. 30
D. 5
正确答案:C
3.在数据定义ABC DB 100 DUP(0,1,2,?)后,汇编后存储情况自上而下为00,01,02,-,(),01,02,-。
A. 00
B. 01
C. 02
D. -
正确答案:A
4.在数据定义ARRAY2 DB 100 DUP(0,2 DUP(1,2),0,3)后,存储情况共占有()个字节。
A.错误
B.正确
正确答案:B
17.逻辑操作符中0 OR 1=1。
A.错误
B.正确
正确答案:B
18.逻辑操作符中0 AND 1=1。
A.错误
B.正确
正确答案:A

大工17秋《大学英语4》在线测试2满分答案

大工17秋《大学英语4》在线测试2满分答案

大工17秋《大学英语4》在线测试2总分:100分100分一、单选题共20题,80分14分The soldiers rushed toward the wall to find ________ from the bullets.•A prevent•B safe•C shroud•shelter学生答案:D得分:4分24分He was very busy yesterday; otherwise, he ()to the meeting.•A would come•B came•would have come•D will come学生答案:C得分:4分34分He is a stern father, and sometimes too uncompromising to _______ the children's mistakes•B excusing•C interrupt•D interrupting学生答案:A得分:4分44分I was told that the train was ________, and that the next train will be at 12:00. •canceled•B abridged•C poised•D upset学生答案:A得分:4分54分I'm willing to __________ that I have hurt her, but that is not my real intention. •A conceding•B give up•C give in•concede学生答案:D得分:4分64分You should take the medicine after you read the __________.•A lines•instructions•D suggestions学生答案:C得分:4分74分Mary called and asked her husband()home at once , because she locked their daughter i the home .•A to leave•B leave•C go•to go学生答案:D得分:4分84分He promised()his old friend during his stay in Tianjin.•A see•B seeing•C saw•to see学生答案:D得分:4分94分His doctor suggested that he ()a short trip abroad.•A will take•B would take•take•D took学生答案:C得分:4分104分I left very early last night, but I wish I ()so early.•A didn’t leave•hadn’t left•C haven’t left•D couldn’t leave学生答案:B得分:4分114分I had to buy __________ these books because I don't know which one was the best. •A both•B some•C neither•all学生答案:D得分:4分124分Jane's dress is similar in design ______ her sister’s.•A like•B with•to•D as学生答案:C得分:4分134分The problem is not ______ so easy as you think. It’s far from being settled.•A hardly•B almost•nearly•D scarcely学生答案:C得分:4分144分We've missed the last bus, I'm afraid we have no _________ but to take a taxi. •A way•choice•C possibility•D selection学生答案:B得分:4分154分How can he _____ if he is not _____?•A listen ... hearing•hear ... listening•C be listening ... heard•D be hearing ... listened to学生答案:B得分:4分164分He is a(n) ______ basketball player, for he makes money by playing the games.•A amateur•B part-time•C spare-time•professional学生答案:D得分:4分174分The father repeatedly __________ with the police officer to set his daughter free, holdin firm to his belief that she was innocent.•A argued•B protested•C angered•pleaded学生答案:D得分:4分184分By the time he arrives in Beijing, we _____ here for two days.•A have been staying•B have stayed•C shall stay•will have stayed学生答案:D得分:4分194分Since 1999, the number of foreign students at German universities ________ from 113,00 to almost 200,000.•has increased•B ave increased•C are increased•D was increased学生答案:A得分:4分204分Tons of food was laid out on the big table and crates of beer were ________ ready for consumption.•A reserved•B expended•C generated•stacked学生答案:D得分:4分二、判断题共10题,20分12分He suggested taking the children to the zoo.•A错误•正确学生答案:B得分:2分22分The little boy pretended to asleep when his mother came in.•错误•B正确学生答案:A得分:2分32分The Roosevelts loved the pets so much that some pets were named after their relatives •A错误•正确学生答案:B得分:2分42分He said softly that he would rather stay at home than going out for a walk.•错误•B正确学生答案:A得分:2分52分She was being interrupted by either periods of sickness nor frequent visitors. •错误•B正确学生答案:A得分:2分62分Children, she believes, are supposed to answer politely when spoke to by an adult.•错误•B正确学生答案:A得分:2分72分Cliff's and Al's car broke down again, but luckily they knew how to fix it.•错误•B正确学生答案:A得分:2分82分It is said that the film stars is going to marry with a very rich businessman who wa born in Hong Kong.•错误•B正确学生答案:A得分:2分92分Contrary to the belief of some doctors, even very old and sick people want to know th details of their illness so that they can prepare for death in their own special way.•A错误•正确学生答案:B得分:2分102分The children decide to clean their school yard this Friday afternoon. •A错误•正确学生答案:B得分:2分单选题(20题,80分)1234567891011121314151617181920判断题(10题,20分)12345678910。

大工17秋《汇编语言程序设计》在线测试2 100分答案

大工17秋《汇编语言程序设计》在线测试2 100分答案

大工17秋《汇编语言程序设计》在线测试2试卷总分:100得分:100一、单选题(共10道试题,共40分)1.汇编语言源程序中,每个语句由四项组成,如语句要完成一定功能,那么该语句中不可省略的项是()。

A.名字项B.操作数项C.注释项D.以上都不对正确答案:B2.汇编语言语句格式中对名字项的规定如下,请找出其中错误的说法()。

A.名字的第一个字符可以是大写英文字母B.名字的第一个字符可以是字母、数字、@、_C.名字的有效长度≤31个字符D.一般来说,名字项可以是标号正确答案:B3.以下五个指令(1)MOVAL,55H(2)MOVCL,2(3)ROLAL,CL(4)ORAL,1(5)RCLAL,CL顺序执行完后,(AL)=多少?A.54HB.53HC.55HD.52H正确答案:A4.以下五个指令(1)MOVAL,55H(2)MOVCL,2(3)ROLAL,CL(4)ORAL,1(5)RCLAL,CL顺序执行完后,(CL)=多少?A.2B.3C.4D.5正确答案:A5.以下五个指令(1)MOVAL,55H(2)MOVCL,2(3)ROLAL,CL(4)ORAL,1(5)RCLAL,CL顺序执行完后,CF=多少?A.1B.2C.3D.0正确答案:A6.如果(AL)=01111111B,执行INCAL指令后,CF=()。

A.1B.0C.2D.和执行INCAL指令之前的取值保持一致正确答案:D7.如果(SP)=30H,执行PUSHBX指令后,(SP)=()。

A.28HB.2EHC.32HD.31H正确答案:B8.如果当前(BL)=57H,执行指令ADDBL,0F0H后,OF标志位的取值为()。

A.1B.0C.不确定D.2正确答案:B9.在DEBUG中,T命令的功能是()。

A.观察某内存单元的当前内容B.连续运行被调试的程序C.单步执行下一条指令D.修改指定寄存器的内容正确答案:C10.如果数据段中一个内存单元对应的物理地址为2F724H,(DS)=2F00H,那么使用DS段寄存器指明该单元的段基值时,需要使用哪一个偏移量才能正确访问该单元()。

[汇编语言程序设计]试题及答案合集

[汇编语言程序设计]试题及答案合集

汇编语言程序设计试题及答案1.对于有符号的数来说,下列哪个值最大(D)A:0F8HB:11010011BC:82D:123Q2.下列有关汇编语言中标号的命名规则中,错误的是(D)A:通常由字母打头的字符、数字串组成B:标号长度不能超过31个字符C:?和$不能单独作为标号D:.号不可位于标号首3.8088/8086存储器分段,每个段不超过(D)A.64K个字B.32K个字节C.1兆个字节D.64K个字节4.寻址指令MOV CX,[BX+DI+20]使用的是哪一种寻址方式(B)A:寄存器寻址B:相对基址变址寻址C:变址寻址D:基址变址寻址5.若AX=-15要得到AX=15应执行的指令是(A)A.NEG AXB.NOT AXC.INC AXD.DEC AX6.8086/8088系统执行传送指令MOV时(A)A.不影响标志位B.影响DF方向标志C.影响SF符号标志D.影响CF进位标志7.若要求一个操作数中的若干位维持不变,若干位置“1”,可以使用(B)A:NOT B:OR C:AND D:XOR8.下列指令中段默认为堆栈段的是(C)A.MOV AX,[BX+SI+10]B.ADD AX,ES:[SI]C.SUB[BX],[BP][DI]D.MOV DX,[1000H]9.关于8086/8088微机系列,下列说法哪个是正确的(D)A:一个存储单元由16个二进制位组成,简称字。

B:当存储一个字数据时,低字节放高地址位,高字节放低地址位。

C:在内存空间中,可以无限分配段,且段的大小不受限制。

D:段与段之间可以邻接,也可以重叠。

10.下列关于堆栈的说法,错误的是(D)A:以“先入后出”为原则。

B:栈区最高地址单元的前一个单元为栈底。

C:运行中SP寄存器动态跟踪栈顶位置。

D:压栈和弹出都是以字节为单位。

11.表示过程定义结束的伪指令是(A)A.ENDPB.ENDSC.ENDD.ENDM12.BUF1DB3DUP(0,2DUP(1,2),3)COUNT EQU$-BUF1符号COUNT等价的值是(B)A.6B.18C.16D.913.下列标志位中,可以用来判断计算结果正负的是(B)A:PF B:SF C:DFD:OF14.下列指令正确的是(CD)A.MOV[100H],[BX]B.MOV DS,ESC.ADD V[BX],CXD.MOV AX,34H15.下列哪个寄存器是属于指针寄存器(C)A:SI B:DX C:SPD:ES二、填空题(每小题4分,共20分)1.下列程序段求数组FLD的平均值,结果在AL中。

东大17秋学期《汇编语言程序设计》在线作业3免费答案

东大17秋学期《汇编语言程序设计》在线作业3免费答案

东大17秋学期《汇编语言程序设计》在线作业3免费答案17秋18春《汇编语言程序设计》在线作业3一、单选题(共 10 道试题,共 50 分。

)1. 已知AL,BX为无符号数,计算AL*BX的乘积,用下述程序段( )。

A. MUL BXB. "IMUL BXC. XOR AH,AH MUL BX "D. "CBW MUL BX " MOV AH,0正确答案:C2. 若SP=100H,当执行完指令INT 21H后,SP的值为 ( )A. 0096HB. 0094HC. 00FCHD. 00FAH正确答案:D3. 已知AL=68H,BL=5AH,指令ADD AL,BL执行后,OF和CF的值分别为()。

A. 0,0B. "0,1"C. "1,0"D. "1,1"正确答案:C4. 1MB为( )。

A. 210BB. 216BC. 220BD. 1000KB正确答案:C5. 已知AL=47H, 执行AAM后, AH、AL的内容应为()。

A. 07H、01HB. 04H、07HC. 07H、04HD. 01H、07H正确答案:A6. 循环控制指令隐含指定哪个寄存器作为循环计数器。

( )A. CLB. CXC. ALD. AX正确答案:B7. 当执行完下列指令序列后,标志位PF和SF的值为 ( )。

MOV AH,85H XOR AH,32HA. 0,0B. 0,1C. 1,0D. 1,1正确答案:D8. 确定下列那些数据在汇编语言中是非法的()。

A. 19BH+25DB. 25+ALC. 108-102QD. 101B*0ABH正确答案:B9. 确定下列那些数据在汇编语言中是非法的()。

A. 19BHB. 25DC. 108QD. 101B正确答案:C10. 已知RET指令是属性为NEAR子程序中的返回指令, 执行RET 前SP=100H,?执行后SP的内容为( )A. 102HB. 100HC. 0FEHD. 104H正确答案:A17秋18春《汇编语言程序设计》在线作业3二、判断题(共 10 道试题,共 50 分。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

大工17秋《汇编语言程序设计》在线测试2
试卷总分:100得分:100
一、单选题(共10道试题,共40分)
1.汇编语言源程序中,每个语句由四项组成,如语句要完成一定功能,那么该语句中不可省略的项是()。

A.名字项
B.操作数项
C.注释项
D.以上都不对
正确答案:B
2.汇编语言语句格式中对名字项的规定如下,请找出其中错误的说法()。

A.名字的第一个字符可以是大写英文字母
B.名字的第一个字符可以是字母、数字、@、_
C.名字的有效长度≤31个字符
D.一般来说,名字项可以是标号
正确答案:B
3.以下五个指令(1)MOVAL,55H(2)MOVCL,2(3)ROLAL,CL(4)ORAL,1(5)RCLAL,CL顺序执行完后,(AL)=多少?
A.54H
B.53H
C.55H
D.52H
正确答案:A
4.以下五个指令(1)MOVAL,55H(2)MOVCL,2(3)ROLAL,CL(4)ORAL,1(5)RCLAL,CL顺序执行完后,(CL)=多少?
A.2
B.3
C.4
D.5
正确答案:A
5.以下五个指令(1)MOVAL,55H(2)MOVCL,2(3)ROLAL,CL(4)ORAL,1(5)RCLAL,CL顺序执行完后,CF=多少?
A.1
B.2
C.3
D.0。

相关文档
最新文档