logo

AQA A-Level Computer Science practice

In the document "The green, green grass grows", what value should be associated with the key "green" when letter case is ignored?

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

At a glance

MCQ

Type

practice

Style

Topic

Dictionaries

Exam-style question

Try this first

In the document "The green, green grass grows", what value should be associated with the key "green" when letter case is ignored?.

  1. A.0
  2. B.1
  3. C.2
  4. D.3

Answer and explanation

Concise answer

1

Why this is correct

The word "green" occurs twice, so its associated value is 2.

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