100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CS 1101-01 AY2026-T2 Programming Assignment Unit 1: Complete Solutions & Study Guide

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
04-01-2026
Written in
2025/2026

Prepare for your CS 1101-01 AY2026-T2 Programming Assignment Unit 1 with this comprehensive study guide. This resource includes detailed solutions, step-by-step explanations, and key programming concepts to help you successfully complete the assignment and excel in your studies for the academic year .

Show more Read less
Institution
Computer Tech
Course
Computer Tech









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Computer Tech
Course
Computer Tech

Document information

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

Subjects

Content preview

CS 1101-01 - AY2026-T2 / Programming Assignment Unit 1
Benjamin Ifeoluwa Adebayo
University of the People
CS 1001 - Programming Fundamentals
19th November, 2025



Part 1: Learn From My Mistakes


Question a: Printing my name


Code:

print("Benjamin Adebayo") # Correct
print('Benjamin Adebayo) # Missing one quote (will cause SyntaxError)
print(Benjamin Adebayo) # Missing both quotes (will cause NameError)




Explanation:

When printing text, Python requires quotes. Missing one quote causes SyntaxError: EOL

, while scanning string literal, while missing both quotes treats it as a variable,

giving a NameError. Strings must always be enclosed in quotes to be recognized correctly.




Question b: Difference between * and ** operators


Code:


result_mult = 5 * 3
result_exp = 5 ** 3
print("5 * 3 =", result_mult)
print("5 ** 3 =", result_exp)

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.
allowaysbest stuvia
View profile
Follow You need to be logged in order to follow users or courses
Sold
1902
Member since
5 months
Number of followers
0
Documents
550
Last sold
2 days ago

4.7

535 reviews

5
404
4
119
3
8
2
4
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