Question

1. Floating point representations in computers are exact, and are not prone to small floating point...

1. Floating point representations in computers are exact, and are not prone to small floating point inaccuracies.

True

False

2.

The difference between a declared variable and a declared constant is that a constant’s value can vary at run-time, but a declared variable’s value cannot ever be changed after it is initialized

True

False

3.

The expression:

72 > 116 || 27 > 15

evaluates at run-time to true.

True

False

4.

The expression:

4 > 8 && 2 < 2 * 1

evaluates at run-time to false.

True

False

5.

The expression:

7 + 1 >= 8 && 12 < 2 * 6

evaluates at run-time to true.

True

False

Homework Answers

Answer #1

Question 1:
Floating-point representations in computers are exact and are not prone to small floating-point inaccuracies.
Ans: False

It is not true that the floating-point representations in the computer are exact. The precision is not accurate, a floating-point value is APPROXIMATELY equal to 16 significant decimal digits.

Question 2:
The difference between a declared variable and a declared constant is that a constant’s value can vary at run-time, but a declared variable’s value cannot ever be changed after it is initialized
Ans: False

Once we define a variable as constant, we can change its value either in the program or during run-time whereas the declared variable value might change anywhere anytime in the program.

Question 3:
The expression:
72 > 116 || 27 > 15 evaluates at run-time to true.
Ans: True

Take the expression: 72 > 116 || 27 > 15
72>116 is false and 27>15 is true. for Logical OR any one of the statements is true then the result is true.

Question 4:
The expression: 4 > 8 && 2 < 2 * 1 evaluates at run-time to false.
Ans: True

Take the expression: 4 > 8 && 2 < 2 * 1
4>8 is false and 2>2 is also false. for Logical AND any one of the statements is false then the result is false.

Question 5:
The expression: 7 + 1 >= 8 && 12 < 2 * 6 evaluates at run-time to true.
Ans: False

Take the expression: 7 + 1 >= 8 && 12 < 2 * 6
8>=8 is true and 12<12 is false. for Logical AND any one of the statements is false then the result is false.

(Feel free to drop me a comment, If you need any help)

Hope this Helps!!!
Please upvote as well, If you got the answer?
If not please comment, I will Help you with that...

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
1. Pep/9 has one index register (True / False) 2. The hidden bit in floating point...
1. Pep/9 has one index register (True / False) 2. The hidden bit in floating point is not stored but is always there. (True / False) 3. A machine language program can change itself. (True / False)
1. Use the given conditions to find the exact value of the expression. sin(α) = -5/3,...
1. Use the given conditions to find the exact value of the expression. sin(α) = -5/3, tan(α) > 0, sin(α - 5π/3) 2. Use the given conditions to find the exact value of the expression. cos α = 24/25, sin α < 0, cos(α + π/6) 3. Use the given conditions to find the exact value of the expression. cot x = √3, cos x < 0, tan(x + π/6) 4. If α and β are acute angles such that...
1.Question 1 The seven step improvement model is fairly similar to DMAIC and PDCA. 1 point...
1.Question 1 The seven step improvement model is fairly similar to DMAIC and PDCA. 1 point True False 2.Question 2 In an X, Y Matrix, Values are weighted based on: 1 point Customer Importance Process data Cost Savings Management intuition 3.Question 3 The purpose of the X,Y Matrix is to: 1 point Identify possible causes Identify possible solutions Prioritize possible causes Prioritize possible solutions 4.Question 4 Counter measures are a whole new class of improvement tools. 1 point True False...
(1 point) Find the simplest vector parametric expression r⃗ (t) for the line that passes through...
(1 point) Find the simplest vector parametric expression r⃗ (t) for the line that passes through the points P=(5,3,−2) at time t = 4 and Q=(8,−1,−3) at time t = 10
please give exact answers Question 6 (1 point) Problems 6-9 use the following information. A dog...
please give exact answers Question 6 (1 point) Problems 6-9 use the following information. A dog frolics rectilinearly with acceleration a(t) = 2sin(t) + 9e3t + 3t2 + 5 m/s2. Initial position and velocity are both 0. At t = 0.8 s: What is the dog's acceleration (m/s2)? Answer with 3 significant figures. Question 7 (1 point) What is the dog's velocity (m/s)? Answer with 3 significant figures. Question 8 (1 point) What is the dog's position (m)? Answer with...
Question 6 (1 point) The derivative of a sine wave is a maximum at the peak...
Question 6 (1 point) The derivative of a sine wave is a maximum at the peak amplitude of the waveform. Question 6 options: True False Save Question 7 (1 point) The voltage across an inductor leads the current through it by 90%. Question 7 options: True False Save Question 8 (1 point) The length of a phasor is called the modulus or magnitude. Question 8 options: True False Save Question 9 (1 point) Which one of the following values is...
1. Suppose(x0,y0) is the closest point on the line that is the graph of y=5x+7 and...
1. Suppose(x0,y0) is the closest point on the line that is the graph of y=5x+7 and the point (61,0). What is y0? 2. True or False: arctan(2x + 1) is an antiderivative of 1/(2x2+2x+1). 3. Suppose F is an antiderivative of f(x) = 5x4- 3x2 + 1 and F(1) = 5 . What is F(2)? 4. True or False: sinx is an antiderivative of cosx 5. What is the minimum value of 12x2 - x3 on [0,10]?
uestion 8 (1 point) Saved It is believed that using a solid state drive (SSD) in...
uestion 8 (1 point) Saved It is believed that using a solid state drive (SSD) in a computer results in faster boot times when compared to a computer with a traditional hard disk (HDD). You sample a group of computers and use the sample statistics to calculate a 95% confidence interval of (3.83, 12.85). This interval estimates the difference of (average boot time (HDD) - average boot time (SSD)). What can we conclude from this interval? Question 8 options: 1)...
ON PYTHON Exercise 1. For each of the relational/logical expressions listed in exercise1.py determine whether the...
ON PYTHON Exercise 1. For each of the relational/logical expressions listed in exercise1.py determine whether the expression evaluates to True or False. Place a comment after each expression with the truth value and submit the updated exercise1.py file to the dropbox. For example, x = 10 y = 11 x < y # True  insert a comment after the expression x = 10 y = 11 a = 12.5 b = -5.2 x < y # True x <...
True False Select the most correct answer. Question 1 (1 point) Most databases are just in...
True False Select the most correct answer. Question 1 (1 point) Most databases are just in 1NF. Question 1 options: True False Question 2 (1 point) A subquery is always preferred over a join. Question 2 options: True False Question 3 (1 point) A database may consist only of multiple files. Question 3 options: True False Question 4 (1 point) A database may exist without a database management system. Question 4 options: True False Question 5 (1 point) The insert...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT