Exit Quiz
Question 1 of 6
1
of 6
What is the primary purpose of a function in programming?
Select one answer
to repeat a block of code multiple times
to store and retrieve data
to organise code
to perform a specific task and return a value
The primary purpose means the key reason why functions are used.
Need a hint?
Check