Home › Olympiad (Class 11) › Computer Science › Programming Languages › A function that can be assigned to a variable li…
A function that can be assigned to a variable like any value is called:
AFixed class
BFirst class
CFirst order
DFront class
Answer & Solution
Correct answer: B. First class
1. Some languages treat functions as ordinary values.
2. Such a function can be stored in a variable.
3. That function is first class.
_Source: OpenStax Introduction to Computer Science, Chapter 7, High-Level Programming Languages._
Related questions
The same inherited behaviour acts differently depending on context. This is:A child class takes on attributes from its parent class. This principle is:A class keeps its data and methods together and hides the inner workings. This is:Building one object from a class is known as:In object oriented code, the blueprint used to construct objects is the:A function that accepts other functions as arguments is called:A function that calls itself to solve smaller versions of a problem uses:A language built from facts and rules about a problem is a: