COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People
3 views 0 purchase
Course
COPM CS 1101
Institution
COPM CS 1101
COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People/COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People/COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People/COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People/COMP CS 1101 Review...
comp cs 1101 review quiz cs 1101 final exam university of the peoplecomp cs 1101 review quiz cs 1101 final exam university of the peoplecomp cs 1101 review quiz cs 1101 final exam university of t
Written for
COPM CS 1101
All documents for this subject (1)
Seller
Follow
Millenialnurse
Reviews received
Content preview
Question 1
Correct
Mark 1.00 out of 1.00
Flag question
Question text
When a Python function is called, inside the function, the arguments are assigned to variables
called parameters.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question text
What output will the following code produce?
n = 10
while n != 1:
print (n,end=' ')
if n % 2 == 0: # n is even
n = n // 2
, else: # n is odd
n=n*3+1
Select one:
a. 10 5 16 8 4 2
b. None an error will be displayed
c. 8 4 2
d. 9 28 14 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2
Feedback
The correct answer is: 10 5 16 8 4 2
Question 3
Correct
Mark 1.00 out of 1.00
Flag question
Question text
What is the output of the following Python program?
Select one:
a. now is the time
b. now is the time for
c. four score and seven years
d. now four is score the and seven time years for
Feedback
Your answer is correct.
The correct answer is: four score and seven years
, Question 4
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In Python, a list of characters is the same as a string.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Which one of the following Python expressions has the value 10?
Select one:
a. 8 ^ 2
b. 8 ** 2
c. 8 +- 2
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Millenialnurse. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $16.98. You're not tied to anything after your purchase.