Evaluate the following expressions. (2) a. 4 * 7 == 74 / 3 b. 4 + 7 / 2 <= 9 - 15 % 6 f. 3.9 / 4 - 6 >= 8 - 6.2 * 1.5
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Evaluate the following expressions. (2)
a. 4 * 7 == 74 / 3
b. 4 + 7 / 2 <= 9 - 15 % 6
f. 3.9 / 4 - 6 >= 8 - 6.2 * 1.5
3.Suppose that x, y, and z are int variables and x = 13, y = 45, and z = 20. Determine whether the following expressions evaluate to true or false. (2, 5)
a. !(x - y <= 10)
b. x + y > 10 || z < 15
c. (x != y) && (x <= z)
4.Suppose that str1, str2, and str3 are string variables, and str1 = "Low", str2 = "High", and str3 = "Medium". Evaluate the following expressions. (2, 7)
b. str1 != "low"
d. str3 > "Medium"
5.Suppose that x, y, z, and w are int variables and x = 25, y = 3, z = 12, and w = 4. What is the output of the following statements? (2, 5)
b. cout << "y != z - 9: " << (y != z - 9) << endl;
c. cout<<"x-y==z+10:"<<(x-y==z+10)<<endl;
d. cout << "!(z < w): " << !(z < w) << endl;
6.Which of the following are not relational operators? (2) b. == e. ||
7.What is the output of the following statements? (2, 3)
b. if(12 / 2 == 4 + 1) cout << "6 ";
cout << "12 / 2 != 4 + 1" << endl;
e. if("low" <= "high")
cout << "low" << endl;
cout << "high" << endl;
Trending now
This is a popular solution!
Step by step
Solved in 5 steps