|
4
----------
e d c b a
What digit does e represent
a) 4
b) 6
c) 7
d) 8
e) none
1. How many butes does an array A(1:8,-2:2,1:5) require for storage if
each element of the array is 24 bits long.
200 480 600 800 none
2.
begin
i:=0;
j:=0; | block d
loop:
if(i != 0)
i := i-1;
else
i := i+1;
i := i+1;
| block a
j := j+1;
| block b
if (j <= 25)
goto loop;
end
| block c
a) What is the value of i at [c]
2 ?
b) How many times is the goto executed
25 ?
c) How many times is the loop executed if i is initialized to 1
in [d] 26
|
|