A variable that will be used to contain only whole numbers should be declared as a(n) ____ data type.

A. Decimal
B. Double
C. Integer
D. Single


Answer: C

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. Usually, you iterate over a tuple’s elements. b. Like list indices, tuple indices start at 0. c. The following code creates time_tuple representing an hour, minute and second, displays the tuple, then uses its elements to calculate the number of seconds since midnight: In [1]: time_tuple = (9, 16, 1) In [2]: time_tuple Out[2]: (9, 16, 1) In [3]: time_tuple[0] * 3600 + time_tuple[1] * 60 + time_tuple[2] Out[3]: 33361 d. Assigning a value to a tuple element causes a TypeError.

Computer Science & Information Technology

The ____ attribute of the Property inspector specifies the background color for selected cells.

A. Bg B. Brdr C. Bgd D. Color

Computer Science & Information Technology

List and describe the three main examples of wireless communications technologies described in the chapter.

What will be an ideal response?

Computer Science & Information Technology

Which of the following is correct?

A .25 = (2 x 102) + (5 x 101) B. 289 = (2 x 103) + (8 x 101) + (9 x 100) C. 7523 = (7 x 103) + (5 x 102) + (2 x 101) + (3 x 100) D. 0.628 = (6 x 10-3) + (2 x 10-2) + (8 x 10-1)

Computer Science & Information Technology