Q15.webp
Riza85

Q15.webp

  • Media owner Riza85
  • Ngày thêm
Kizspy | Question: 15
(Choose 1 answer)
Given the algorithm to find the maximum element of a list (See picture)
If the input is the sequence 1, 4, 5, 2, 7, 9, 3, then all the values of the variable Max are
A. 4, 5, 7, 9
B. 1, 4, 5, 7, 9
C. 1,5,7,9
D. 1, 4, 5, 2, 7, 9
Procedure Max (a1, a2,...,an: integers)
Max:=a₁
fori 2 to n do
if Max <a; then Max: = a₁

Thông tin

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

Share this media

Back
Bên trên Bottom