Академический Документы
Профессиональный Документы
Культура Документы
b)
b)
b)
b)
a) If all computer programs contain errors, then this program contains an error.
This program does not contain an error.
Therefore, it is not the case that all computer programs contain errors.
b) If Answer , then 2 is odd.
2 is not odd.
Therefore, it is not the case that all prime numbers are odd.
Use De Morgan's laws to write the negations for the following statement.
0 > x -7
Select one:
a. (x 0) v
b. (x 0)
c. (x > 0) v
d. 0> x -7
e. (x 0)
f. (x 0) v
g. (x > 0)
h. 7 x > 0
(x < -7)
(x < -7)
(x < -7)
sahi
(x -7)
(x -7)
(x < -7)
Prepare the truth tables for (((p v q ) (p v r)) (p v q)) and for (p v r).
True or False, based on their truth tables the expressions are equivalent.
Select one:
True
False sahi
Distributive
Identity
Negation
Use De
Hal is
Select
a. Hal
b. Hal
c. Hal
d. Hal
ahi
e. Hal
f. Hal
g. Hal
h. Hal
Use De Morgan's laws to write the negations for the following statement.
The dollar is at an all-time high and the stock market is at a record low.
Select one:
a. The dollar is not at an all-time high and the stock market is at a record low
.
b. The dollar is at a record low and the stock market is not at a record low.
c. The dollar is at a record low or the stock market is at an all-time high. s
ahi
d. The dollar is at a record low or the stock market is not at an all-time high.
e. The dollar is not at a record low or the stock market is at an all-time high.
f. The dollar is at an all-time high and the stock market is not at a record low
.
g. The dollar is not at an all-time high and the stock market is not at a record
low.
h. The dollar is not at an all-time high or the stock market is not at a record
low.
The statement "This loop will repeat exactly N times if it does not contain a st
op or a go to" can be rewritten as "If this loop does contains a stop or a go to
then the loop will not repeat exactly N times." ".
Select one:
True
sahi
False
The statement "Catching the 8:05 bus is a sufficient condition for my being on t
ime for work" can be rewritten as "If I catch the 8:05 bus then I'm on time for
work".
Select one:
True
sahi
False
Construct truth tables for the
Select all statements that are
Select one or more:
a.
p
q
(p v q) v ( p
True
True
True
equation (p v q) v ( p q) q.
in this truth table.
q) q
sahi
b.
p
q
False True
(p v q) v ( p q) q
False
c.
p
True
q
False
(p v q) v ( p q) q
False
sahi
d.
p
True
q
False
(p v q) v ( p q) q
True
e.
p
True
q
True
(p v q) v ( p q) q
False
f.
p
q
False True
(p v q) v ( p q) q
True
sahi
g.
p
q
(p v q) v ( p q) q
False False False
h.
p
q
(p v q) v ( p q) q
False False True
sahi
b.
p
False
q
False
r
True
( p q ) r
False
c.
p
False
q
True
r
False
( p q ) r
False
d.
p
True
q
True
r
True
( p q ) r
True
sahi
e.
p
True
q
False
r
False
( p q ) r
False
sahi
f.
p
True
q
False
r
True
( p q ) r
True
sahi
g.
p
True
q
True
r
False
( p q ) r
False
h.
p
False
q
False
r
False
( p q ) r
False
i.
p
True
q
False
r
True
( p q ) r
False
j.
p
True
q
False
r
False
( p q ) r
True
k.
p
False
q
True
r
True
( p q ) r
False
l.
p
False
q
True
r
True
( p q ) r
True
sahi
m.
p
q
False False
n.
p
True
r
True
( p q ) r
False
o.
p
q
False False
r
True
( p q ) r
True
sahi
p.
p
q
False True
q
True
( p q ) r
False True
sahi
( p q ) r
False True
sahi
a) Prepare the truth tables to show that the following statements are logically
equivalent.
(p (q v r)) (p (q r)) (p (r q))
b) Use the logical equivalence etablished in part (a) to rewrite the following s
entence in two different ways. (Assume that n represents a fixed integer.) Sel
ect two choices below that are
.
If n is prime, then n is odd or n is 2.
Select one or more:
a. If n is not prime and n
b. n is prime and if it is
c. In is prime and if n is
d. If n is 2 or it is odd,
one:
p
q
p
sahi
statement.
Write out the truth tables and determine which pairs are logically equivalent.
p v q v r
p q r
p q r
p = walks like a duck
q = talks like a duck
r = is a duck
Select one:
a. p q r
and
p q r
b. p v q v r
and
p q r
c. p q r
and
p v q v r
Choose the
"Catching the 8:05 bus is a sufficient condition for my being on time for work.
"
Select one:
a. If I do not catch the 8:05 bus, I am on on time for work.
The contrapositive of "If today is New Year's Eve, then tomorrow is January" is
"If tomorrow is not January, then today is not New Year's Eve".
Select one:
True
sahi
False
sahi
The statement "A sufficient condition for Jon's team to win the championship is
that it win the rest of its games" can be written as "If Jon's team wins the res
t of the games then they will win the championship".
Select one:
True
sahi
False
Use the contrapositive to rewrite the statement in if-then form in two ways. As
sume that only if has its formal, logical meaning.
The Cubs will win the pennant only if they win tomorrow's game. Choose the two
ly rewritten statements.
A conditional with no negations.
A conditional with negated antecedent and consequent.
"Do you mean that you think you can find out the answer to it?" said the March H
are.
"Exactly so, " said Alice.
"Then you should say what you mean," the March Hare went on.
"I do," Alice hastily replied; "at least -- at least I mean what I say -- that's
the same thing, you know."
"Not the same thing a bit!" said the Hatter. "Why, you might just as well say t
hat 'I see what I eat' is the same thing as 'I eat what I see'!"
-- from "A Mad Tea-Party" in Alice in Wonderland by Lewis Carroll
The Hatter is right. "I say what I mean" is not the same thing as "I mean what
I say". Match the sentence "I mean what I say" to it's if-then form.
Select one:
a. If I mean it, then I say it. (precise)
b. If I say it, then I mean it. (sincere)
sahi
"Do you mean that you think you can find out the answer to it?" said the March H
are.
"Exactly so, " said Alice.
"Then you should say what you mean," the March Hare went on.
"I do," Alice hastily replied; "at least -- at least I mean what I say -- that's
the same thing, you know."
"Not the same thing a bit!" said the Hatter. "Why, you might just as well say t
hat 'I see what I eat' is the same thing as 'I eat what I see'!"
-- from "A Mad Tea-Party" in Alice in Wonderland by Lewis Carroll
The Hatter is right. "I say what I mean" is not the same thing as "I mean what
I say".
What relationship do the sentences "I say what I mean" and "I mean what I say" h
ave?
Select one:
a. These sentences
b. These sentences
c. These sentences
d. These sentences
are
are
are
are
sahi
Do you mean that you think you can find out the answer to it?" said the March Ha
re.
"Exactly so, " said Alice.
"Then you should say what you mean," the March Hare went on.
"I do," Alice hastily replied; "at least -- at least I mean what I say -- that's
the same thing, you know."
"Not the same thing a bit!" said the Hatter. "Why, you might just as well say t
hat 'I see what I eat' is the same thing as 'I eat what I see'!"
-- from "A Mad Tea-Party" in Alice in Wonderland by Lewis Carroll
The Hatter is right. "I say what I mean" is not the same thing as "I mean what
I say". Match the sentence "I say what I mean" to it's if-then form.
Select one:
a. If I mean it, then I say it. (precise)
b. If I say it, then I mean it. (sincere)
sahi