logo

Cambridge IGCSE Computer Science practice

Which of the following can be used as an index in an array?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

cambridge_mcq

Style

Topic

Arrays

Exam-style question

Try this first

Which of the following can be used as an index in an array?.

  1. A.Only integers
  2. B.Only strings
  3. C.Any data type
  4. D.Variables

Answer and explanation

Concise answer

Variables

Why this is correct

Variables can be used as indexes to dynamically access elements in an array.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

Flashcard 1 of 6

Press Space to flip, arrows to move

Related practice questions