CompTIA Tech+ FC0-U71 Practice Question
Which of the following best describes the use of a function in a programming language?
A block of code designed to perform a particular task, which can be executed when the function is called
A section of code that is executed repeatedly, either a set number of times or until a certain condition is met
A single line in a program that the computer reads and executes immediately
A container used to store multiple values of the same type, accessing them with an index