Question

In: Computer Science

Which one of the following expressions evaluates to True? Select one: 5 > 1 and 1...

Which one of the following expressions evaluates to True?

Select one:

5 > 1 and 1 == 5

5 > 9 or 2 < 0 or not 42 > 1

not 8 < 5 and not 10 == 3

not (15 == 15 or 15 < 0)

36 == 35 or 35 > 2 and 35 < 0

Solutions

Expert Solution

a) 5>1 and 1==5

For the above statement, 5 is greater than 1, so its true.

1 is not equal to 5, so it is false.

Now, two Statements are related to and. One is true and other is false. So true and false gives false.

Hence, final result is FALSE.

b) 5 is not greater than 9. So, it gives false.

2 is not less than 0. So, it gives false

42 is greater than 1. Not of that means not of true. So, it gives false.

So, three False statements are connected with or.

Hence, the final result is False

c) 8 is not less than 5. Not of that gives True.

10 is not equal to 3. Not of that gives True.

So two true statements are connected by and.

Hence, final answer is True.

d) 15 is equal to 15. So it gives true.

15 is not less than 0. So it gives False.

Or of both the statements gives true.

Not of true gives False .

Hence, final answer is False

e) 36 is not equal to 35. So it gives false

35 is greater than 2. So, it gives true.

35 is not less than 0. So, it gives false.

So, or of false and true gives true.

And then, and of true and false gives false

Hence, final answer is false.

So, out of all 5 options only c option gives True.

Hence, correct answer is (C).


Related Solutions

Which of the following statements about COBIT 5 is not true? Select one: a. It is...
Which of the following statements about COBIT 5 is not true? Select one: a. It is a framework designed to assist with critical business issues related to the governance and management of information technology b. One of the five principles of COBIT 5 is Enabling a Holistic Approach c. COBIT 5 helps companies only if they use it in addition to following COSO ERM d. All of the above statements are true
1. Which of the following statements are true? Select all that apply. Select one or more:...
1. Which of the following statements are true? Select all that apply. Select one or more: a. Earnings per share is calculated by dividing retained earnings by the number of shares of common stock outstanding. b. The creditors of a firm must be satisfied before any earnings can be distributed to the common shareholders. c. When referring to ratio comparisons, time-series analysis compares a firm to that of an industry leader. d. The operating profit margin must take into account...
3.. 1, Which of the following statements is true? Select one: a. It is possible to...
3.. 1, Which of the following statements is true? Select one: a. It is possible to make conclusions about the value of stock options without making any assumption about the volatility of stock prices. b. The put-call parity also hold for American options c. The value of a call generally increases as current stock price, the time to expiration, the volatility and the risk-free interest rate decrease. d. The value of a put generally decreases as current stock price, the...
Read the following 5 statements and decide which of them are TRUE: Select one or more:...
Read the following 5 statements and decide which of them are TRUE: Select one or more: a. An asset is preferred by investors, if it has a higher return compared to another asset, even if the risk is also higher. b. The covariance as well as correlation measure the statistical relationship between two variables and are both symmetric. c. The contribution of an individual asset to the expected return of a portfolio is purely given by the expected return of...
Read the following 5 statements and decide which of them are TRUE: Select one or more:...
Read the following 5 statements and decide which of them are TRUE: Select one or more: a. In the CAPM it is assumed that the relationship between returns and Beta is non-linear. b. The beta of the market portfolio is 1 while the beta of the risk free investment is 0. c. The security market line shows that the expected return of an investment is given by the risk free rate plus a risk premium for its sensitivity to changes...
#Python 5. Write function called evaluate() that evaluates the following Python expressions or assignments as specified:...
#Python 5. Write function called evaluate() that evaluates the following Python expressions or assignments as specified: Request input from the user for three variables (floating-point or integer) x, y, z, and myAverage. If the average of the first three numbers equals the fourth number, print 'Your average is correct.'. If not print 'Your average is not correct'. and print the correct average. Print the largest value among x, y, and z. Print the minimum value of x, y, y. >>>...
Which of the following is / are not true about Securitization: - Select one: a. It...
Which of the following is / are not true about Securitization: - Select one: a. It is process by which receivables are converted into securities b. It is process by which collateral securities are given by borrowers to financial institutions for loan c. It is a process by which default risk is transferred to third parties d. It is a process in which SPV plays the vital role.
1. Which of the following are TRUE about sperm? Select one or more: a. Hyaluronidase is...
1. Which of the following are TRUE about sperm? Select one or more: a. Hyaluronidase is the enzyme involved in dissolving the protective coating around the unfertilized ovum. b. The first sperm cell to reach the egg successfully fertilizes that cell. c. Sperm cells have half the number of chromosomes as a spermatagoium and are about the same size. d. Sperm cell capacitation, which occurs after ejaculation, is required for sperm cells to be active. e. Mitochodria are located in...
Lab 7. Boolean Expressions a) Write a program that evaluates the following expressions. Assign reasonable values...
Lab 7. Boolean Expressions a) Write a program that evaluates the following expressions. Assign reasonable values to the variables. Print the results. a<b≥c , √a−7 b2 ≠c , d∨e∧f , a<b∨¬d ∧means and, ∨means inclusive or, ¬ means not. b) Write a program that asks a user whether he or she wants to become a Java programmer and determines if the user typed “yes” (Print true if yes and false otherwise.) Don't use the if statement here
Which one of the following statements is NOT true? Select one: A. The need for funding...
Which one of the following statements is NOT true? Select one: A. The need for funding does not end when a company goes public. B. Approval is obtained from the board of directors to issue securities. C. The lowest-cost source of external funds is often an open offer to the public. D. The investment bank decides how much money the company needs to raise and what type of security - such as debt, ordinary shares or preference shares - to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT