CISC 3140 MIDTERM QUESTIONS & ANSWERS
What did Therac-25 do? - Answers :radiation therapy machine that provided direct
electron beam therapy & megavolt x-ray therapy
Why is COBOL good for business programming? - Answers :-facilities aimed at
commercial application
-strong documentation
-supports decimal arithmetic
What is Backus-Naur form? - Answers :a meta-language
What is Backus-Naur used for? - Answers :it's a language used to describe the syntax
of languages used in algol60
What is Structured Programming? - Answers :a discipline based on a theorem that says
that only 3 constructs are needed to write any program
What are the 3 constructs of structured programming? - Answers :1. definition of
function & binding of names
2. execution
3. decision (if/else/then)
What is Agile Programming? - Answers :you can change the specs without approval,
used for "firefighting"
What is Successive Programming? - Answers :you can take up a problem and split it
into smaller problems
What are the 3 types of languages? - Answers :-Imperative
-Declarative
-Object Oriented
What does an Imperative language do & give an example - Answers :-it tells the
machine what to do
-C
What does a Declarative language do & give an example - Answers :-tells the machine
what it expects (a functional language)
-Haskell, OCaml
What does an Object Oriented language do & give an example - Answers :-is a middle
ground between declarative and imperative
-Java, Python
What did Therac-25 do? - Answers :radiation therapy machine that provided direct
electron beam therapy & megavolt x-ray therapy
Why is COBOL good for business programming? - Answers :-facilities aimed at
commercial application
-strong documentation
-supports decimal arithmetic
What is Backus-Naur form? - Answers :a meta-language
What is Backus-Naur used for? - Answers :it's a language used to describe the syntax
of languages used in algol60
What is Structured Programming? - Answers :a discipline based on a theorem that says
that only 3 constructs are needed to write any program
What are the 3 constructs of structured programming? - Answers :1. definition of
function & binding of names
2. execution
3. decision (if/else/then)
What is Agile Programming? - Answers :you can change the specs without approval,
used for "firefighting"
What is Successive Programming? - Answers :you can take up a problem and split it
into smaller problems
What are the 3 types of languages? - Answers :-Imperative
-Declarative
-Object Oriented
What does an Imperative language do & give an example - Answers :-it tells the
machine what to do
-C
What does a Declarative language do & give an example - Answers :-tells the machine
what it expects (a functional language)
-Haskell, OCaml
What does an Object Oriented language do & give an example - Answers :-is a middle
ground between declarative and imperative
-Java, Python