Question

1. in1 = True in2 = False out = in1 and in2 What is the value...

1. in1 = True

in2 = False

out = in1 and in2

What is the value of out?

True or False?

2.

in1 = False

in2 = False

out = not in1 and (in2 or not in1)

What is the value of out? True or False?

3.

in1 = True

in2 = False and not in1

in3 = in1 and in2

out = in1 and not in3

What is the value of out? True or False

Homework Answers

Answer #1

1. Value of out is 'false'

EXPLANATION:

'and' gives result 'true' when both the conditions are true but if either of them is false then overall the result is 'false'.

So,

true and false = false

Therefore, out= false

2. The value of out is 'true'

EXPLANATION:

Or returns true if one of the conditions is true and returns false if both the conditions care false.

not in1: returns opposite of in1

Since in1 is false, so

not in1= true

Overall,

out= true and (false or true)

out= true and true

out= true

3. The value of out is True

EXPLANATION:

in1= True

in2= False and False

= False

in3= True and False

= False

out= True and True

out= True

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
True/False - The chemical gradient drive K+ from cytosol out to the ECF True/False - The...
True/False - The chemical gradient drive K+ from cytosol out to the ECF True/False - The chemical gradient drive Na+ from cytosol out to the ECF True/False - The membrane is equally permeable to all ions
What is the radius (in inches) of the base of a cone that will have the...
What is the radius (in inches) of the base of a cone that will have the smallest possible surface area for a volume of 12.7 oz.? Vcone = 1/3πr2h SAcone = πr(r2+h2)1/2 + πr2 1 oz = 1.80468751 in3 Check your formulas with these values: for r=2 in and h=4 in, V=16.755 in3 and SA=40.666 in2
1.) True or False. __________ The buyer of an option has the risk of having to...
1.) True or False. __________ The buyer of an option has the risk of having to meet margin calls. 2.) True or False. __________The option buyer’s financial risk is limited to the premium paid. 3.) True or False. __________An option seller must deposit margin to cover potential losses. 4.) What is an Option? Provide a definition. (3 points) ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ 5.) What are the two (2) types of Options? Describe or define each briefly. (4 points) ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________...
True or false. effect modification and correlation value 1) True or False? An initial analysis finds...
True or false. effect modification and correlation value 1) True or False? An initial analysis finds that the estimated slope for the regression line predicting SBP as a function of “Fizzy Delicious Lite” soda consumption (in liters) is b1 = 8.02. Fizzy Delicious Lite soda consumption is associated with Yummy Yummy candy consumption, and Yummy Yummy candy consumption is associated with SBP. When Yummy Yummy candy consumption is added to the model, the estimated effect of Fizzy Delicious Lite consumption...
True or false. Show your work and write out the whole word: true or false. Since...
True or false. Show your work and write out the whole word: true or false. Since exp2 x is increasing, its inverse, log2 x, is decreasing.
1. (TRUE or FALSE?) The lower the interest rate, the faster the investment will grow. 2....
1. (TRUE or FALSE?) The lower the interest rate, the faster the investment will grow. 2. (TRUE or FALSE?) The higher the interest rate, the lower the future value of an investment. 3. (TRUE or FALSE?) Compound growth occurs when the initial value of a number increases or decreases each period by the factor 1/(1 + growth rate).
1(a). (TRUE or FALSE?) Financial managers should not rely on the net present value method as...
1(a). (TRUE or FALSE?) Financial managers should not rely on the net present value method as a primary decision method. 1(b). (TRUE or FALSE?) If the value of one currency decreases relative to the value of another currency, the currency with the falling value is said to be strengthening. 1(c). (TRUE or FALSE?) Perpetuities contain an infinite number of annuity payments.
1. A higher p-value corresponds to higher confidence in the stated result. True or False? 2....
1. A higher p-value corresponds to higher confidence in the stated result. True or False? 2. The function "errorbar()" is used to calculate standard errors of means (which are often used in plots with error bars). True or False? 3. For a given data set, the 80% confidence interval for the mean is going to be larger than the 90% confidence interval for the mean. True or False? 4. For a given data set, the 90% confidence interval for the...
Software engineering: Are the following statements true or false 1. True or False: Engineering a software...
Software engineering: Are the following statements true or false 1. True or False: Engineering a software product requires the documentation of the structural and behavioral requirements after coding 2. True or False: Testing phase can complete before coding phase is complete 3. True or False: Analysis phase can start as soon as requirements phase is complete
1. When computing a value-weighted index, we use a "Divisor". True False 2. The primary market...
1. When computing a value-weighted index, we use a "Divisor". True False 2. The primary market for stocks is the IPO market, not the stock market. True False 3. An index has a market value of 13,447.25 at the beginning of the period and 13,893.57 at the end of the period. If you want the beginning index value to be 2,000, what will be the ending index value? a. 2,000 b. 13,893.57 c. 13,447.25 d. none ANSWER all or i...