logo

Question detail

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

Try the question, check the answer, then read the explanation to understand the curriculum point.

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.[]

Model answer

What a good answer should say

  • [3, 5]

Explanation

Why this works

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

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.