Professional Documents
Culture Documents
Baclay Final Exam
Baclay Final Exam
2 nd Semester, 2020-2021
I. Problem Solving.
1. Tag =2
2. Block =9
3. Word = 7
4 128 mod 23 =0
5. 144 mod 23 =0
6. 2176 mod 23 =0
7. 2180 mod 23 = 4
8. 1280 mod 23 =0
9. 2176 mod 23 =0
6
1/100+1/200+1/300+1/400+1/2000+1/300
=243.243
15. What is the geometric mean for Machine A (Machine C as reference machine)?
336.042145371266
16. What is the geometric mean for Machine B (Machine A as reference machine)?
723.980855300594
17. What is the geometric mean for Machine C (Machine B as reference machine)?
669.432950082170
18. What is the weighted arithmetic mean for Machine A (Machine C as reference machine)?
304.239
19. What is the weighted arithmetic mean for Machine B (Machine A as reference machine)?
1033.03
20. What is the weighted arithmetic mean for Machine C (Machine B as reference machine)?
1475.46
35. Assume C Header files & main body: int a=2, b=1, c=3, d=1; a = a – (b – c) + d; (4 points)
Addiu $1,$0,2 #a
Addiiu $2,$0,1 #b
$3, $0,3 #c
$4, $0,1 #d
36. Assume C Header files & main body: int a=127, b=2, c=3, d=4, e=2; a = a – b (c + d) ^ e; (5 points)