FINAL Answer key : 198:110 Intro to Computers
Summer 2007
- When you are grading, wherever possible, be
lenient. When you have a choice to take more or less points off - you
should usually take less points off. The scores will not be especially
high as it is, so don't feel like you have to be a real strict grader.
Students have worked pretty hard this summer - so it is time to be a
little bit nice.
Part A
1. wireless 2. flash drive 3. ink
jet 4. ASCII
5. relational 6. google
7. appleworks
8. ram 9. SUM
Part B
1. J 2. D
3. B 4. O
5. H 6. E 7.
M
8. C 9. L 10. K 11. I 12. N
Part C
1. D 2. A
3. B 4. C
5. A 6. C
7. A 8. D 9. E 10. B 11. D 12. C
Part D
1. = B8 - C8
2. = SUM(C5:C8)
3. = D5 / $E$1
4. = IF(C6 < B6,
"Within Budget", "Over Budget")
5. $
3875 ($ doesn't have to be in answer.)
Part E
1. Grant 1868 General
93 1332 Julia
2. Roosevelt, F 1932
Governor 635 3687 Eleonor
3. Lincoln, Clinton
4a. Elected: <
1900 and also Wife: Martha (1 point each part)
4b. Click All
Part F
1. 1 2. 10 3.
6
4.
SELECT CASE C
CASE 1, 10
PRINT "Key Value"
CASE 1 TO 5
PRINT "Minor"
CASE 5 TO 10
PRINT "Medium"
CASE IS < 25
PRINT "Plenty"
CASE ELSE
PRINT "A lot"
END SELECT
(other variations also possible)
5. 12 6. 37 7. LET Chosen
=
INT(RND * 8) + 24
8.
FOR Val = 40 TO 60 STEP
5
PRINT Val
NEXT Val
9a. No 9b. Before (1 point each part)
Part G
1.
- need LET after ELSE within the IF
- need semicolon (;) before Triangle within the
PRINT
- remove quotes around 5 in DATA, it should be
number not string
2.
- Input statement needs PROMPT
- the first CASE needs to have the IS removed; or
alternatively an = can be after the IS
- has to be CASE ELSE (not just ELSE)
3.
- program is missing an END statement
- Need DO in front of UNTIL
- should be NEXT Innings (not NEXT Batter)
- LET can't have two assignments in it, that is,
two variables not allowed
Part H
1.
16
21
23
24
26
-
- (one point each line)
2.
16
18
28
38
Leaves with: 38
-
- (one point each line)
3.
-
Place
|
Value
|
2
|
20
|
3
|
20
|
4
|
10
|
5
|
10
|
- (1/2 point each item, but round down; so one or
two wrong is -1)
-
4.
13
17
16
Whoops, missed 4
And finally 3
-
(one point associated with 1st, 3rd and 4th line;
2 points for 2nd line)
Part I
(possible answer)
INPUT PROMPT "What weight did you start
with?": Weight
LET Goal = .9 * Weight
LET Week = 0
DO WHILE Weight > Goal
LET Week = Week + 1
PRINT "It is currently week #"; Week
INPUT PROMPT "How much did you lose?": Loss
LET Weight = Weight - Loss
PRINT "Your current weight is "; Weight
LOOP
PRINT "Congratulations, you reached your goal after "; Week; "
week(s)."
END
-
- Advice on grading
- 15 Points if perfect. 13-14 points if minor syntax or logic
errors. 9-12 if one significant piece missing. 5-8 if several parts
right or close (INPUT PROMPTs, PRINTS, structure of DO, LET
calculations, END ) 0-4 if very
little right, or if code uses little real BASIC.
-
- Remember, if anything be lenient.
Part J
(possible answer)
DIM Name$(100), Violation$(100), Fine(100)
FOR F = 1 TO 100
READ Name$(F), Violation(F), Fine(F)
NEXT F
LET TotalFines = 0
FOR J =1 TO 100
LET TotalFines = TotalFines + Fine(J)
NEXT J
IF TotalFines > 10000 THEN
FOR K = 1 TO 100
IF Violations$(K) <> "Speeding"
THEN LET Fine(K)=Fine(K)/2
NEXT K
END IF
PRINT "Name","Violation","Amount"
FOR L=1 TO 100
PRINT Name$(L), Violation(L), Fine(L)
NEXT L
END
Advice on grading. 15 Points if perfect. 13-14 points if minor
syntax or logic
errors. 9-12 if significant piece missing. 5-8 if several parts right
or close (INPUT, PRINTS, DIM, arrays used correctly,
structure of FOR loops, structure of IF, END ) 0-4 if very little
right, or if code uses little real BASIC.
Remember, if anything be lenient.