Docsity

Raspberry_Pi_Computing_Practice_Exam.pdf, Exams of Computer Programming

Toggle sidebar
bg1
Independent Computer Engineering Practice Material Page 1
Raspberry Pi Computing Practice Exam
Batch 4 · Exam 159 · 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 Raspberry_Pi_Computing_Practice_Exam.pdf and more Exams Computer Programming in PDF only on Docsity!

Raspberry Pi Computing Practice Exam

Batch 4 · Exam 159 · 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. Two modules interpret hardware/software integration 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.

2. After changing hardware/software integration, 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.

3. How should an engineer choose between alternative implementations of hardware/software integration?

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.

4. What is the main engineering purpose of firmware 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: firmware supports a defined system function. Requirements, verification, and documentation remain important.

5. Which evidence best demonstrates that firmware 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.

6. A defect related to firmware 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.

7. Two modules interpret firmware 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.

15. How should an engineer choose between alternative implementations of device drivers?

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.

16. What is the main engineering purpose of APIs 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: APIs supports a defined system function. Requirements, verification, and documentation remain important.

17. Which evidence best demonstrates that APIs 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.

18. A defect related to APIs 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.

19. Two modules interpret APIs 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.

20. After changing APIs, 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.

21. How should an engineer choose between alternative implementations of APIs?

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.

22. What is the main engineering purpose of device protocols 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: device protocols supports a defined system function. Requirements, verification, and documentation remain important.

23. Which evidence best demonstrates that device protocols 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.

24. A defect related to device protocols 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.

25. Two modules interpret device protocols 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.

26. After changing device protocols, 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.

27. How should an engineer choose between alternative implementations of device protocols?

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.

28. What is the main engineering purpose of system integration 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: system integration supports a defined system function. Requirements, verification, and documentation remain important.

36. A 16-bit unsigned value can represent how many distinct values? (Related focus: device drivers.)

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.

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

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.

38. A cache has 800 hits in 1,000 accesses. What is its hit rate? (Related focus: device protocols.)

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

39. A 5 V source supplies 0.3 A. What is the ideal power delivered? (Related focus: system integration.)

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.

40. A test suite has 72 passing tests out of 80. What percentage pass? (Related focus: hardware/software integration.)

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

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

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.

42. Which is the primary role of an interrupt in many processor systems? (Related focus: device drivers.)

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.

43. Why should an ADC reference voltage be stable? (Related focus: APIs.)

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.

44. 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: device protocols.)

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.

45. Which Boolean expression is equivalent to NOT(A OR B)? (Related focus: system integration.)

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.

46. A 16-bit unsigned value can represent how many distinct values? (Related focus: hardware/software integration.)

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.

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

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.

48. A cache has 800 hits in 1,000 accesses. What is its hit rate? (Related focus: device drivers.)

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

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

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.

56. A 16-bit unsigned value can represent how many distinct values? (Related focus: device protocols.)

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.

57. A clock period is 4 ns. What is the corresponding frequency? (Related focus: system integration.)

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.

58. A cache has 800 hits in 1,000 accesses. What is its hit rate? (Related focus: hardware/software integration.)

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

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

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.

60. A test suite has 72 passing tests out of 80. What percentage pass? (Related focus: device drivers.)

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

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

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.

62. Which is the primary role of an interrupt in many processor systems? (Related focus: device protocols.)

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.

63. Why should an ADC reference voltage be stable? (Related focus: system integration.)

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.

64. 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: hardware/software integration.)

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.

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

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.

66. A 16-bit unsigned value can represent how many distinct values? (Related focus: device drivers.)

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.

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

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.

68. A cache has 800 hits in 1,000 accesses. What is its hit rate? (Related focus: device protocols.)

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

69. A 5 V source supplies 0.3 A. What is the ideal power delivered? (Related focus: system integration.)

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.

76. A 16-bit unsigned value can represent how many distinct values? (Related focus: hardware/software integration.)

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.

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

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.

78. A cache has 800 hits in 1,000 accesses. What is its hit rate? (Related focus: device drivers.)

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

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

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.

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

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

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

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.

82. Which is the primary role of an interrupt in many processor systems? (Related focus: hardware/software integration.)

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.

83. Why should an ADC reference voltage be stable? (Related focus: firmware.)

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.

84. 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: device drivers.)

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.

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

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.

86. A 16-bit unsigned value can represent how many distinct values? (Related focus: device protocols.)

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.

87. A clock period is 4 ns. What is the corresponding frequency? (Related focus: system integration.)

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.

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

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.

96. A 16-bit unsigned value can represent how many distinct values? (Related focus: device drivers.)

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.

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

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.

98. What is the main engineering purpose of hardware/software integration 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: hardware/software integration supports a defined system function. Requirements, verification, and documentation remain important.

99. Which evidence best demonstrates that hardware/software integration 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.

100. A defect related to hardware/software integration 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.