Multiple choice

Match the following:

1. int A. 2 bytes
2. short B. 1 byte
3. long C. 4 bytes
4. byte D. 8 bytes

  1. 1 - C, 2 - A, 3 - B, 4 - D

  2. 1 - C, 2 - A, 3 - D, 4 - B

  3. 1 - A, 2 - C, 3 - D, 4 - B

  4. 1 - C, 2 - D, 3 - A, 4 - B

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The storage capacity of different data types is int - 4 bytes short - 2 bytes byte - 1 byte long - 8 bytes