题目
题目

IS 4485-001 Fall 2025 Final Exam Practice 1

单项选择题

What will be the output of this recursive function call factorial(4)?

选项
A.16
B.24
C.1
D.10
E.0
F.4
题目图片
查看解析

查看解析

标准答案
Please login to view
思路分析
The function shown implements a classic recursive factorial: if n == 0, it returns 1 as the base case; otherwise it returns n multiplied by factorial(n-1). Option by option analysis: - 16: This would imply an incorrect product sequence or a missing multiplication step. If someone stopped early or misapplied the recursion, they might get 16,......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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