CISC 3140 EXAM – 2 QUESTIONS AND ANSWERS
How might Backus-Naur form be used in a business programming situation? - Answers
:To specify input and output syntax for things like correct input enters for fields within
firms, for business application.
In which country was the Therac-25 manufactures? - Answers :Canada
At what point in the programming process should a programmer begin writing
comments? - Answers :Before they start writing code.
How is the programming methodology of successive refinement related to OOP? -
Answers :You can assign each refinement to a class.
Why must global variables be considered "poison"? - Answers :Because they can
modify only part pf the program and make it difficult to detect errors.
What is the purpose of an X-server? That is, what does an X-server do when it is in
use? - Answers :It displays/reorders graphics, essentially it provides the GUI.
What is the difference between declarative and imperative language? - Answers
:Declarative - specify what you want.
Imperative - specifies how to get what is wanted.
What is the function of the "little old lady" of the programming group (for what is this
person responsible)? - Answers :Takes care of a nasty little details.
There are a number of different types of tools available to assist in debugging and
testing a program. What is one such type of program? (You need not name a specific
example of such a tool; it is sufficient to say what it does, but you may name such a tool
if you wish). - Answers :GNU debugger - GDB which keep record of bugs and fixes.
Recall that re-entrant code is code that does not modify itself. Give one example of what
this makes possible that would not be possible otherwise. - Answers :It allows multiple
users to use code at the same time.
Why would you use the add subcommand of Subversion? - Answers :It puts files under
version control.
Even though the Java language itself has no graphics facility, it is often considered a
language of choice for graphic programming. Why? - Answers :Because it has many
libraries for graphics.
When is an agile programming a programming methodology of choice? - Answers
:Firefighting
How might Backus-Naur form be used in a business programming situation? - Answers
:To specify input and output syntax for things like correct input enters for fields within
firms, for business application.
In which country was the Therac-25 manufactures? - Answers :Canada
At what point in the programming process should a programmer begin writing
comments? - Answers :Before they start writing code.
How is the programming methodology of successive refinement related to OOP? -
Answers :You can assign each refinement to a class.
Why must global variables be considered "poison"? - Answers :Because they can
modify only part pf the program and make it difficult to detect errors.
What is the purpose of an X-server? That is, what does an X-server do when it is in
use? - Answers :It displays/reorders graphics, essentially it provides the GUI.
What is the difference between declarative and imperative language? - Answers
:Declarative - specify what you want.
Imperative - specifies how to get what is wanted.
What is the function of the "little old lady" of the programming group (for what is this
person responsible)? - Answers :Takes care of a nasty little details.
There are a number of different types of tools available to assist in debugging and
testing a program. What is one such type of program? (You need not name a specific
example of such a tool; it is sufficient to say what it does, but you may name such a tool
if you wish). - Answers :GNU debugger - GDB which keep record of bugs and fixes.
Recall that re-entrant code is code that does not modify itself. Give one example of what
this makes possible that would not be possible otherwise. - Answers :It allows multiple
users to use code at the same time.
Why would you use the add subcommand of Subversion? - Answers :It puts files under
version control.
Even though the Java language itself has no graphics facility, it is often considered a
language of choice for graphic programming. Why? - Answers :Because it has many
libraries for graphics.
When is an agile programming a programming methodology of choice? - Answers
:Firefighting