多选题 You need to create an application that is used to calculate the attendance at a baseball game. What data type would be most appropriate for storing the attendance?
  • A. boolean
  • B. char
  • C. float
  • D. int
【正确答案】 D
【答案解析】棒球比赛的出席人数将会是一个在int范围内的整数。A、B和C不正确。A不正确,因为boolean变量用于存储字面值true或false。B不正确,因为char数据类型用于存储单个Unicode字符。C不正确,因为float用于存储浮点数。