MAD101_-_Test2_-_SU_2024_2075.webp
minhkhai99

MAD101_-_Test2_-_SU_2024_2075.webp

Question: 18
(Choose 1 answer)
(See picture)
A. 6
B. 7
C. 8
D. 10
E. None of the other choices is correct
Given the algorithm
procedure la (c, a0, a1, ..., an integers)
p: = 1 m:= a
for i:= 1 to n p: = p*c
m: = m + a₁ * p
If the input consists of c = 4 and [a0, a1,...,an] = [3, 6, 7, 8, 3]
how many multiplications (*) are used?

Thông tin

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

Share this media

Back
Bên trên Bottom