logo

AQA A-Level Computer Science practice

Given the list [4, 3, 5], which list is its tail?

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

At a glance

MCQ

Type

practice

Style

Topic

Lists in functional programming

Exam-style question

Try this first

Given the list [4, 3, 5], which list is its tail?.

  1. A.[4]
  2. B.[3, 5]
  3. C.[4, 3]
  4. D.[]

Answer and explanation

Concise answer

[3, 5]

Why this is correct

The head is the first element, 4. The tail is the list containing all the remaining elements, [3, 5].

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

No flashcards are published for this page yet.

Related practice questions