CSC 111 Quiz 1, Fall 2006

Submit by Tues September 20 by midnight


Name: First name :
Last name  :
Account name for copy (e.g., 111a-xx):
  
Quiz Code (password):

(Please take this quiz just once, unless you are told that the username or code is incorrect. Write your quiz answers on paper before you hit the Submit Button, in case you enter the wrong quiz password.)

1. Beowulf is ... a secure shell program,
a sad wolf.
a computer science computer.
all of the above.
none of the above.
2. A CPU does: arithmetic and logic operations.
anything a human brain does.
storing of data, even when the computer is turned off.
All of the above.
None of the above.
3. Which of the following is an operating system? netscape
internet-explorer
word
linux
4. Machine language, the low-level language a CPU understands, has how many "characters"? 8
2
32
256 Million
5 and 7 are integers. What does the Python interpreter compute as 7/5? 1.4
35
1
2
6. Suppose x is 3 and y is 2. What does this python statement produce:
print x, y, x*y, x**y
3, 2, 6, 9
3 2 6 9
x y x*y x**y
7. Which of the following is a legal identifier in Python? I_LOVE_QUIZZES!
_3
365days
8. Consider the sequence of python statements:
x = input("enter your age please")
y = x + 1
z = y + 1
print y
What is printed if the user types 45.5 for the input?
45.5
45
46.5
46
47.5
47
111
9. True or False? Python is unlike other high-level programming languages such as C/C++, Java, and Basic, in that Python does not have strict syntax rules. True
False
10. Consider the statement:
num = input("Enter how many values: ")
num is called a
loop
function
variable
none of the above

To submit:

Press to submit your fully-completed quiz, or to reset all fields. Thanks!