Question
youF name on every sheet! Name: l 40, which of the following best describes the relationship between assembl machine language? y language and a. one- to- many b. one- to- one c. many- to- one d. many- to- many 41 A program is considered portable if it... a. can be rewritten in a different programming language without losing its meaning. b. can be quickly copied from conventional RAM into high-speed RAM. c. can be executed on multiple platforms. d. none of the above 42. Device drivers nearly always contain some code written in a. machine language b. assembly language c. Java d. an application-oriented language 43. Which of the following is an example of an embedded systems application? a. an accounting program b. a JavaScript program running on a Web page c. an Applications Program written in C++ d. a phone book searching program in a cellular phone 44: Machine language instructions are found at which virtual machine level? a. digital logic level b. ISA level c. assembly language level d. operating system level 45, The Two's Complement of an integer is formed by doing which of the following? a. reversing (inverting) the bits and adding 1 b. adding 1 and reversing the bits c. reversing the bits d. changing the highest bit to a 1 hexadecimal translation (in order) of the following unsigned 46. Which list contains the sorrect hexadecimal translation fin orden of thefollowving unsigaed decimal integers? 33. 95, 257 (SHOW WORK! a, 21, 5F,101 b. 22, 5E, 11A c. 6A, 5F, 101 d. 21, 62, 103
Explanation / Answer
41. (c) Program is considered portable if it can be executed on multiple platforms because it doesn't need to be rewritten for every different machine.
42. (d) because the main purpose of device drivers is to provide abstraction by acting as a translator between a hardware device and the applications or operating systems that use it.
43. (d) An Embedded system is a combination of computer hardware and software.
44.(c) assembly language level.
45.(a) For Two's complement -> 4-> 0100 -> Inverting bits -> 1011 -> adding 1 -> 1100.
46.(a) Divide (33)10 successively by 16 until the quotient is 0:
33/16 = 2, remainder is 1
2/16 = 0, remainder is 2
Divide (95)10 successively by 16 until the quotient is 0:
95/16 = 5, remainder is 15 = F
5/16 = 0, remainder is 5
Divide (257)10 successively by 16 until the quotient is 0:
257/16 = 16, remainder is 1
16/16 = 1, remainder is 0
1/16 = 0, remainder is 1