Docsity

ARM_Architecture_and_Programming_Test.pdf, Exams of Advanced Computer Architecture

Toggle sidebar
bg1
Independent Computer Engineering Practice Material Page 1
ARM Architecture and Programming Test
Batch 4 · Exam 154 · 100 multiple-choice questions
Instructions
Choose the single best answer for each question. Each question has four options (A–D). The correct answer
and a concise explanation follow each question for self-study.
Scope and status
Independently prepared practice material. This is not an official examination or certification paper. Consult the applicable syllabus for
exact learning outcomes.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download ARM_Architecture_and_Programming_Test.pdf and more Exams Advanced Computer Architecture in PDF only on Docsity!

ARM Architecture and Programming Test

Batch 4 · Exam 154 · 100 multiple-choice questions

Instructions

Choose the single best answer for each question. Each question has four options (A–D). The correct answer

and a concise explanation follow each question for self-study.

Scope and status

Independently prepared practice material. This is not an official examination or certification paper. Consult the applicable syllabus for exact learning outcomes.

Questions, Answers & Explanations

1. What is the main engineering purpose of memory access in a computer system?

A. To support a defined function that can be evaluated against requirements B. To remove the need for verification C. To ensure components can never fail D. To eliminate design documentation Correct answer: A — To support a defined function that can be evaluated against requirements Explanation: memory access supports a defined system function. Requirements, verification, and documentation remain important.

2. Which evidence best demonstrates that memory access meets its specification?

A. A repeatable test with recorded measurements and pass criteria B. A verbal assurance without data C. A single power-on test regardless of function D. An unlabeled drawing Correct answer: A — A repeatable test with recorded measurements and pass criteria Explanation: Repeatable tests tied to acceptance criteria provide objective evidence of compliance.

3. A defect related to memory access occurs intermittently. What should an engineer do first?

A. Replace every nearby component immediately B. Reproduce the conditions and record inputs, timing, and measurements C. Ignore the issue until it becomes permanent D. Change several variables at once Correct answer: B — Reproduce the conditions and record inputs, timing, and measurements Explanation: Reproducing and documenting the fault helps isolate causes and preserves useful evidence.

4. Two modules interpret memory access differently. What is the best corrective action?

A. Agree on and document a common interface contract, then test both modules B. Allow each module to keep its own undocumented interpretation C. Remove integration testing D. Change an unrelated subsystem Correct answer: A — Agree on and document a common interface contract, then test both modules Explanation: A shared contract clarifies expected behavior and provides a basis for integration tests.

5. After changing memory access, which practice best checks for unintended side effects?

A. Delete the old test results B. Run relevant regression tests and compare with a known baseline C. Skip tests if the build succeeds D. Avoid recording the build version Correct answer: B — Run relevant regression tests and compare with a known baseline Explanation: Regression tests help detect whether a change broke previously working behavior.

6. How should an engineer choose between alternative implementations of memory access?

A. Select the option with the most features regardless of need B. Compare requirement fit, constraints, performance, risk, and lifecycle cost C. Always choose the newest technology D. Make the choice without recording a rationale Correct answer: B — Compare requirement fit, constraints, performance, risk, and lifecycle cost Explanation: A defensible engineering choice considers requirements and constraints, then records the trade-off rationale.

14. Which evidence best demonstrates that I/O control meets its specification?

A. A repeatable test with recorded measurements and pass criteria B. A verbal assurance without data C. A single power-on test regardless of function D. An unlabeled drawing Correct answer: A — A repeatable test with recorded measurements and pass criteria Explanation: Repeatable tests tied to acceptance criteria provide objective evidence of compliance.

15. A defect related to I/O control occurs intermittently. What should an engineer do first?

A. Replace every nearby component immediately B. Reproduce the conditions and record inputs, timing, and measurements C. Ignore the issue until it becomes permanent D. Change several variables at once Correct answer: B — Reproduce the conditions and record inputs, timing, and measurements Explanation: Reproducing and documenting the fault helps isolate causes and preserves useful evidence.

16. Two modules interpret I/O control differently. What is the best corrective action?

A. Agree on and document a common interface contract, then test both modules B. Allow each module to keep its own undocumented interpretation C. Remove integration testing D. Change an unrelated subsystem Correct answer: A — Agree on and document a common interface contract, then test both modules Explanation: A shared contract clarifies expected behavior and provides a basis for integration tests.

17. After changing I/O control, which practice best checks for unintended side effects?

A. Delete the old test results B. Run relevant regression tests and compare with a known baseline C. Skip tests if the build succeeds D. Avoid recording the build version Correct answer: B — Run relevant regression tests and compare with a known baseline Explanation: Regression tests help detect whether a change broke previously working behavior.

18. How should an engineer choose between alternative implementations of I/O control?

A. Select the option with the most features regardless of need B. Compare requirement fit, constraints, performance, risk, and lifecycle cost C. Always choose the newest technology D. Make the choice without recording a rationale Correct answer: B — Compare requirement fit, constraints, performance, risk, and lifecycle cost Explanation: A defensible engineering choice considers requirements and constraints, then records the trade-off rationale.

19. A 4-bit unsigned counter holds 1111 n and is incremented by one. If it wraps modulo 16, what is the new value? (Related focus: computer organization.)

A. 0000n B. 1000n C. 1110n D. 10000n Correct answer: A — 0000 n Explanation: Four bits represent 0–15. Incrementing 15 wraps to 0 in modulo-16 arithmetic.

20. Which Boolean expression is equivalent to NOT(A OR B)? (Related focus: datapath.)

A. NOT A OR NOT B B. NOT A AND NOT B C. A AND B D. A OR NOT B Correct answer: B — NOT A AND NOT B Explanation: By De Morgan's law, NOT(A OR B) equals NOT A AND NOT B.

21. A 16-bit unsigned value can represent how many distinct values? (Related focus: system buses.)

A. 16 B. 256 C. 32, D. 65, Correct answer: D — 65, Explanation: A 16-bit field has 2¹n = 65,536 distinct bit patterns.

22. A clock period is 4 ns. What is the corresponding frequency? (Related focus: memory access.)

A. 25 MHz B. 100 MHz C. 250 MHz D. 4 GHz Correct answer: C — 250 MHz Explanation: Frequency is 1/T = 1/(4 × 10nn s) = 250 MHz.

23. A cache has 800 hits in 1,000 accesses. What is its hit rate? (Related focus: interrupt handling.)

A. 8% B. 20% C. 80% D. 125% Correct answer: C — 80% Explanation: Hit rate = 800 / 1,000 × 100 = 80%.

24. A 5 V source supplies 0.3 A. What is the ideal power delivered? (Related focus: I/O control.)

A. 0.06 W B. 1.5 W C. 5.3 W D. 15 W Correct answer: B — 1.5 W Explanation: P = V × I = 5 × 0.3 = 1.5 W.

25. A test suite has 72 passing tests out of 80. What percentage pass? (Related focus: computer organization.)

A. 8% B. 80% C. 90% D. 92% Correct answer: C — 90% Explanation: 72 / 80 × 100 = 90%.

26. A system transfers 6,000 bytes in 2 seconds. What is the average transfer rate? (Related focus: datapath.)

A. 300 B/s B. 3,000 B/s C. 6,002 B/s D. 12,000 B/s Correct answer: B — 3,000 B/s Explanation: Transfer rate = 6,000 / 2 = 3,000 bytes per second.

27. Which is the primary role of an interrupt in many processor systems? (Related focus: system buses.)

A. To notify the processor that an event may need service B. To permanently stop instruction execution C. To replace all memory D. To guarantee higher throughput in every workload Correct answer: A — To notify the processor that an event may need service Explanation: Interrupts notify the processor of events; the system's interrupt design determines how they are serviced.

35. A test suite has 72 passing tests out of 80. What percentage pass? (Related focus: interrupt handling.)

A. 8% B. 80% C. 90% D. 92% Correct answer: C — 90% Explanation: 72 / 80 × 100 = 90%.

36. A system transfers 6,000 bytes in 2 seconds. What is the average transfer rate? (Related focus: I/O control.)

A. 300 B/s B. 3,000 B/s C. 6,002 B/s D. 12,000 B/s Correct answer: B — 3,000 B/s Explanation: Transfer rate = 6,000 / 2 = 3,000 bytes per second.

37. Which is the primary role of an interrupt in many processor systems? (Related focus: computer organization.)

A. To notify the processor that an event may need service B. To permanently stop instruction execution C. To replace all memory D. To guarantee higher throughput in every workload Correct answer: A — To notify the processor that an event may need service Explanation: Interrupts notify the processor of events; the system's interrupt design determines how they are serviced.

38. Why should an ADC reference voltage be stable? (Related focus: datapath.)

A. It defines the input-voltage scale mapped to digital codes B. It makes sampling unnecessary C. It removes quantization D. It forces every reading to zero Correct answer: A — It defines the input-voltage scale mapped to digital codes Explanation: The reference sets the conversion range and therefore influences the mapping from input voltage to output code.

39. A 4-bit unsigned counter holds 1111 n and is incremented by one. If it wraps modulo 16, what is the new value? (Related focus: system buses.)

A. 0000n B. 1000n C. 1110n D. 10000n Correct answer: A — 0000 n Explanation: Four bits represent 0–15. Incrementing 15 wraps to 0 in modulo-16 arithmetic.

40. Which Boolean expression is equivalent to NOT(A OR B)? (Related focus: memory access.)

A. NOT A OR NOT B B. NOT A AND NOT B C. A AND B D. A OR NOT B Correct answer: B — NOT A AND NOT B Explanation: By De Morgan's law, NOT(A OR B) equals NOT A AND NOT B.

41. A 16-bit unsigned value can represent how many distinct values? (Related focus: interrupt handling.)

A. 16 B. 256 C. 32, D. 65, Correct answer: D — 65, Explanation: A 16-bit field has 2¹n = 65,536 distinct bit patterns.

42. A clock period is 4 ns. What is the corresponding frequency? (Related focus: I/O control.)

A. 25 MHz B. 100 MHz C. 250 MHz D. 4 GHz Correct answer: C — 250 MHz Explanation: Frequency is 1/T = 1/(4 × 10nn s) = 250 MHz.

43. A cache has 800 hits in 1,000 accesses. What is its hit rate? (Related focus: computer organization.)

A. 8% B. 20% C. 80% D. 125% Correct answer: C — 80% Explanation: Hit rate = 800 / 1,000 × 100 = 80%.

44. A 5 V source supplies 0.3 A. What is the ideal power delivered? (Related focus: datapath.)

A. 0.06 W B. 1.5 W C. 5.3 W D. 15 W Correct answer: B — 1.5 W Explanation: P = V × I = 5 × 0.3 = 1.5 W.

45. A test suite has 72 passing tests out of 80. What percentage pass? (Related focus: system buses.)

A. 8% B. 80% C. 90% D. 92% Correct answer: C — 90% Explanation: 72 / 80 × 100 = 90%.

46. A system transfers 6,000 bytes in 2 seconds. What is the average transfer rate? (Related focus: memory access.)

A. 300 B/s B. 3,000 B/s C. 6,002 B/s D. 12,000 B/s Correct answer: B — 3,000 B/s Explanation: Transfer rate = 6,000 / 2 = 3,000 bytes per second.

47. Which is the primary role of an interrupt in many processor systems? (Related focus: interrupt handling.)

A. To notify the processor that an event may need service B. To permanently stop instruction execution C. To replace all memory D. To guarantee higher throughput in every workload Correct answer: A — To notify the processor that an event may need service Explanation: Interrupts notify the processor of events; the system's interrupt design determines how they are serviced.

55. A test suite has 72 passing tests out of 80. What percentage pass? (Related focus: computer organization.)

A. 8% B. 80% C. 90% D. 92% Correct answer: C — 90% Explanation: 72 / 80 × 100 = 90%.

56. A system transfers 6,000 bytes in 2 seconds. What is the average transfer rate? (Related focus: datapath.)

A. 300 B/s B. 3,000 B/s C. 6,002 B/s D. 12,000 B/s Correct answer: B — 3,000 B/s Explanation: Transfer rate = 6,000 / 2 = 3,000 bytes per second.

57. Which is the primary role of an interrupt in many processor systems? (Related focus: system buses.)

A. To notify the processor that an event may need service B. To permanently stop instruction execution C. To replace all memory D. To guarantee higher throughput in every workload Correct answer: A — To notify the processor that an event may need service Explanation: Interrupts notify the processor of events; the system's interrupt design determines how they are serviced.

58. Why should an ADC reference voltage be stable? (Related focus: memory access.)

A. It defines the input-voltage scale mapped to digital codes B. It makes sampling unnecessary C. It removes quantization D. It forces every reading to zero Correct answer: A — It defines the input-voltage scale mapped to digital codes Explanation: The reference sets the conversion range and therefore influences the mapping from input voltage to output code.

59. A 4-bit unsigned counter holds 1111 n and is incremented by one. If it wraps modulo 16, what is the new value? (Related focus: interrupt handling.)

A. 0000n B. 1000n C. 1110n D. 10000n Correct answer: A — 0000 n Explanation: Four bits represent 0–15. Incrementing 15 wraps to 0 in modulo-16 arithmetic.

60. Which Boolean expression is equivalent to NOT(A OR B)? (Related focus: I/O control.)

A. NOT A OR NOT B B. NOT A AND NOT B C. A AND B D. A OR NOT B Correct answer: B — NOT A AND NOT B Explanation: By De Morgan's law, NOT(A OR B) equals NOT A AND NOT B.

61. A 16-bit unsigned value can represent how many distinct values? (Related focus: computer organization.)

A. 16 B. 256 C. 32, D. 65, Correct answer: D — 65, Explanation: A 16-bit field has 2¹n = 65,536 distinct bit patterns.

62. A clock period is 4 ns. What is the corresponding frequency? (Related focus: datapath.)

A. 25 MHz B. 100 MHz C. 250 MHz D. 4 GHz Correct answer: C — 250 MHz Explanation: Frequency is 1/T = 1/(4 × 10nn s) = 250 MHz.

63. A cache has 800 hits in 1,000 accesses. What is its hit rate? (Related focus: system buses.)

A. 8% B. 20% C. 80% D. 125% Correct answer: C — 80% Explanation: Hit rate = 800 / 1,000 × 100 = 80%.

64. A 5 V source supplies 0.3 A. What is the ideal power delivered? (Related focus: memory access.)

A. 0.06 W B. 1.5 W C. 5.3 W D. 15 W Correct answer: B — 1.5 W Explanation: P = V × I = 5 × 0.3 = 1.5 W.

65. A test suite has 72 passing tests out of 80. What percentage pass? (Related focus: interrupt handling.)

A. 8% B. 80% C. 90% D. 92% Correct answer: C — 90% Explanation: 72 / 80 × 100 = 90%.

66. A system transfers 6,000 bytes in 2 seconds. What is the average transfer rate? (Related focus: I/O control.)

A. 300 B/s B. 3,000 B/s C. 6,002 B/s D. 12,000 B/s Correct answer: B — 3,000 B/s Explanation: Transfer rate = 6,000 / 2 = 3,000 bytes per second.

67. Which is the primary role of an interrupt in many processor systems? (Related focus: computer organization.)

A. To notify the processor that an event may need service B. To permanently stop instruction execution C. To replace all memory D. To guarantee higher throughput in every workload Correct answer: A — To notify the processor that an event may need service Explanation: Interrupts notify the processor of events; the system's interrupt design determines how they are serviced.

68. Why should an ADC reference voltage be stable? (Related focus: datapath.)

A. It defines the input-voltage scale mapped to digital codes B. It makes sampling unnecessary C. It removes quantization D. It forces every reading to zero Correct answer: A — It defines the input-voltage scale mapped to digital codes Explanation: The reference sets the conversion range and therefore influences the mapping from input voltage to output code.

76. A system transfers 6,000 bytes in 2 seconds. What is the average transfer rate? (Related focus: memory access.)

A. 300 B/s B. 3,000 B/s C. 6,002 B/s D. 12,000 B/s Correct answer: B — 3,000 B/s Explanation: Transfer rate = 6,000 / 2 = 3,000 bytes per second.

77. Which is the primary role of an interrupt in many processor systems? (Related focus: interrupt handling.)

A. To notify the processor that an event may need service B. To permanently stop instruction execution C. To replace all memory D. To guarantee higher throughput in every workload Correct answer: A — To notify the processor that an event may need service Explanation: Interrupts notify the processor of events; the system's interrupt design determines how they are serviced.

78. Why should an ADC reference voltage be stable? (Related focus: I/O control.)

A. It defines the input-voltage scale mapped to digital codes B. It makes sampling unnecessary C. It removes quantization D. It forces every reading to zero Correct answer: A — It defines the input-voltage scale mapped to digital codes Explanation: The reference sets the conversion range and therefore influences the mapping from input voltage to output code.

79. A 4-bit unsigned counter holds 1111 n and is incremented by one. If it wraps modulo 16, what is the new value? (Related focus: computer organization.)

A. 0000n B. 1000n C. 1110n D. 10000n Correct answer: A — 0000 n Explanation: Four bits represent 0–15. Incrementing 15 wraps to 0 in modulo-16 arithmetic.

80. Which Boolean expression is equivalent to NOT(A OR B)? (Related focus: datapath.)

A. NOT A OR NOT B B. NOT A AND NOT B C. A AND B D. A OR NOT B Correct answer: B — NOT A AND NOT B Explanation: By De Morgan's law, NOT(A OR B) equals NOT A AND NOT B.

81. A 16-bit unsigned value can represent how many distinct values? (Related focus: system buses.)

A. 16 B. 256 C. 32, D. 65, Correct answer: D — 65, Explanation: A 16-bit field has 2¹n = 65,536 distinct bit patterns.

82. A clock period is 4 ns. What is the corresponding frequency? (Related focus: memory access.)

A. 25 MHz B. 100 MHz C. 250 MHz D. 4 GHz Correct answer: C — 250 MHz Explanation: Frequency is 1/T = 1/(4 × 10nn s) = 250 MHz.

83. What is the main engineering purpose of computer organization in a computer system?

A. To support a defined function that can be evaluated against requirements B. To remove the need for verification C. To ensure components can never fail D. To eliminate design documentation Correct answer: A — To support a defined function that can be evaluated against requirements Explanation: computer organization supports a defined system function. Requirements, verification, and documentation remain important.

84. Which evidence best demonstrates that computer organization meets its specification?

A. A repeatable test with recorded measurements and pass criteria B. A verbal assurance without data C. A single power-on test regardless of function D. An unlabeled drawing Correct answer: A — A repeatable test with recorded measurements and pass criteria Explanation: Repeatable tests tied to acceptance criteria provide objective evidence of compliance.

85. A defect related to computer organization occurs intermittently. What should an engineer do first?

A. Replace every nearby component immediately B. Reproduce the conditions and record inputs, timing, and measurements C. Ignore the issue until it becomes permanent D. Change several variables at once Correct answer: B — Reproduce the conditions and record inputs, timing, and measurements Explanation: Reproducing and documenting the fault helps isolate causes and preserves useful evidence.

86. Two modules interpret computer organization differently. What is the best corrective action?

A. Agree on and document a common interface contract, then test both modules B. Allow each module to keep its own undocumented interpretation C. Remove integration testing D. Change an unrelated subsystem Correct answer: A — Agree on and document a common interface contract, then test both modules Explanation: A shared contract clarifies expected behavior and provides a basis for integration tests.

87. After changing computer organization, which practice best checks for unintended side effects?

A. Delete the old test results B. Run relevant regression tests and compare with a known baseline C. Skip tests if the build succeeds D. Avoid recording the build version Correct answer: B — Run relevant regression tests and compare with a known baseline Explanation: Regression tests help detect whether a change broke previously working behavior.

88. How should an engineer choose between alternative implementations of computer organization?

A. Select the option with the most features regardless of need B. Compare requirement fit, constraints, performance, risk, and lifecycle cost C. Always choose the newest technology D. Make the choice without recording a rationale Correct answer: B — Compare requirement fit, constraints, performance, risk, and lifecycle cost Explanation: A defensible engineering choice considers requirements and constraints, then records the trade-off rationale.

89. What is the main engineering purpose of datapath in a computer system?

A. To support a defined function that can be evaluated against requirements B. To remove the need for verification C. To ensure components can never fail D. To eliminate design documentation Correct answer: A — To support a defined function that can be evaluated against requirements Explanation: datapath supports a defined system function. Requirements, verification, and documentation remain important.

97. A defect related to system buses occurs intermittently. What should an engineer do first?

A. Replace every nearby component immediately B. Reproduce the conditions and record inputs, timing, and measurements C. Ignore the issue until it becomes permanent D. Change several variables at once Correct answer: B — Reproduce the conditions and record inputs, timing, and measurements Explanation: Reproducing and documenting the fault helps isolate causes and preserves useful evidence.

98. Two modules interpret system buses differently. What is the best corrective action?

A. Agree on and document a common interface contract, then test both modules B. Allow each module to keep its own undocumented interpretation C. Remove integration testing D. Change an unrelated subsystem Correct answer: A — Agree on and document a common interface contract, then test both modules Explanation: A shared contract clarifies expected behavior and provides a basis for integration tests.

99. After changing system buses, which practice best checks for unintended side effects?

A. Delete the old test results B. Run relevant regression tests and compare with a known baseline C. Skip tests if the build succeeds D. Avoid recording the build version Correct answer: B — Run relevant regression tests and compare with a known baseline Explanation: Regression tests help detect whether a change broke previously working behavior.

100. How should an engineer choose between alternative implementations of system buses?

A. Select the option with the most features regardless of need B. Compare requirement fit, constraints, performance, risk, and lifecycle cost C. Always choose the newest technology D. Make the choice without recording a rationale Correct answer: B — Compare requirement fit, constraints, performance, risk, and lifecycle cost Explanation: A defensible engineering choice considers requirements and constraints, then records the trade-off rationale.