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

1) Which of the following statements is NOT true about floating-point C++ data t

ID: 3581705 • Letter: 1

Question

1) Which of the following statements is NOT true about floating-point C++ data types?
a. An exponential (base-2) representation is used.
b. The exponent part is a power of 2.
c. The precision (number of decimal places) works as in a pocket scientific calculator.
d. The length of the fields can go from 4 up to 16 bytes.

2) Which of the following declare an array of 5 characters, and initializes them to some known values?
a. char array[5]={'a','b','c','d','e'};
b. char array[4]={'a','b','c','d','e'};
c. char array[5]={''};
d. char array[]={'a','b','d','e'};
e. A and C
f. B and D
g. all of the above

3) Which of the following function declarations correctly expect an array as the first argument?
a. void f1(int array, int size);
b. void f1(int& array, int size);
c. void f1(int array[100], int size);
d. void f1(float array[], int size);
e. All of the above
f. C and D
g. A and B

Explanation / Answer

1) option A , base 10 representation is used not base 2

2)option e,A and C

3)option D , void f1(float array[],int size)

Float array argument