Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People

Rating
-
Sold
-
Pages
21
Grade
A
Uploaded on
16-08-2022
Written in
2022/2023

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 Quiz CS 1101 Final Exam- University of the People/COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People

Show more Read less
Institution
Course

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?

mylist = ["now", "four", "is", "score", "the", "and seven", "time", "years", "for"]
print(" ".join(mylist[1::2]))

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

Written for

Course

Document information

Uploaded on
August 16, 2022
Number of pages
21
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

€15,80
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Millenialnurse Freelance Tutor
Follow You need to be logged in order to follow users or courses
Sold
252
Member since
4 year
Number of followers
147
Documents
1482
Last sold
3 weeks ago
Genuine Study Guides 2024

Holla me for assistance 24/7.

3,4

37 reviews

5
17
4
4
3
4
2
2
1
10

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions