Question 1: The answer that most closely explains what Margaret Hamilton meant by the statement, “It’s like preventative healthcare, but preventative software,” is:
While a root canal can be performed by a dentist, there are also steps that could be taken to prevent its necessity. Similarly, there are steps that can be taken to prevent errors and issues due to poorly engineered software.
Question 2: The best explanation of a software function is:
A function that provides a set of instructions or tasks that a software program performs.
Question 3: The example Car.Engine.CruiseControl.setCruiseSpeed(55)
is an example of which paradigm:
Object-oriented programming.
Question 4: It is critical for a developer to include well-written documentation about what each function in the code does:
So that others working on a different part of the overall project are able to write code that interacts with their work.
Question 5: The difference between private and public functions is:
Private functions are only accessible to functions within the parent object, public functions can be accessed by other objects.