100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSC148 Exam Study Questions with Complete solutions (A Graded $12.49   Add to cart

Exam (elaborations)

CSC148 Exam Study Questions with Complete solutions (A Graded

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

CSC148 Exam Study Questions with Complete solutions (A Graded

Preview 2 out of 5  pages

  • September 7, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSC148
  • CSC148
avatar-seller
KenAli
CSC148 Exam Study Questions with
Complete solutions (A Graded)

Non-empty tree - ANSWER Has a root value that is not none connected to 0 or
more subtrees


Leaf - ANSWER Value with no subtrees


Height - ANSWER The longest path between a root and a leaf


Children - ANSWER Nodes that are directly connected to the node above


Descendant - ANSWER All of the subtrees and the subtrees of subtrees of a node


Parent - ANSWER The node directly above


Binary Search Tree - ANSWER A binary tree with the property that for all parent
nodes, the left subtree contains only values less than the parent, and the right
subtree contains only values greater than the parent.


Expression trees - ANSWER A tree which is used for evaluating expressions in
python

, Expr class - ANSWER An abstract superclass for all expression tree expressions


Num class - ANSWER An expression for a numeric constant


BinOp class - ANSWER An expression for a binary operation such as + or *
Uses left, operator, right


Quick Sort - ANSWER Sorts based on a pivot. Anything smaller goes to one list
and anything bigger goes to the other list. It does this recursively

Parameter - ANSWER Variables in a functions parentheses


Argument - ANSWER What we put in the parentheses when we are calling
a function


Local Variable - ANSWER Variables defined within a function


Method - ANSWER A function within a class


Function - ANSWER Not within a class


Type contract - ANSWER The expected type for a variable


precondition - ANSWER Any property that the function must satisfy to ensure that
the function works as described

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 $12.49. 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
$12.49
  • (0)
  Add to cart