Pakistan's best MCQs practice hub — FPSC · PPSC · CSS · NTS · Other Exams
Login

What is a reusable block of code that performs a specific task called?

AVariable
BLoop
CArray
DFunction

Explanation

– A function is a reusable block of code for a specific task.
– It can be called multiple times in a program.
– Functions make programs more organized and easier to read.

Exam Relevance
  • Topic: Programming Basics
  • Subtopic: Programming Concepts
Submitted by: mcqstutor Team More Computer MCQs →

No Comments

Leave a comment

Your email address will not be published. Required fields are marked *