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

CSC148 Exam Study Questions with Complete solutions (A Graded

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

CSC148 Exam Study Questions with Complete solutions (A Graded

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
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

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

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

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