A variable of the ____________ data type can hold whole numbers only.

a. string
b. int
c. double
d. decimal


b. int

Computer Science & Information Technology

You might also like to view...

(Simulation: The Tortoise and the Hare) In this problem you will recreate one of the truly great moments in history, namely, the classic race of the tortoise and the hare. You will use random number generation to develop a simulation of this memorable event.

Our contenders begin the race at “square 1” of 70 squares. Each square represents a possible position along the race course.
The finish line is at square 70. The first contender to reach or pass square 70 is rewarded with a pail of fresh carrots and lettuce.
The course weaves its way up the side of a slippery mountain, so occasionally the contenders lose ground.
There is a clock that ticks once per second. With each tick of the clock, your script should adjust the position of the animals
according to the following rules:



Use variables to keep track of the positions of the animals (i.e., position numbers are 1–70). Start each animal at position 1
(i.e., the “starting gate”). If an animal slips left before square 1, move the animal back to square 1.

Generate the percentages in the preceding table by producing a random integer, i, in the range 1 £ i £ 10. For the tortoise, per-
form a “fast plod” when 1 £ i £ 5, a “slip” when 6 £ i £ 7 or a “

Computer Science & Information Technology

____ below the worksheet grid let you switch from sheet to sheet in a workbook.

A. Cell pointers B. Mode indicators C. Scroll bars D. Sheet tabs

Computer Science & Information Technology

In an empty stack, the top pointer _____.

A. points to itself B. is null C. points to the head D. points to an empty node

Computer Science & Information Technology

A technician dropped a screw in the case of a desktop computer. Which of the following tools should be used to retrieve the screws?

A. Computer vacuum B. Plastic tweezers C. Canned air D. Screwdriver with magnetized tip

Computer Science & Information Technology