Summary

This is a computer science quiz on microprocessors and logic gates. The quiz contains multiple-choice questions and answers about different aspects of the subject. The quiz is suitable for undergraduate students studying computer science.

Full Transcript

COE121-C1 Quiz#1 I. Multiple Choice 1. What element is responsible for monitoring the bus operation? A. Bus snooping B. Watchdog monitor C. Instruction register ANSWER: B 2. Pointing to the address of the next instruction to fetched and execute...

COE121-C1 Quiz#1 I. Multiple Choice 1. What element is responsible for monitoring the bus operation? A. Bus snooping B. Watchdog monitor C. Instruction register ANSWER: B 2. Pointing to the address of the next instruction to fetched and executed is the responsibility of this register. A. Program counter B. Data segment C. Direction flag ANSWER: A 3. It is a signal that indicates the need of attention, perform special task and resume the pre- empted operation. A. Interrupts B. Commands C. Operands ANSWER: A 4. During the flow of string operations, this flag is affected. A. Sign flag B. Carry flag C. Direction flag ANSWER: C 5. This instruction allows you to transfer the data or address to a register or variable. A. ADD instruction B. SUB instruction C. The MOV instruction ANSWER: C 6. Pushing Flags onto stack is the use of this instruction. A. PUSHA B. PUSHF C. PUSHD ANSWER: B 7. What data type has a size of 2bytes or 16bits? A. Doubleword B. Word C. Quadword ANSWER: B 8. Data type that has a size of 4bytes or 32bits A. Doubleword B. Word C. Quadword ANSWER: A 9. This flag is a way for the processor to wave the programmer that a zero condition has occurred. A. Carry flag B. The zero flag C. Overload flag ANSWER: B 10. CISC stands for: A. Computer Instruction Set Configurations B. Complex Instruction Set Configuration C. Complex Instruction Set Computer ANSWER: C 11. ASCII code for EECE A. 45h, 45h, 43h, 45h B. 43h, 43h, 45h, 43h C. 46h, 46h, 41h, 46h ANSWER: A 12. BCD of 3431 (packed) A. 0000 00011 0000 0100 0000 0011 0000 0001 B. 0011 0100 0011 0001 C. 0000 0101 0100 1000 ANSWER: B 13. Binary and normalized form of -1.75. A. 1.11 and 1.11x21 B. 1.11 and 1.11x20 C. 1.01 and 1.01x20 ANSWER: B 14. Binary word of -28 A. 1110 0100 B. 0000 0000 1110 0100 C. 0001 0011 0000 1000 ANSWER: B 15. The 2nd generation of microprocessors is __________. A. Transistors B. Vacuum tube computers C. Intel 8080 ANSWER: A 16. The Intel 80586 is also known as ___________. A. First microprocessor B. ENIAC C. The Pentium ANSWER: C 17. This law states that y=x2 or the number or complexity of transistors per IC doubles every 2 years. A. The Moore’s law B. Newton’s law C. Mealy’s law ANSWER: A 18. Advance technologies developed Intel _____. A. 80486 B. 8080 C. 8086 ANSWER: A 19. The first practical IC was developed in ______. A. 1989 B. The year 1959 C. 1890 ANSWER: B 20. The single general-purpose chip that could be programmed to carry out the calculator’s function was developed by: A. Ed Roberts B. Bill Gates C. Ted Holf ANSWER: C 1. The vision of Mapua Institute of Technology is to be ____ A. be among the best universities in the world B. be the best universities in the Philippines C. be among the great universities in the world D. shall be the best engineering school in the world ANS: A 2. The institute shall provide a learning environment in order for _____ A. Its students to be good engineers B. its students to acquire the attributes that will make them globally competitive. C. Its students to acquire the attributes of an engineers D. None of the above ANS: B 3. The institute shall engage in the following except one? A. Research B. Development C. Competition D. Innovation ANS: C 4. the institute shall provide state-of-the-art _______ to problems of industries and communities A. Answers B. Designs C. Both A and B D. Solutions ANS: D 1. The following are types of RAM except ? A. Static RAM B. Dynamic RAM C. Nonvolatile memory D. Volatile memory ANS: D 2. A special parallel operation that is used to transfer data from a hard disk to a microcomputer’s memory? A. Direct memory access (DMA) B. Random access memory (RAM) C. Read only memory (ROM) D. None of the choices ANS: A 3. The first processor in the 80x86 family was the ______? A. Pentium B. 16-bit 8086 C. 8-bit 8086 D. None of the choices ANS: B 4. by common practice, 8-bit binary numbers are referred to as ____ ? A. Bits B. Bytes C. Kilobytes D. Megabytes ANS: B 5. Sixteen-bit numbers are known as ____ ? A. Double-words B. Long-words C. Words D. None of the choices ANS: C 6. A method that began with the 8-bit 8080 and has been used on all upgrades from the 8085 to the Pentium is a technique called _____ ? A. Byte-changer B. Byte-swapping C. Byte-swarming D. None of the choices ANS: B 7. Motorola processors are called ____ ? A. Little-endian B. Huge-endian C. Large-endian D. None of the choices ANS: D 8. what instruction are used to move data among registers, memory, and the outside world ? A. Data transport instructions B. Data network instructions C. Data transfer instructions D. None of the choices ANS: C 9. A hardware ________ is an event that occurs while the processor is executing an instruction. It temporarily suspends execution of the main program in favor of a special routine that services it. A. Error B. Interrupt C. Restrict D. Interject ANS: B 10. this instructions is capable of performing logical, shift and rotate operations. Many common boolean operations (AND, OR, NOT) are available in the logical instructions. A. Bit Manipulation Instructions B. Byte Manipulation Instructions C. Both A and B D. None of the above ANS: A IDENTIFICATION: 1. _____ is the heart of the system, the master controller of all operation that can be performed. Ans. CPU (Central processing unit) 2. _____ special devices that often used in simple control system because of their many features. Ans. Microcontrollers 3-4. _____ is the first processor in the 80x86 family, which was capable of addressing _____. Ans. 16-bit 8086, 1 MB of memory 5. A ______ contains all the memory locations that can be reached when a particular number in a certain segment register is used. Ans. Segment 6. Intel CPUs are also called ________ computers, while Motorola processors are called _______ computers. Ans. Little- endian, big- endian ENUMERATIONS: 1. Enumerate the 4 data registers of the 80x86 family of microprocessors. Ans: AX BX CX DX 2. List the 6 main groups of instructions in the 80x86 instruction set. Ans: Data Transfer Instruction Arithmetic Instructions Bit Manipulation Instructions String Instructions Program Transfer Instructions Processor Control Instructions SOLVING: 1. Determine the content of each of the flags after the execution of each of the following instructions. Note that the given instructions will function as a part of a program. Show your solution. CF AF ZF SF PF OF TF DF IF NT IOPL INSTRUCTIONS 0 0 0 0 0 0 0 0 0 0 00 CLC STI MOV AL, AC MOV BL, F3 STC ADD AL, BL CLI MOV CL, AL MOV AL, D2 STD SUB AL, CL CLD 1. It is assumed that after 3rd instruction there is an interrupt. 2. It is assumed that after 4th instruction there is an error. 3. It is assumed that before 6th instruction there is an overflow. 4. It is assumed that after 7th instruction the task is nested. 5. It is assumed that before 9th the privilege level is third to the highest. Ans: INSTRUCTIONS CF AF ZF SF PF OF TF DF IF NT IOPL 0 0 0 0 0 0 0 0 0 0 00 CLC 0 0 0 0 0 0 0 0 0 0 00 STI 0 0 0 0 0 0 0 0 1 0 00 MOV AL, AC 0 0 0 0 0 0 0 0 1 0 00 MOV BL, F3 0 0 0 0 0 0 0 0 1 0 00 STC 1 0 0 0 1 1 0 0 1 0 00 ADD AL, BL 1 0 1 1 1 1 0 0 1 0 00 CLI 1 0 1 1 1 1 0 0 0 0 00 MOV CL, AL 1 0 1 1 1 1 0 0 0 1 10 MOV AL, D2 1 0 1 1 1 1 0 0 0 1 10 STD 1 0 1 1 1 1 0 0 0 1 10 SUB AL, CL 1 1 1 1 1 1 0 0 0 1 10 CLD 1 1 1 1 1 1 0 0 0 1 10 Multiple Choices 1. Using the given information in table #1 and determine which among the choices is correct. INSTRUCTION/S CONTENT/S or ADDRESS/ES OPCODE 1.MOV AX, DEF8 B8F8DE 1234-1237 2.MOV BX, AD23 BB23AD 1238 -123A 3.ADD AX, BX 03C3 123B -123C 4.MOV DX, 7EBF BABF7E 123D -123F 5.SUB DX, AX 2BD0 1240 -1241 6.HLT F4 1242 What is the OpCode for the operator MOV AX? a.DE b. F8 c. B0 d. B8 Ans: D 2. These are signals that indicate need of attention, perform special task and resume the pre- empted operation. a. Operation Code b. Commands c. Interrupts d. Control Signals Ans: C 3. Using the given information in the table, determine which among the choices is correct. INSTRUCTION/S CONTENT/S or ADDRESS/ES OPCODE 1.MOV AX, DEF8 B8F8DE 1234-1237 2.MOV BX, AD23 BB23AD 1238 -123A 3.ADD AX, BX 03C3 123B -123C 4.MOV DX, 7EBF BABF7E 123D -123F 5.SUB DX, AX 2BD0 1240 -1241 6.HLT F4 1242 At what address will the program counter point to if the next to be fetched and executed is instruction #5? a. 123F b. 1240-1241 c. 1240 d. 1241 ANS: C 4. This is the main focus of all the designers of computers. a. Processor b. Speed c. Functionality d. Time of execution ANS: B 5. Using the given information in table #1 and determine which among the choices is correct. INSTRUCTION/S CONTENT/S or ADDRESS/ES OPCODE 1.MOV AX, DEF8 B8F8DE 1234-1237 2.MOV BX, AD23 BB23AD 1238 -123A 3.ADD AX, BX 03C3 123B -123C 4.MOV DX, 7EBF BABF7E 123D -123F 5.SUB DX, AX 2BD0 1240 -1241 6.HLT F4 1242 What is the OpCode for the operator MOV BX? a. AD b. BB c. 23 d. B1 ANS: BB Identification 1. This element is consist of circuits needed to get information or data into the program Ans: Input Devices 2. This is an enhancement of the usual microprocessor because aside from the ALU and the control unit, read write memory, read only memory, EEPROM, peripheral devices and I/O interfaces were added Ans: Microcontrollers 3. Developed the method of evaporating aluminum in specific places on a silicon wafer to connect transistors Ans: Robert Noyce 4. A group of lines that has a related function within the microprocessor system Ans: System Bus 5. An element which functions as a floating point, graphics, signal processing, and even encryption Ans: Coprocessor 6. Invented the single general purpose chip that could be programmed to carry out calculator’s functions Ans: Ted Hoff 7. A type of special circuit which is disabled during normal program execution Ans: Interrupt Logic 8. Used to indicate results of Arithmetic and Logical instructions Ans: ALU 9. An element in the operation of microprocessor where all the data and instructions are first stored Ans: Instruction Register 10. The element which decodes the operation code of an instruction Ans: Instruction Decoder 1. A _____ cycle is run if the Pentium detects an interval parity error. A. shutdown B. restart C. bus snooping D. Debug Ans. A 2. Bus ______ cycle is when the Pentium processor is able to watch the system bus in a multiprocessor system. A. clearing B. snooping C. sweeping D. cleaning Ans. B 3. This data dependency exists if the second instruction reads an operand written to it by the first instruction. A. write after read B. execute C. execute after read D. read after write Ans. D 4. The history bits are initially set to 01. What will be the history bits after this sequence; taken->taken-> not taken-> not taken-> not taken-> taken? A. 11 B. 00 C. 10 D. 01 Ans. D 5. This specifies the percentage of hits to total cache accesses A. miss ratio B. accuracy C. precision D. hit ratio Ans. D 6. Average access time for a system that contains 15ns cache and 75ns RAM if the hit ration is 0.89 is _______? A. 23.25ns B. 22.22ns C. 25.23ns D. 20ns Ans. A 7. This translate linear addresses into physical addresses A. MESI B. TTL C. TTF D. TLB Ans. D 8. This is a Pentium’s mechanism that is used to maintain cache coherency in its data cache. A. TLB B. TTL C. TTF D. MESI Ans. D 9. Busy instruction pipelines use this technology A. Passive Execution B. Dynamic Execution C. Passive Distribution D. Dynamic Distribution Ans. B 10. Compute for the number of clock cycles of the following instructions in UV pipelining. MOV AX, 02 MOV BX, 03 MOV CX, 04 ADD AX, CX INC BX SUB BX, AX MOV CX, BX DEC CX A. 8 B. 9 C. 10 D. 11 Ans. C

Use Quizgecko on...
Browser
Browser