Multiple choice

A collection of students’ names would be stored in a(n) _______ array, whereas a listing of prices would be stored in a _______ array.

  1. string, numeric

  2. numeric, string

  3. character, string

  4. indexed, string

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

Student names consist of text characters and must be stored in string arrays to preserve the text format. Prices represent numerical values and are stored in numeric arrays for arithmetic operations. This distinction is fundamental in programming - strings for text, numbers for calculations.