Multiple choices 26/50
Answer (Choose 1 answer)
(See picture)
A. The sum of all numbers in a list of integers
B. None of the other choices is correct
C. The number of elements in a list of integers
D. The sum of all negative elements in a list of integers
E. The number of negative elements in a list of integers
Next
What is the output of the algorithm?
procedure tt (a1, a2,..., an: integers)d:= 0 For i:=1 to n do if az < 0 then d:= d +1Print (d)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 30
31
32
33
34
35
36 37
38
39
40
41 47
43
44
45 46 47 48
49 50