MAD101_-_Test2_-_FA_2023_857.webp
Scar89

MAD101_-_Test2_-_FA_2023_857.webp

  • Media owner Scar89
  • Ngày thêm
(Choose 1 answer)
(See picture)
Given the following algorithm
A. 11
procedure LS (x, a1,i:=1while (i < n and x > a)i:= i +1an: integer)
B. 10
C. None of the other choices is correct
D. 6
How many comparisons used in the algorithm with input x = 10 and the sequence 1, 3, 5, 7, 9, 11?
E. 12


1

Thông tin

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

Image metadata

Filename
MAD101_-_Test2_-_FA_2023_857.webp
File size
49.3 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom