Type ________ is designed to precisely represent numbers with decimal points, especially monetary amounts.
a) digit
b) decimal
c) float
d) double
b) decimal
You might also like to view...
Answer the following statements true (T) or false (F)
1. Any sorting algorithm, such as bubble sort or selection sort, that can be used on data stored in an array can also be used on data stored in a vector. 2. If algorithm A requires 2n + 1 basic operations to process an input of size n, and Algorithm B requires 3n + 2 basic operations to process the same input, algorithms A and B are considered to be equally efficient. 3. With pointer variables you can access, but you cannot modify, data in other variables. 4. An array name is a pointer constant because the address it represents cannot be changed during run-time. 5. Memory cannot be allocated after a program is already running.
Which of the following code segments does not increment val by 3:
a. val += 3; b. val = val + 1; val = val + 1; val = val + 1; c. c = 3; val = val + (c == 3 ? 2 : 3); d. All of the above increment val by 3.
Write a fragment of code that will compute the sum of the first n positive odd integers. For example, if n is 5, you should compute 1 + 3 + 5 + 7 + 9.
What will be an ideal response?
Describe the two rules guiding the notation of IPv6.
What will be an ideal response?