|
IS
130C QUIZ 1 -- 2001-10-03 -- ANSWERS
|
||
|
You have 30
minutes to complete the quiz.You
may use any materials you wish for reference.One
or two words, phrases or sentences will usually suffice for answers.
|
||
|
1
|
|
Explain the difference
in the minimum number of times statements are executed in while loops versus
do-while loops.At least once
in a do-while loop; not necessarily executed at all in a while loop.
|
|
2
|
|
Is a keyboard
an input device or an output device?Input
|
|
3
|
|
Do you have a
legal right to publish the e-mail message you have received from a friend
without asking permission?No
|
|
4
|
|
What does the
AUTOSAVE feature allow you to do? Automatically save a copy of your
current file so you can recover the changes after you restart following
a program or system crash.
|
|
5
|
|
What kind of
pornography is absolutely barred?Child
|
|
6
|
|
Which is faster,
main memory or external storage?Main
|
|
7
|
|
Which costs more,
a workstation or a mainframe?Mainframe
|
|
8
|
|
What does 1.2e-1
signify in ordinary decimal notation? 0.12
|
|
9
|
|
What do people
use programs like Napster, MP3, and Gnutella for? Downloading copies
of music from other people.
|
|
10
|
|
What is the value
of A/B if A and B are integers and if A = 15 and B = 4? 3
|
|
11
|
|
Show the symbolic
form of the condition "not equal to the value of the product variables
M and N". !=(M*N) [ APOLOGIES:this
should have read "not equal to the value of the product of variables M
and N." Not counted in your score.]
|
|
12
|
|
What is the result
of the following assignment if "a" has a current value of 7?a
+= 29
|
|
13
|
|
What would be
the result of assigning the following number (without the commas) in an
integer variable?129.3129
|
|
14
|
|
What is the value
of the boolean variable answer if answer = 2?True
|
|
15
|
|
If A has the
value 1812 then what is the value of A++?1813
|