logo

AQA A-Level Computer Science practice

A function takes three integer arguments one after another and returns an integer. Describe the result of supplying only the first argument, and then the result of supplying the first two arguments. Use type notation in your answer.

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

At a glance

Question

Type

practice

Style

Topic

Functional programming paradigm

Exam-style question

Try this first

A function takes three integer arguments one after another and returns an integer. Describe the result of supplying only the first argument, and then the result of supplying the first two arguments. Use type notation in your answer.

Answer and explanation

Concise answer

The function can be represented as integer → integer → integer → integer when the brackets are omitted.

Why this is correct

Each supplied argument reduces the number of arguments still required by one. The intermediate results are functions, not final integer results, until all three arguments have been supplied.

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