题目
题目
单项选择题

Question at position 19 Given a function foo that takes an integer as an argument and returns a function as its result, which of the following statements is TRUE about foo?The function returned by foo must return an integer as a result. foo is a higher-order function, while the function returned by foo may or may not be a higher-order functionThe function returned by foo is a higher-order function.The function returned by foo must take an integer as an argument.Clear my selection

选项
A.The function returned by foo must return an integer as a result.
B.foo is a higher-order function, while the function returned by foo may or may not be a higher-order function
C.The function returned by foo is a higher-order function.
D.The function returned by foo must take an integer as an argument.
查看解析

查看解析

标准答案
Please login to view
思路分析
The question describes a function foo that accepts an integer and returns another function. This setup immediately identifies foo as a higher-order function since it returns a function as its result. Option 1: 'The function returned by foo must return an integer as a result.' This is not necessarily true. The returned func......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!