Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
The internal RAM memory of the 8051 is: 32 bytes 64 bytes 128 bytes 256 bytes
2. STAT:
This program code will be executed continuously: MOV A, #01H JNZ STAT
A.
True
B.
False
3. A. C.
4.
The address space of the 8051 is divided into four distinct areas: internal data, external
5.
Data transfer from I/O to external data memory can only be done with the MOVX
command.
A.
True
B.
False
6. A. C.
7.
The special function registers are maintained in the next 128 locations after the general-
8.
This statement will set the address of the bit to 1 (8051 Micro-controller):
9. A. B. C. D.
MOV A, @ R1 will: copy R1 to the accumulator copy the accumulator to R1 copy the contents of memory whose address is in R1 to the accumulator copy the accumulator to the contents of memory whose address is in R1
10. A.
11.
The following program will receive data from port 1, determine whether bit 2 is high,
and then send the number FFH to port 3: READ: MOV A,P1 ANL A,#2H CJNE A,#02H,READ MOV P3,#FFH A. True B. False
12.
Device pins XTAL1 and XTAL2 for the 8051 are used for connections to an external
13.
When the 8051 is reset and the line is HIGH, the program counter points to the first
program instruction in the: A. B. C. D. internal code memory external code memory internal data memory external data memory
14. A. B.
An alternate function of port pin P3.4 in the 8051 is: Timer 0 Timer 1
C. D.
interrupt 0 interrupt 1
15. A.
Both registers TL0 and TL1 are needed to start Timer 0. True B. False
16. A. B. C. D.
The I/O ports that are used as address and data for external memory are: ports 1 and 2 ports 1 and 3 ports 0 and 2 ports 0 and 3
17.
The last 96 locations in the internal data memory are reserved for general-purpose data
18. A. B. C. D.
19. A. C.
20. A. C.
The total external data memory that can be interfaced to the 8051 is: 32K 128K B. D. 64K 256K
21. 0? A. B. C. D.
Which of the following instructions will load the value 35H into the high byte of timer
MOV TH0, #35H MOV TH0, 35H MOV T0, #35H MOV T0, 35H
22. A. B. C. D.
Bit-addressable memory locations are: 10H through 1FH 20H through 2FH 30H through 3FH 40H through 4FH
23. A. B. C. D.
The 8-bit address bus allows access to an address range of: 0000 to FFFFH 000 to FFFH 00 to FFH 0 to FH
24.
25. left: RL A A.
The following command will rotate the 8 bits of the accumulator one position to the
True
B.
False
26. STAT:
This program code will be executed once: MOV A, #01H JNZ STAT
A.
True
B.
False
27.
Which of the following instructions will move the contents of register 3 to the
28. A. B. C. D.
Which of the following statements will add the accumulator to register 3? ADD @R3, @A ADD @A, R3 ADD R3, A ADD A, R3
29.
Data transfer from I/O to external data memory can only be done with the MOV
30. A. B. C.
Which of the following commands will move the number 27H into the accumulator? MOV A, P27 MOV A, #27H MOV A, 27H
D.
MOV A, @27
31.
This program code will read data from port 0 and write it to port 2, and it will stop
looping when bit 3 of port 2 is set: STAT: MOV A, PO MOV P2,A JNB P2.3, STAT A. True B. False
32. A. B. C. D.
Which of the following commands will move the value at port 3 to register 2? MOV P2, R3 MOV R3, P2 MOV 3P, R2 MOV R2, P3
33. A. C.
34. A. B.
An alternate function of port pin P3.0 (RXD) in the 8051 is: serial port input serial port output
C. D.
35.
When the 8051 is reset and the line is LOW, the program counter points to the first
program instruction in the: A. B. C. D. internal code memory external code memory internal data memory external data memory
36.
37. A. B. C. D.
What is the difference between the 8031 and the 8051? The 8031 has no interrupts. The 8031 is ROM-less. The 8051 is ROM-less. The 8051 has 64 bytes more memory.
38. A. B.
The I/O port that does not have a dual-purpose role is: port 0 port 1
C. D.
port 2 port 3
39.
40.
MOV A,#02H MOV RO,#04H MUL A,RO will be: A. C. 02H 06H B. D. 04H 08H
41. 23H:
The following command will copy the accumulator to the location whose address is
42.
The special function registers can be referred to by their hex addresses or by their
43.
44.
45.
Which of the following commands will copy the contents of RAM whose address is in
register 0 to port 1? A. B. C. D. MOV @ P1, R0 MOV @ R0, P1 MOV P1, @ R0 MOV P1, R0
46. A.
The statement CALL READ passes control to the line labelled READ. True B. False
47.
Which of the following commands will copy the contents of location 4H to the
48.
The microcontroller is useful in systems that have nonvariable programs for dedicated
49. A. C.
The total amount of external code memory that can be interfaced to the 8051 is: 32K 128K B. D. 64K 256K
50. A. C.
51. A. C.
A HIGH on which pin resets the 8051 microcontroller? RESET PSEN B. D. RST RSET
52. A. B. C. D.
An alternate function of port pin P3.1 in the 8051 is: serial port input serial port output memory write strobe memory read strobe
53.
Which of the following instructions will move the contents of the accumulator to
54. The fundamental conceptual unit in a computer is: a. CPU b. Hard Drive c. Operating System d. (Transistor)
55. In a 8086/8088 Microprocessor, the unit responsible for getting the instructions from memory and loading in the Queue is. a. Execution Unit b. Registers c. Stack d. (Bus Interface Unit)
56. When you transfer the record from a Big Endian system to a Little Endian system over the network in order to get the original value, you must: a. reverse the byte within a word b. reverse the bytes in an integer c. reverse the characters in a word d. (there is no simple solution)
57. To transmit data bits 1011, the correct even parity seven bit Hamming Code is a. 0101101 b. (1010101) c. 1100111 d. 0110111
58. The cause of propagation delay is the time it takes a pulse to get through a logic device a. (True) b. False 59. If CS= 24F6 and IP =634A, the physical address is a. 24F6: 634A b. 34F5F c. (2B2AA) d. 24F60
60. The instruction MOV CL, [BX][DI]+8 represents the following addressing mode a.based relative b.(based indexed) c.indexed relative d.register indirect
61. The amount of time required to read a block of data from a disk into memory is composed of seek time, rotational latency, and transfer time. Rotational latency refers to a. the time it takes for the platter to make a full rotation b. the time it takes for the read-write head to move into position over the appropriate track c. (the time it takes for the platter to rotate the correct sector under the head) d. none of the above
62. If a magnetic disc has 100 cylinders, each containing 10 tracks of 10 sectors, and each sector can contain 128 bytes, what is the maximum capacity of the disk in bytes? a. 128,000 b. 12,800,000 c. 12,800 d. (1,280,000)
63. According to the specifications of a particular hard disk a seek takes 3 msecs (thousandths of a second) between adjacent tracks. If the disk has 100 cylinders how long will it take for the head to move from the innermost cylinder to the outermost cylinder. a. 30 microseconds b. (300 msecs) c. 3000 msecs d. 3 microseconds
64. What characteristic of RAM memory makes it not suitable for permanent storage? a. too slow b. unreliable c. (it is volatile) d. too bulky
65. Part of the operating system is usually stored in ROM so that it can be used to boot up the computer. ROM is used rather than RAM because a. ROM chips are faster than RAM b. (ROM chips are not volatile) c. ROM chips are cheaper than RAM chips d. none of the above
66. A given memory chip has 12 address pins and 4 data pins. It has the following number of locations. a. 2^4 b. (2^12) c. 2^48 d. 2^16
67. RAM is called DRAM(Dynamic RAM) when a. it is always moving around data b. (it requires periodic refreshing) c. it can do several things simultaneously d. none of the above
68. Which of the following is Non-Volatile memory? a. (EEPROM) b. SRAM c. DRAM d. None of the above
69. Twos complement notation is frequently used for internal representation of a. fractions b. (integers) c. True and False values d. floating point numbers
70. If the ASCII code for A is 1000001, B is 1000010, and C is 1000011 then the string 100001110000011000010 represents: a. (CAB) b. BAC c. CCB d. ABC 71. Which of the following started out as separate program from operating systems but usually is included as part of the OS later on? a. (Text Editor) b. Command processor c. Resource allocator d. Dispatcher
72. An operating system that allows several processors to perform computation as the same time is call a. Single program b. Multitasking
73. The kind of interface with icons and menu bars for user to point at with mouse instead of entering commands for operating system to perform certain tasks is called a. (GUI) b. Command line interface c. User friendly programming d. None of the above
74. he prime targets of software pirates are a. programs written for mainframes b. (games and application programs for microcomputers) c. programs in the public domain d. none of the above 75. Considering the impacts computer technology has on modern society, which of the following is negative? a. People can communicate with each other without geographical limitations b. Stock brokers do not need to be in a central place for trading c. (More people totally rely on computers when doing their works) d. Information can reach different area and people at light speed
76. A student retrieve a copy of a program assignment from the recycle bin in the computer lab and use the code to complete his own program assignment. His action is considered a. (legal but unethical) b. illegal and unethical c. legal and ethical d. illegal but ethical
77. The instructions like MUL AB and DIV AB instruction uses the registers
a. A
b. B
c. C
d. D
78. ________ is often used to store 2-byte values which have nothing to do with memory locations.
a. stack pointe
b. data pointer
c. program counter
d. timer
a. internal
b. external data
c. input data
d. internal program
80. The twos complement representation of 10 is: a. (11110110) b. 11011001 c. 00001010 d. 11111100
d. 00101 82. Floating point representation is used to store a. Boolean values b. whole numbers c. (real numbers) d. integers
83. Binary numbers can be used to represent a.Integers only b.Fractions only c.Both fractions and integers d. (both fractions and integers.)
84. In order to execute a program instructions must be transferred from memory along a bus to the CPU. If the bus has 8 data lines, at most one 8 bit byte can be transferred at a time. How many memory access would be needed in this case to transfer a 32 bit instruction from memory to the CPU. a. 1 b. 2 c. 3 d. (4)
85. Suppose that a bus has 16 data lines and requires 4 cycles of 250 nsecs each to transfer data. The bandwidth of this bus would be 2 Megabytes/sec. If the cycle time of the bus was reduced to 125 nsecs and the number of cycles required for transfer stayed the same what would the bandwidth of the bus? a. 1 Megabyte/sec b. (4 Megabytes/sec)
c. 8 Megabytes/sec d. 2 Megabytes/sec
86. A computers memory is composed of 8K words of 32 bits each. How many bits are required for memory address if the smallest addressable memory unit is a word? a. (13) b. 8 c. 10 d. 6
87. A computers memory is composed of 4K words of 32 bits each. How many total bits in memory? a. 12800 b. 1280000 c. 1310720 d. (131072)
88. A computers memory is composed of 8K words of 32 bits each, and a byte is 8 bits. How many bytes does this memory contain? a. 8K b. (32K) c. 16K d. 4K
89. A computers memory is composed of 8K words of 32 bits each, and the smallest addressable memory unit is an 8 bit byte. How many bits will be required for the memory address? a. 12 b. (15)
c. 13 d. 10
90. A word is the natural unit of organization of memory. Different computer types may have different word lengths (in bits) . a. (True) b. False
91. Cache memory refers to a. cheap memory that can be plugged into the mother board to expand main memory b. (fast memory present on the processor chip that is used to store recently accessed data) c. a reserved portion of main memory used to save important data d. a special area of memory on the chip that is used to save frequently used constants
92. Registers contain data and instructions needed by the CPU. a. (True) b. False
93. A computer that is advertised as having a 96K byte DRAM memory and a 2.1 Gigabyte hard drive has a. (96 K bytes of primary memory and 2.1 Gigabytes of secondary memory) b. 2.1 Gigabytes of primary memory and 96K bytes of secondary memory c. 96 bytes of cache, 2.1 gigabytes of primary memory d. 96K bytes of cache, 96 K bytes of primary memory , and 2.1 Gigabytes of secondary memory
94. A memory management technique used to improve computer performance is a. selecting memory chips based on their cost
b. storing as much data as possible on disk c. (using the cache to store data that will most likely be needed soon) d. preventing data from being moved from the cache to primary memory
95. The fetch-decode-execute cycle refers to the process by which data is read from the hard drive and stored in memory. a. True b. (False)
96. Interrupts can be generated in response to a. detected program errors such as arithmetic overflow or division by zero b. detected hardware faults c. Input/Output activities d. Internal timers e. b, c, and d f. (a, b, c, and d)
97. Virtually all computer designs are based on the von Neumann architecture. A high level view of this architecture has the following three components: a. Buses, memory, input/output controllers b. Hard disks, floppy disks, and the CPU c. memory, the CPU, and printers d. (memory, input/output modules, and the CPU)
98. Which of the following programming languages has an instruction set closest to the machine language of a computer? a. BASIC b. Fortran
99. The first person who published paper on using computers to perform tasks other than computations is a. Charles Babbage b. Lady Lovelace c. (Alan Turing) d. Konrad Zuse
100. What was the name of the government funded computer used during World War II to compute firing tables? a. VAX computer b. IBM computer c. Colossus computer d. (ENIAC computer)