MCQ 1,2 PDF
Document Details
Uploaded by TopNotchTonalism5161
Delta University Egypt
Tags
Summary
This document contains multiple choice questions (MCQs) about 8086 microprocessor and assembly language. The questions cover various topics, including instruction execution, registers, memory, and other key concepts.
Full Transcript
Certainly, I can help convert the information you provided into multiple-choice questions (MCQ). Here are some questions based on the content: 1. **What is the purpose of the execution unit (EU) in the 8086 microprocessor? a) To facilitate communication between the EU and memory or I/O devices....
Certainly, I can help convert the information you provided into multiple-choice questions (MCQ). Here are some questions based on the content: 1. **What is the purpose of the execution unit (EU) in the 8086 microprocessor? a) To facilitate communication between the EU and memory or I/O devices. b) To execute instructions, containing the ALU and registers. c) To hold the address of memory locations. d) To prefetch instructions. 2. **Which of the following registers is used for I/O operations and most arithmetic operations in the 8086?** a) CX b) DX c) AX d) BX 3. **What is the role of the Flags register in the 8086 microprocessor? a) Store addresses of instructions and data. b) Reflect the result of a computation, including status and control flags. c) Point memory locations in the data segment. d) Facilitate communication between the EU and memory. 4. **Which segment register in the 8086 microprocessor is used for storing code instructions? a) SS b) DS c) CS d) ES 5. **What does the Stack Pointer (SP) register in the 8086 microprocessor primarily point to? a) Memory locations in the data segment. b) Memory locations in the extra segment. c) Memory locations in the stack segment. d) Memory locations in the code segment. 6. Which register is used as a counter in loop operations? - A) AX - B) BX - C) CX - D) DX 7. In the 8086 microprocessor, what is the role of the Stack Pointer (SP) register? - A) Points to memory locations in the data segment. - B) Accesses data on the stack. - C) Points to memory locations in the extra segment. - D) Contains the offset for instructions. 8. What are the main components of the 8086 microprocessor? a) Arithmetic Logic Unit (ALU) and Flags Register b) Execution Unit (EU) and Bus Interface Unit (BIU) c) Data Registers and Segment Registers d) Stack Pointer and Base Pointer 9. Which unit is responsible for executing instructions in the 8086 microprocessor? a) Arithmetic Logic Unit (ALU) b) Bus Interface Unit (BIU) c) Execution Unit (EU) d) Flags Register 10.How many general data registers are there in the 8086 microprocessor? a) Six b) Eight c) Four d) Twelve 11. What knowledge is required to write a program in assembly language? a) Understanding memory devices b) Knowing the clock speed of the microprocessor c) Knowledge about CPU components and instruction set d) Familiarity with input/output devices 12.In a microcomputer system, what acts as a master timer for the system? a) Memory b) Clock circuit c) Interface adapter d) Microprocessor 13. What does a basic microcomputer system consist of, in addition to the microprocessor? a) Only memory devices b) Memory, interface adapter, and clock circuit c) Microprocessor and clock circuit d) Microprocessor, clock circuit, and input/output devices 14. What is the main purpose of the interface adapter in a microcomputer? a) Connect the microprocessor with memory b) Act as a master timer for the system c) Store information in memory devices d) Connect the microcomputer with the outside world Certainly! Here's a set of multiple-choice questions (MCQs) based on the provided information about instruction execution: 15.What are the two main parts of any machine instruction? a) Fetch cycle and Execute cycle b) Opcode and Operands c) Memory address and Data d) Microprocessor and Memory 16.During which phase does the microprocessor determine the type of operation to be performed in a machine instruction?** a) Fetch cycle b) Decode cycle c) Execute cycle d) Memory cycle 17.What is the purpose of the Fetch cycle in instruction execution? a) Perform the operation on the data b) Store the result in memory c) Retrieve data from memory d) Fetch an instruction from memory 18.When does the microprocessor retrieve data from memory during the instruction execution process? a) Fetch cycle b) Decode cycle c) Execute cycle d) All of the above 19. What does the Execute cycle involve in the instruction execution process? a) Fetching an instruction from memory b) Decoding the instruction c) Retrieving data from memory and performing the operation d) Storing the result in memory 20.What are the two main parts of any machine instruction in assembly language? a) Operation and Operand b) Opcode and Operands c) Fetch cycle and Execute cycle d) Data and Memory 21. Which field of an assembly language statement is used by the programmer to provide comments about what the statement does? a) Name Field b) Operation Field c) Operands Field d) Comment Field 22.In an assembly language instruction, what does the operand field specify? a) The type of operation to be performed b) The memory address of the data c) The data to be acted on by the operation d) The instruction label 23.What is the purpose of the XCHG instruction in assembly language? a) Move data from one register to another b) Exchange the contents of two registers or memory locations c) Negate the contents of a register or memory location d) Add two operands 24.Which instruction is used to add 1 to a register or memory location in assembly language? a) ADD b) SUB c) INC d) DEC 25. How is a binary number expressed in assembly language, and what suffix is used? a) As a bit string, followed by "D" b) As a bit string, followed by "B" c) As a string of decimal digits, followed by "H" d) As a string of decimal digits, followed by "B" 26.How is a hex number expressed in assembly language, and what suffix is used? a) As a bit string, followed by "D" b) As a bit string, followed by "B" c) As a string of decimal digits, followed by "H" d) As a string of decimal digits, followed by "B" 27. What assembler directive is used to define a byte variable in assembly language? a) DD b) DB c) DW d) BYTE 28.What does the "?" symbol represent in the declaration "ALPHA2 DB ?" in assembly language? a) It means the variable is uninitialized b) It represents the value 0 c) It indicates a placeholder for a character d) It signifies a byte variable 29.Which assembler directive is used to define a word variable in assembly language? a) DD b) DB c) DW d) WORD 30. In an assembly language program, what are the three main parts that occupy memory segments? a) Registers, instructions, and data b) Code, data, and stack c) CPU, memory, and I/O devices d) Opcode, operands, and comments 31.What is the purpose of the.MODEL directive in assembly language? a) To define variables b) To specify the size of the stack c) To determine the memory model for the program d) To organize code into procedures 32. Which memory model allows code to be in one segment and data in more than one segment, with no array larger than 64kb? a) SMALL b) MEDIUM c) COMPACT d) LARGE 33.In the LARGE memory model, what is the restriction related to arrays? a) No arrays allowed b) Arrays must be smaller than 32kb c) Arrays may be larger than 64kb d) Arrays must be stored in separate segments 34. Where should the.MODEL directive be placed in an assembly language program? a) At the end of the program b) Before any segment definition c) After the data segment d) Within a procedure Certainly! Here's a set of multiple-choice questions (MCQs) based on the provided information about MOV, XCHG, INC, DEC, ADD, and SUB instructions in assembly language: 35. What does the MOV instruction do in assembly language? a) Adds two operands b) Exchanges the contents of registers c) Moves data from one location to another d) Subtracts two operands 36.Which instruction is used to exchange the contents of two registers or a register and a memory location? a) INC b) DEC c) ADD d) XCHG 37.What is the purpose of the INC instruction in assembly language? a) Adds 1 to a register or memory location b) Subtracts 1 from a register or memory location c) Exchanges the contents of two registers d) Moves data from one location to another 38. Which of the following instructions is used for subtraction in assembly language? a) ADD b) XCHG c) SUB d) INC 39. What is the result of the following assembly language instruction: `ADD AL, 07h`? a) AL = 07h b) AL = 0Fh c) AL = 00h and AH = 00h d) AL = 00h and AH = 01h 40. Which instruction is used to negate the contents of the destination by replacing it with its two's complement? a) XCHG b) ADD c) NEG d) INC 41.What does the NEG instruction do in assembly language? a) Adds the contents of the destination to its two's complement b) Subtracts the contents of the destination from its two's complement c) Negates the contents of the destination by replacing it with its two's complement d) Performs bitwise negation on the destination