Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 14 pages
Exam (elaborations)

Scripting and Programming - Foundations - C173 Questions with and Answers with Verified Solutions | Latest 2026 Update

Document preview thumbnail
Preview 2 out of 14 pages

Scripting and Programming - Foundations - C173 Questions with and Answers with Verified Solutions | Latest 2026 Update

Content preview

Scripting and Programming - Foundations - C173 Questions with and
Answers with Verified Solutions | Latest 2026 Update




Q: What do we mean when we talk about the cost of an algorithm?

Answer:
An algorithm's cost is related to the resources that it requires to execute. The primary
way cost is discussed is related to the size of the input. Larger inputs usually mean
more resources, so this is the main factor that determines the speed. Ultimately this
determines the amount of time it takes the algorithm to execute and the amount of
memory required to run it. The process of calculating this is called algorithm
analysis. What are the two most important factors that affect the cost of an
algorithm? Time and memory. Time is the more important factor. How do you
prioritize case (best case, worst case, average case) when analyzing algorithms? You
would look at them in this order: Worst case, average case, best case. The worst case
is the most important because this will give you a better understanding of why the
time scales as it does. What is time.clock used for? To check when an algorithm
begins and when it ends so that we can determine the run time. This performs
benchmarking, which is simply assessing the relative performance of an object. What
is UML? Unified Modeling Language. This is a graphical notation specifically for
drawing diagrams of an object-oriented system. What are the 5 steps in the UML
design process? In which steps do use case, use case diagrams, and class diagrams
take place? 1.Gather Requirements 2. Describe the Application (use case and use
case diagram) 3. Identify the main objects

, Q: 4. Describe the interactions between objects 5. Create a class diagram (class
diagram) What does a use case provide?

Answer:
A simple narrative for how people use the application. It is written text and there is
no coding at this point. This is created after gathering the requirements. What is a
title in a use case? This is a short phrase with an active verb that describes the goal.
For example, "register new members". What is an actor in a use case? This is the
person or entity who needs to accomplish something. What must be true of entities
for them to be considered actors in a use case? As long as an entity exists outside of
the described system it can interact with the system. In this case the entity can
accomplish something within the system and is considered an actor. What is a
scenario in a use case? This is how the actor accomplishes the activity or goal. What
does a use case diagram provide? What is the purpose of creating a case diagram?
The use case diagram allows you to look more broadly at the requirements of an
application by visualizing several use cases and multiple actors at the same time.
What does a class diagram provide? What is the purpose of creating a class diagram?
A class diagram is a visual representation of classes needed. Its most basic structure
defines the class name, attributes that it will have, and operations, or methods. This is
also where you define inheritance and polymorphism. It allows you to plan out the
classes that you will create and their basic structure so that when you translate this to
code you know what is needed.

Document information

Uploaded on
July 1, 2026
Number of pages
14
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

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.
SpencerHenderson
3.7
(53)
Sold
269
Followers
117
Items
47781
Last sold
18 hours 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