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)

Cmpsc 101 midterm Exam #1 Questions with Correct Answers

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
14-06-2026
Written in
2025/2026

Cmpsc 101 midterm Exam #1 Questions with Correct Answers

Institution
Cmpsc 101
Course
Cmpsc 101

Content preview

Cmpsc 101 midterm Exam #1 Questions with Correct Answers
The Range(1,10,3) produces the values


A. 1,4,7,10
B. 1,4,7
C. 1,3,5,7,9

D. 1,10,3 - ✔✔B. 1,4,7


How many asterisks would be printed by these two code fragments?


A. 12 in both cases
B. 6 in both cases
C. 12 in the one on the left; 6 in the one of the right

D. 6 in the one on the left; 4 in the one on the right - ✔✔C. 12 in the one on the
left; 6 in the one of the right


If is_prime is a function that identifies whether its argument was prime, what
would this short function return?


A. The value 2 only
B. The value 7 only
C. All of the small primes in a list: [2,3,5,7]

D. One small prime, and a different one each time it is called. - ✔✔A. The value 2
only

Written for

Institution
Cmpsc 101
Course
Cmpsc 101

Document information

Uploaded on
June 14, 2026
Number of pages
4
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

€11,76
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
Winston56

Get to know the seller

Seller avatar
Winston56 Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 weeks
Number of followers
0
Documents
443
Last sold
-

0,0

0 reviews

5
0
4
0
3
0
2
0
1
0

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