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 3 out of 19 pages
Exam (elaborations)

CS3500 Midterm Exam – Questions With Right Solutions

Document preview thumbnail
Preview 3 out of 19 pages

CS3500 Midterm Exam – Questions With Right Solutions

Content preview

CS3500 Midterm Exam – Questions With Right
Solutions

Save




Terms in this set (110)



Abstraction Removing (or hiding) unnecessary
complication/detail.
(e.g. API, Array.Sort(), etc.)


API Application Programming Interface:
Defines operations (and efficiencies).
(e.g. Array's Add, Remove, Contains, Sort, etc.)


Software Practice Steps -Analysis (what do we need to do?)
-Design (how do we do it?)
-Implement (coding yay!)
-Test/ Debug/Improve
-Go back to 1-4 as needed


Bloom's Taxonomy -Creating
-Evaluating
-Analyzing
-Applying
-Understanding
-Remembering


XAML: Why Comment/Document? -Your code (in the RW™) will outlive you
-Make your successor's life easier
-Make your (future) life easier
-(e.g. <summary> This function... </summary>
<param name='val'> val represents ... </param>)

,XAML: Why use this documentation? -The computer can read, parse, and intellisense as
can humans.
-Nested relationships allow for organization of
information
-(e.g. <university> 🡨 StartTag
<course> 🡨 Nested StartTag
</course> 🡨 Nested End Tag
</university> 🡨 End Tag)


XAML: Attributes -Attributes (inside of tag < >s): Add extra information
to tag but probably should be avoided (most of the
time*)
-(e.g. <teacher name="Jim">, <param name="length">,
<list type="number">)


XAML: API reading/writing Reading: XamlReader.Create( filename ),
reader.Read(), reader.IsStartElement(), reader.Name
Writing:
XamlWriter.Create( filename )
writer.WriteStartDocument
-writer.WriteStartElement (writer.WriteAttributeString)
-writer.WriteEndElement
-writer.WriteElementString
writer.WriteEndDocument


How do you describe what a function API (Function Signature): Comments, Name, Types
does? (Return Type, Parameter Name(s)/Type(s))


Generics in Coding Writing code that works regardless of the type of
data being processed.


Functions as Parameters -Solved with delegate syntax
-Must be passed in with a type (: delegate) when
undefined
-Are "First Class" in C# (can be used as data)

, Delegates -A delegate is a way to provide a TYPE for a function.
-Can use delegate types to store functions in
variables and "call" those saved functions using the
variable name
-Allow you to "pass" functions as parameters


Delegates: Syntax -public delegate int Lookup( string name );
-public delegate bool Compare( TYPE a, TYPE b );
-int doit(string x) { meet delegate requirements in
here }
-call: Evaluate("1+var", doit)


Delegate Declaration Delegate Definitions is a NAMED description of the
functions Inputs and Outputs (i.e. defines the type
signature of the function)


Solution Collection of Projects


Projects -Collection of Source Files
-Multiple can be in one solution due to related code
bases (support code/library)
-Contain: code files, references to other
projects/libraries, etc.


C# vs Java: Similarities -Compiled to an intermediate form
-Run with a "runtime environment"
-Automatic memory management.
-Syntax mostly the same (or one-to-one transition)


C# vs Java: Differences -C# functions are "first-class" (see delegates)
-Generics can use primitives (List<int> vs.
List<Integer>)


C# Access Modifiers -public (external access)
-protected (same/derived class access)
-private (same class access)
-internal (same project access)

Document information

Uploaded on
January 15, 2026
Number of pages
19
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$21.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.
NorthWest
4.1
(174)
Sold
844
Followers
673
Items
6722
Last sold
3 weeks 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