- Information
- AI Chat
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
Was this document helpful?
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
CS1101 Unit 6 Quiz
Course: Programming Fundamentals (CS 1101)
999+ Documents
Students shared 1059 documents in this course
University: University of the People
Was this document helpful?
This is a preview
Do you want full access? Go Premium and unlock all 5 pages
Access to all documents
Get Unlimited Downloads
Improve your grades
Already Premium?
Self-quiz 6 review
Question 1
What is the output of the following Python program?
mylist = [ [2,4,1], [1,2,3], [2,3,5] ]
total = 0
for sublist in mylist:
total += sum(sublist)
print(total)
Select one:
a. 14
b. 23
c. 0
d. 13
The correct answer is: 23
Question 2
In Python, a list of characters is the same as a string.
Select one:
True
False
The correct answer is 'False'.
Question 3
String objects are modified with string slices.
Select one:
True
False
The correct answer is 'False'.
Question 4
The Python expression 'Unit 6'[-1] has value '6'.
Select one:
True
False
The correct answer is 'True'.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.