Appearance
Computational Mathematics - Practice Test 1
This test covers Modules 1-2.
Questions
- Define a proposition.
- When is an implication
p -> qfalse? - State both quantifier-negation laws.
- What is a tautology?
- What is a well-formed formula?
- Distinguish a free variable from a bound variable.
- What is a formation tree?
- Give two benefits of type checking.
- What is type inference?
- Explain one limitation of computable type checking.
Answer Key
- A statement with a definite truth value, true or false.
- When
pis true andqis false. not forall x P(x)is equivalent toexists x not P(x);not exists x P(x)is equivalent toforall x not P(x).- A formula true under every valuation.
- A formula that follows the grammar rules of the formal language.
- A free variable is outside a quantifier's scope; a bound variable is within it.
- A tree showing how a formula was constructed from its grammar rules.
- Earlier error detection, clearer documentation, safer refactoring, or compiler optimization.
- Deduction of a likely type from an expression's context and operations.
- Rich language features can make general type checking or inference undecidable.