Multiple choice questions (3 points each) 21. A program is considered portable i
ID: 3725996 • Letter: M
Question
Multiple choice questions (3 points each) 21. A program is considered portable if it. .. can be rewritten in a different programming language without losing its meaning. can be quickly copied from conventional RAM into high-speed RAM. can be executed on multiple platforms. none of the above a. b. c. d. 22. Which list contains the correct hexadecimal translation (in order) of the following unsigned decimal integers? 33, 95, 257 a. 21, 5F, 101 b. b. 22, 5E, 11A c. c. 6A, 5F, 101 d. d. 21, 62, 103 23. What is the name of the lowest 8 bits of the EDX register? a. DL b. DH c. DX d. none of the above 24. Within the CPU, all calculations and logic operations take place inside the a. registers b. ALU c. CU d. MBU 25. Which register is known as a loop counter? a. EAX b. EBX c. ECX d. EDX 26. Given the following array definition, which letter choice contains a valid constant declaration named ArrayCount that automatically calculates the number of elements in the array? newArray DWORD 10,20,30, 40,50 a. ArrayCount newArray -$ b. ArrayCount (S-newArray)/4 c. ArrayCount DWORD S - newArray d. ArrayCount (newArray - $)/4Explanation / Answer
21. (c) A program is considered portable if it can be executed on multiple platform. Potable means regardless the platform in which the program is devloped, it can run everywhere.
22. (a) 21, 5F, 101
Hex to decimal converted below
21 = 2*16 + 1 = 33
5F = 5*16 + 15 = 95
101 = 1*16*16 + 0*16 + 1 = 256 + 1 = 257
23. (a) DL because the EDX register format is as follows. EDX ( DX, DH, DL) --- DL holds the lowest 8bits
24. (b) ALU because ALU(Arithmetic Logic Unit) is responsible to take care of all arithmetic and logical operations happening inside cpu.
25. (c) ECX ---- It is used as a loop counter and for shifts
26. (b) ArrayCount=($-newArray)/4 --- ($-newArray) will result the total array size, which when divided by size of DWORD( 4 bytes for 32bits addressing), gives you the number of elements present.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.