Question

In: Electrical Engineering

Determine the value, true or false, of each of the following Boolean expressions, assuming that the...

Determine the value, true or false, of each of the following Boolean expressions,
assuming that the value of the variable count is 0 and the value of the variable limit is
10. Give your answer as one of the values true or false.
a. (count == 0) && (limit < 20)
b. count == 0 && limit < 20
c. (limit > 20) || (count < 5)
d. !(count == 12)
e. (count == 1) && (x < y)
f. (count < 10) || (x < y)
g. !( ((count < 10) || (x < y)) && (count >= 0) )
h. ((limit/count) > 7) || (limit < 20)
i. (limit < 20) || ((limit/count) > 7)
j. ((limit/count) > 7) && (limit < 0)
k. (limit < 0) && ((limit/count) > 7)
l. (5 && 7) + (!6)

Hi teacher this is true false statement please help me out with this thanks

Solutions

Expert Solution

initially count=0, limit = 10,

(a) TRUE  

because both the conditions count=0 And limit <20 are true in logical AND operation both codition should be true for result to be  TRUE.

(b) TRUE   

  because both the conditions count=0 And limit <20 are true in logical AND operation both codition should be true for result to be  TRUE .

(c) TRUE

(limit > 20) || (count < 5) in this statement logical OR operation , if either one of (limit > 20) and (count < 5)

is true then Output is True . In given Condition count <5 is true so the result is TRUE .

(d) TRUE  

!(count == 12) in this statement logical not is used , this statement states that if count is not equal to 12 then the statement is true . Initially count =0 , so the output is TRUE .

(e) FALSE

      (count == 1) && (x < y) if one of the condition is fails then the output is False in AND operation .

so the count==1 is False , so the result of statement is FALSE

(f) TRUE

  (count < 10) || (x < y) in this statement count< 10 is True so the output is True , in OR operation it does not depent on (x<y ) which is not given .

(g) FALSE

(h) TRUE

(i) TRUE

(j) FALSE

(k) FALSE

(l) 6 (1 1 0)

Taking 3-bit binary

(5 && 7) = 5 ( 1 0 1)

(!6) = 1 (0 0 1)

5 + 1 = 6 (1 1 0)


Related Solutions

1. Use Boolean algebra to simplify the following Boolean expressions to expressions containing a minimum number...
1. Use Boolean algebra to simplify the following Boolean expressions to expressions containing a minimum number of literals: (a) A’C’ + A’BC + B’C (b) (A + B + C)’(ABC)’ (c) ABC’ + AC (d) A’B’D + A’C’D + BD (e) (A’ + B)’(A’ + C’)’(AB’C)’ (f) (AE + A’B’)(C’D’ + CD) + (AC)’ 2. Obtain the truth table of the function F = (AB + C)(B + AC), express the function F in sum-of-minterms and product-of-maxterms forms, and express...
True or false: For each of the statements, determine whether it is true or false, then...
True or false: For each of the statements, determine whether it is true or false, then explain in a few sentences why that is the answer. Note: no marks will be given for answers that do not include an explanation. 1. If money stops being a reliable store of value, then it ceases to be useful as a medium of exchange. 2. The gold standard is an improvement over actual gold coinage because it allows the government/central bank to control...
1. Determine each of the following is true or false? If false, provide a counterexample. (a)...
1. Determine each of the following is true or false? If false, provide a counterexample. (a) Let X be a continuous random variable which has the pdf fX. Then, for each x, 0 ≤ fX(x) ≤ 1. (b) Any two independent random variables have ρXY = 0. (c) Let X and Y be random variables such that E[XY ] = E[X]E[Y ]. Then, X and Y are independent. 2. Ann plays a game with Bob. Ann draws a number X1...
Determine whether each of the following statements is true or false. If the statement is false,...
Determine whether each of the following statements is true or false. If the statement is false, modify and rewrite it so that it is a true statement. a. When a molecule has two, degenerate, “infrared active”, vibrational modes, the two vibrational modes will show absorptions at different frequencies in the infrared spectrum. b. For a given substance, strong intermolecular forces between molecules of the substance can cause peak broadening of some of the absorptions in the infrared spectrum of the...
True or False questions. Determine whether or not each of the following statements is true. If...
True or False questions. Determine whether or not each of the following statements is true. If a statement is true, prove it. If the statement is false, provide a counterexample and explain how it constitutes a counterexample. Diagrams can be useful in explaining such things. a) If the electric potential in a certain region of space is constant, then the charge enclosed by any closed surface completely contained within that region is zero. b) A sphere of radius R is...
True or False questions. Determine whether or not each of the following statements is true. If...
True or False questions. Determine whether or not each of the following statements is true. If a statement is true, prove it. If the statement is false, provide a counterexample and explain how it constitutes a counterexample. Diagrams can be useful in explaining such things. 1. A sphere of radius R is centered at the origin. A total charge Q is uniformly distributed throughout its interior. A ball of radius R/2 centered at the the origin is carved out and...
Simplify the following Boolean expressions to the minimum number of terms using the properties of Boolean...
Simplify the following Boolean expressions to the minimum number of terms using the properties of Boolean algebra (show your work and write the property you are applying). State if they cannot be simplified A. X’Y + XY B. (X + Y)(X + Y’) C. (A’ + B’) (A + B)’ D. ABC + A’B + A’BC’ E. XY + X(WZ + WZ’)
Simplify the following Boolean expressions to the minimum number of terms using the properties of Boolean...
Simplify the following Boolean expressions to the minimum number of terms using the properties of Boolean algebra (show your work and write the property you are applying). State if they cannot be simplified. A. A’B + AB B. XY + X(WZ + WZ’) C. X’Y’(X’+Y)(Y’+Y) D. ABC + A’B + A’BC’ E. (A+B)(AC+AC’)+AB+B Draw the circuit logic diagrams for both the original and simplified expressions.
Determine if each of the following statements is true or false. If it’s true, explain why....
Determine if each of the following statements is true or false. If it’s true, explain why. If it’s false explain why not, or simply give an example demonstrating why it’s false. (A correct choice of “T/F” with no explanation will not receive any credit.) (a) If a system has more equations than variables, its RREF must have a row of 0’s. (b) If a consistent system has more variables than equations, then it must have infinitely many solutions. (c) Consider...
PROBLEM #1:TRUE of FALSE For each of the following statements, determine whether it is true or...
PROBLEM #1:TRUE of FALSE For each of the following statements, determine whether it is true or false. Label “T” if it is true, otherwise label “F”. 1-a. If two distributions have the same moment-generating function, then they are identical at almost all points. For a random variable X, if its moments of order k (k > 0) exist, then its moment generating function is continuously differentiable up to order k. 1-b. LetXbearandomvariablewiththeprobabilitydensityfunctionp(x)=ca/(a+x2) where c, a are positive constants and a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT