Skip to content

Programming Concepts

Which term refers to a variable listed in a function's definition that receives a value when the function is called?

Difficulty: Easy

About this MCQ

This Easy Programming Concepts MCQ checks one syllabus fact.

The question is: “Which term refers to a variable listed in a function's definition that receives a value when the function is called?”

The accepted answer is C. Parameter. Parameter is the person, body, or term that satisfies “Which term refers to a variable listed in a function's definition that receives a value when the function is called” (option C). Option A (“Runtime error”) does not match the stem; it is a near-miss used to catch incomplete recall of Parameter. Option B (“Modular programming”) does not match the stem; it is a near-miss used to catch incomplete recall of Parameter. Remaining alternatives (Code comment) fall outside the same rule and should be eliminated once Parameter is identified. Programming Concepts questions of this type reward precise definitions rather than approximate associations. Programming Concepts recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.

Correct answer

C. Parameter

Explanation

Parameter is the person, body, or term that satisfies “Which term refers to a variable listed in a function's definition that receives a value when the function is called” (option C). Option A (“Runtime error”) does not match the stem; it is a near-miss used to catch incomplete recall of Parameter. Option B (“Modular programming”) does not match the stem; it is a near-miss used to catch incomplete recall of Parameter. Remaining alternatives (Code comment) fall outside the same rule and should be eliminated once Parameter is identified. Programming Concepts questions of this type reward precise definitions rather than approximate associations. Programming Concepts recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.

Source: Programming Concepts Official Reference Guide

Tags: computer science, programming, coding basics, software development

Submitted by: MCQsHub Editorial

Related MCQs

More Programming Concepts MCQs