MAD101_-_SP_2025_-_RE_3685.webp
TuanKiet1

MAD101_-_SP_2025_-_RE_3685.webp

☑Kizspy.me
Answer (Choose 1 answer)
☐ A
Back
Next
Which of the following algorithms are recursive?
(i) procedure A(n: nonnegative even integer)
if n = 0 then A(n):= 1;
else A(n): A(n-2)*3
(ii) procedure A(n: nonnegative even integer)
if n = 0 then y = 1;
else
begin
end
y: 1; m n div 2;
for i=1 to m
A. Only (i)
y: = y*3;
B. Both of them
C. Only (ii)
D. None of them
FUO.sh
sh the exam.

Thông tin

Category
MAD101
Thêm bởi
TuanKiet1
Ngày thêm
Lượt xem
3,094
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom