• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

C 201 Midterm 3(Complete solutions)

Document preview thumbnail
Preview 2 out of 5 pages

string correct answers a sequence of characters enclosed within double quotes ( " ) or single quotes ( ' ) .lower() correct answers makes all characters in a string lowercase .upper() correct answers makes all characters in a string uppercase concatenation correct answers glues strings together and can ONLY be done with strings slicing correct answers accessing a substring whitespace correct answers any blank character that represents space between two characters .strip() correct answers removes all whitespace from the start to the end of a string .split() correct answers can both break a string up by its whitespace, and break it up by a specific character delimiter correct answers a character we want to remove from a string .join() correct answers takes in a list of strings and returns a single string, joined together with a user-chosen delimiter name parts of a function and explain what they are correct answers - function name - function definition: the part of the program that creates a function (name and body included) - function body: contents of the function itself - parameters: variable(s) initialized when calling a function - function call: when the function is used in a program - arguments: variables that pass into the function globals correct answers variables declared outside any function, including main() "return" function correct answers exits the function immediately; returns control back to where the function was called from what is "None" correct answers the absence of a return value scope correct answers the function in which a variable is accessible; a variable in one function cannot be called in another


Document information

Uploaded on
May 23, 2024
Number of pages
5
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$11.49

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

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.
Sold
23
Followers
6
Items
4026
Last sold
2 months ago




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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

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