Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Help with all these An algorithm is a finite seq____ of ope___used to transform

ID: 2246396 • Letter: H

Question

Help with all these

An algorithm is a finite seq____ of ope___used to transform dat__, which when executed, solves a specific instance of an algorithmic problem. The operand si is wid___before it is added to the operand i in the expression i += si: unsigned char cu: short int si: int i: float m: double a: In the expression (i/= (double) si) the operand si is explicitly cast before it is divided into the operand i. T or F? In the expression (a - = m) the operand m is implicitly cast (that is, coerce or promoted) before it is subtracted from the operand a. What is the data type of the result of the expression (cu - 1) ? A: unsigned char B: short int C: int D: float E: double F: unsigned int T or F? A floating-point arithmetic operation always computes exact results. What is the sizeof-relationship which exists amongst the 5 signed integer data types: char, short int, int, long int, and long long int? sizeof (int) = sizeof (float) = ___bytes, ____bits. Range of int = [-2, 2 -1], range of float almostequalto [-10-, +10-]. Did you know (sizeof (double) == 2*sizeof (float))?!Which characteristics of the double data type are "double" that of the float data type? Check all that apply size-in-bytes number-of-decimal-digits-of-precision range-of-exponent

Explanation / Answer

18 widden

19 True

20 True

21 integer because char - integer is integer

22 False. In floating point calculations approximation is done in most cases

23
char    1 byte
short int 2bytes
int    2 bytes or 4 bytes
long int 4 bytes
long long int   8 bytes


24 4 bytes = 32bits
range of int :
range of float: 1.2E-38 to 3.4E+38 (outside this range is represented by -infinity or +infinity)

25 Size in bytes

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote