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

DATA 2100 MIDTERM EXAM QUESTIONS WITH SOLUTIONS 2025 GRADED A+

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
03-03-2025
Written in
2024/2025

define concatenation - (of strings) to join multiple strings together x = 'glacier' + 'rain' x = glacier rain Upper function - makes everything upper case () GLACIER RAIN Lower function - makes all the string values lower case () glacier rain LEN function - helps you know the length of a string How do you perform comments? - (#) #too cool #need a CDL for the dumpy exponent function - 3**2 floor division - 3//4 like division but doesn't give decimal remainders

Show more Read less
Institution
DATA 2100
Course
DATA 2100









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

Written for

Institution
DATA 2100
Course
DATA 2100

Document information

Uploaded on
March 3, 2025
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

DATA 2100 MIDTERM EXAM QUESTIONS WITH SOLUTIONS
2025 GRADED A+
✔✔define concatenation - ✔✔(of strings) to join multiple strings together
x = 'glacier' + 'rain'
x = glacier rain

✔✔Upper function - ✔✔makes everything upper case
x.upper()
GLACIER RAIN

✔✔Lower function - ✔✔makes all the string values lower case
x.lower()
glacier rain

✔✔LEN function - ✔✔helps you know the length of a string

✔✔How do you perform comments? - ✔✔(#)
#too cool
#need a CDL for the dumpy

✔✔exponent function - ✔✔3**2

✔✔floor division - ✔✔3//4
like division but doesn't give decimal remainders

✔✔how do you find the root of a number - ✔✔you use exponents of the root function
i.e. to do square roots .5

✔✔remainders - ✔✔3 % 4
only shows remainders

✔✔-= - ✔✔decreasing a variable

✔✔+= - ✔✔increasing a variable

✔✔How do you round? - ✔✔the round function, you can also denote how many variable
you want to round to
round(6.3454,2)
round to two decimal points

✔✔What is a purpose of an IF statement - ✔✔validation of data

✔✔what are the three parts of the if block - ✔✔IF,ELIF,ELSE

, ✔✔can you have an IF statement with not ELIF or ELSE? - ✔✔Yes you can

✔✔Can you have an IF statement with just an else? - ✔✔yes

✔✔Why is indention so important? - ✔✔because it tells us that everything that is below
the indent is included in the block

✔✔do you only need one ELIF in a IF statemtn - ✔✔No you can have multiple in a
statement

✔✔nested if statement - ✔✔a selection statement used within another selection
statement

✔✔< - ✔✔less than

✔✔> - ✔✔Greater than\

✔✔<= - ✔✔less than or equal to

✔✔>= - ✔✔greater than or equal to

✔✔== - ✔✔equal to

✔✔!= - ✔✔not equal to

✔✔in - ✔✔true if the first string is included in the second

✔✔not in - ✔✔true if the first string can't be found in the second

✔✔While command - ✔✔Allows a section of code to be repeated as long as a certain
condition remains true

✔✔what is the purpose of a while loop - ✔✔validating inputs

✔✔While True: - ✔✔if this is the case you need a break because there is no way to
break the loop

✔✔what is a marker variable - ✔✔an assigned variable that helps the loop break

✔✔how do you ask for input from a user - ✔✔Input()

✔✔what type of data is that input interpreted as - ✔✔a string

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.
BOARDWALK Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
173
Member since
1 year
Number of followers
6
Documents
18411
Last sold
1 day ago
BOARDWALK ACADEMY

Ace Your Exams With Top Quality study Notes And Paper✅✅ ALL ACADEMIC MATERIALS AVAILABLE WITH US✅✅ LEAVE A REVIEW SO THAT WE CAN LOOK AND IMPROVE OUR MATERIALS.✅✅ WE ARE ALWAYS ONLINE AND AVAILABLE DONT HESITATE TO CONTACT US FOR SYUDY GUIDES!!✅✅ EVERYTHING IS GRADED A+✅✅ COLOUR YOUR GRADES WITH US , WE ARE HERE TO HELP YOU DONT BE RELACTANT TO REACH US

3.6

31 reviews

5
12
4
6
3
7
2
0
1
6

Recently viewed by you

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