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

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

Rating
-
Sold
-
Pages
13
Grade
A+
Uploaded on
07-09-2024
Written in
2024/2025

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

Institution
CSC148
Course
CSC148









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

Written for

Institution
CSC148
Course
CSC148

Document information

Uploaded on
September 7, 2024
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

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

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.
KenAli West Virginia University
View profile
Follow You need to be logged in order to follow users or courses
Sold
84
Member since
1 year
Number of followers
5
Documents
17177
Last sold
1 week ago

2.9

19 reviews

5
4
4
4
3
4
2
0
1
7

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