Computer Programming (COPROG) Practice Test

Access More Questions
Which primitive data type stores integer values?
Correct Answer:
Int
Explanation:
Integer values are handled by primitive numeric types that represent whole numbers. Among them, the standard integer type is used for general purposes because it provides a broad range without extra memory overhead, making it the typical choice for arithmetic, counting, and indexing. In many languages, a byte uses 8 bits for very small values, a short uses 16 bits for moderate ranges, and a long uses 64 bits for very large values; the standard integer type provides a balanced default when you don’t need to optimize for extreme sizes. So the primitive that stores integer values in everyday use is the standard integer type.

Access more questions from this quiz

Continue to Computer Programming (COPROG) Practice Test for more practice questions and the full quiz experience.

Access More Questions