
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The solutions to quiz #4 for the cosc 235b course taught by david a. Sykes. It includes the results of various print statements and the code to complete the definition of the log2 function.
Typology: Quizzes
1 / 1
This page cannot be seen from the preview
Don't miss anything!

COSC 235B David A. Sykes
- 1 –
Name: Pledged:
Answer all questions. Write legibly.
print 2 > 1 or 1 < 0
print 2 > 1 and 1 < 0
print not True
s = "Don't forget to , y'all!" i = 0 while s[i] != '': i = i + 1; print s[0:i] + "VOTE" + s[i+1:]
def log2(n): result = 0
return result