题目
题目

CPT_S-355-PULLM-1-LEC Scheduled Quiz 1

单项选择题

Which of the following statements best describes a higher-order function in functional programming?

选项
A.A higher-order function is a function that operates exclusively only on simple numerical data.
B.A higher-order function is any function that modifies its input values directly.
C.A higher-order function can take functions as arguments, or return a function as a result, or both.
D.A higher-order function is one that performs recursion instead of iteration to solve any given problem.
查看解析

查看解析

标准答案
Please login to view
思路分析
First, restating the core idea helps frame the evaluation: a higher-order function in functional programming is defined by its ability to operate on functions either by taking them as arguments, returning them as results, or both. Option 1: 'A higher-order function is a function that operates exclusively only on simple numerical data.' This is incorrect because higher-order functions are c......Login to view full explanation

登录即可查看完整答案

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

类似问题

更多留学生实用工具

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