100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSC148 ch 1-4 (midterm review) Study Terms & Questions with Complete solutions $13.24   Add to cart

Exam (elaborations)

CSC148 ch 1-4 (midterm review) Study Terms & Questions with Complete solutions

 1 view  0 purchase
  • Course
  • CSC148
  • Institution
  • CSC148

CSC148 ch 1-4 (midterm review) Study Terms & Questions with Complete solutions

Preview 2 out of 13  pages

  • September 7, 2024
  • 13
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSC148
  • CSC148
avatar-seller
KenAli
CSC148 ch 1-4 (midterm review) Study
Terms & Questions with Complete
solutions

what to do when error occurs: - ANSWER 1. fail silently (do nothing)
2. raise user_defined exception (child of the Exception class)
3. add __str__ to the new exception to customize the message


linkedlist - ANSWER -list stores items in contiguous slots
-many shifts must be made to remove/add items
-contains many _Node objects that have a value


traversing through a linkedlist - ANSWER curr = self._first
while curr is not None:
curr.item...
curr = curr.next


how to have more than one line in one cell - ANSWER "ALT ; Enter"



add days to a date WITHOUT weekends - ANSWER =WORKDAY(start date cell, number of days
you want to add)



Enter a function based off of information from a table - ANSWER =VLOOKUP(cell of what you're
trying to lookup, entire table you are referencing, column number, FALSE (exact value) or TRUE
(closest match))



Function for monthly mortgage payment - ANSWER go to formulas tab and under financial
click "PMT"

, =PMT(interest rate / # of payments/year, # of payments/year * # of years, current value
of loan)
make sure to put a negative sign to make function positive.



How to use excel feature to change data in order to meet specified conditions - ANSWER select
data tab; then click "what if analysis"; then goal seek tab


IF statement function - ANSWER =IF(logical test, [value if true], [value if false]



Determine ranking based on information - ANSWER =RANK.EQ(cell you want ranked, range of
cells you're ranking, 0-descending or 1-ascending)


Percent Change Formula - ANSWER new-old/old



Cumulative Income - ANSWER =SUM(first number of sequence you want to add $$$: cell)
MAKE SURE TO USE ":" NOT ","


"is" - ANSWER same id


alias - ANSWER refer to the same value. eg. variable argument and parameter


header - ANSWER first line of function. aka signature


primitive type - ANSWER can just use type name. eg. int, float, str, bool, None



compound type - ANSWER must import typing for compound type classes. other types can
be contained in compound type. eg. Tuple[str,List[int]] is something like ('hello', [0, 1])


Tuple - ANSWER type that can store a collection but is non-mutable

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller KenAli. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.24. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79064 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.24
  • (0)
  Add to cart