CISC 3140 FINAL QUESTIONS AND ANSWERS (SOLVED) 100% CORRECT.
What are two actions that people involved in the Therac debacle could have taken to reduce the
damage that the machine caused? - (answer)Listen to and investigate the end-user complaints
Test software successively and refine the old code, instead of relying on old code.
What kind of machine was the Therac-25? (What was the machine used for) - (answer)It was an X-ray
radiation therapy machine used to treat cancer patients.
What kind of machine was the Therac-25 (be careful here, the question is not what was the machine
used for, but what did it actually do)? - (answer)Linear accelerator that fired electrons.
In what country was the Therac-25 manufactured? - (answer)Canada
What was one error in the Therac software that resulted in a death? - (answer)switching too fast caused
it to not be able to adjust to new setting
The Therac programmers engaged in several practices that either failed to prevent errors from being
included in production code or failed to repair programming errors when incorrect program behavior
was detected. Briefly state what two of those detrimental practices were - (answer)Never listen to end-
user complaints
They did not properly test the software and failed to prevent errors
They denied the errors could exist and failed to repair them.
What was one government agency that was involved with dealing with Therac-25 problems? -
(answer)FDA in the USA and Health Protection Branch in Canada
Why is the Therac report of great importance to programmers - (answer)Bad software kills people
The Therac programmers engaged in several practices that either failed to prevent errors - (answer)Poor
documentation. They did not listen to the end-user. Insufficient testing
, CISC 3140 FINAL QUESTIONS AND ANSWERS (SOLVED) 100% CORRECT.
True or False? Replacement of a hardware lockout in a computer-controlled machine by software will
always result in faulty machine operation. - (answer)False. We need to verify the new hardware is
compatible with the software. If the hardware is compatible, the only limitation is the implementation
of the software.
Imperative Programming - (answer)By definition, an imperative language tells the computer what to do
Declarative Programming - (answer)State what we want without telling the machine how to do it.
OOP - (answer)State what we want in the form of objects
What are the three programming paradigms - (answer)Imperative, Declarative, Object-Oriented
What is one advantage declarative programming languages have over imperative programming
languages? - (answer)a) declarative programming languages will figure out how to do the task by
themselves as opposed to imperative programming languages that would have to program how to do
the task.
b) It hides the machine. Instead of deciding how to do something, the programmer can focus on what
they want done
c) Declarative languages let go of memory constrain
When is it incorrect to say "A computer program is a sequence of instructions to be executed by a
computer"? - (answer)With declarative programming
Name 1 imperative, 1 declarative, and 1 object-oriented language - (answer)Imperative - Algol-60,
Javascript
Declarative - Haskel or Mircosoft Excel
Object-Oriented - Java, C, C++
Name a programming language other than C++ or Java that can be used for Object-Oriented
Programming? - (answer)Python
What are two actions that people involved in the Therac debacle could have taken to reduce the
damage that the machine caused? - (answer)Listen to and investigate the end-user complaints
Test software successively and refine the old code, instead of relying on old code.
What kind of machine was the Therac-25? (What was the machine used for) - (answer)It was an X-ray
radiation therapy machine used to treat cancer patients.
What kind of machine was the Therac-25 (be careful here, the question is not what was the machine
used for, but what did it actually do)? - (answer)Linear accelerator that fired electrons.
In what country was the Therac-25 manufactured? - (answer)Canada
What was one error in the Therac software that resulted in a death? - (answer)switching too fast caused
it to not be able to adjust to new setting
The Therac programmers engaged in several practices that either failed to prevent errors from being
included in production code or failed to repair programming errors when incorrect program behavior
was detected. Briefly state what two of those detrimental practices were - (answer)Never listen to end-
user complaints
They did not properly test the software and failed to prevent errors
They denied the errors could exist and failed to repair them.
What was one government agency that was involved with dealing with Therac-25 problems? -
(answer)FDA in the USA and Health Protection Branch in Canada
Why is the Therac report of great importance to programmers - (answer)Bad software kills people
The Therac programmers engaged in several practices that either failed to prevent errors - (answer)Poor
documentation. They did not listen to the end-user. Insufficient testing
, CISC 3140 FINAL QUESTIONS AND ANSWERS (SOLVED) 100% CORRECT.
True or False? Replacement of a hardware lockout in a computer-controlled machine by software will
always result in faulty machine operation. - (answer)False. We need to verify the new hardware is
compatible with the software. If the hardware is compatible, the only limitation is the implementation
of the software.
Imperative Programming - (answer)By definition, an imperative language tells the computer what to do
Declarative Programming - (answer)State what we want without telling the machine how to do it.
OOP - (answer)State what we want in the form of objects
What are the three programming paradigms - (answer)Imperative, Declarative, Object-Oriented
What is one advantage declarative programming languages have over imperative programming
languages? - (answer)a) declarative programming languages will figure out how to do the task by
themselves as opposed to imperative programming languages that would have to program how to do
the task.
b) It hides the machine. Instead of deciding how to do something, the programmer can focus on what
they want done
c) Declarative languages let go of memory constrain
When is it incorrect to say "A computer program is a sequence of instructions to be executed by a
computer"? - (answer)With declarative programming
Name 1 imperative, 1 declarative, and 1 object-oriented language - (answer)Imperative - Algol-60,
Javascript
Declarative - Haskel or Mircosoft Excel
Object-Oriented - Java, C, C++
Name a programming language other than C++ or Java that can be used for Object-Oriented
Programming? - (answer)Python