ISRO Computer Science (CSE) 2008 - Question 1

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2008

Which of the following is an illegal array definition?

  • A. Type COLONGE : (LIME, PINE, MUSK, MENTHOL); var a : array [COLONGE] of REAL;
  • B. var a : array [REAL] of REAL;
  • C. var a : array ['A' ... 'Z'] of REAL;
  • D. var a : array [BOOLEAN] of REAL;

Answer: B. var a : array [REAL] of REAL;

Explanation: Array index must be integers, enumerators, characters or boolean (discrete types). It cannot be a REAL type.

| All questions of ISRO Computer Science (CSE) 2008