CMPE 137 Midterm

Midterm notes

63 cards   |   Total Attempts: 188
  

Related Topics

Cards In This Set

Front Back
What is .NET Framework made of?
Two components: Common Language Runtime (CLR) and an extensive set of Framework Class Libraries (FCL).
Define CLR.
Common Language Runtime is a common programming model and a standard type system for cross-platform, multi-language development.
Name two advantages of .NET
1) Multi-language - supports VB, C#, C++, J#, etc.2) Cross-platform - application can run on any supported platform such as Win64, Win32 and WinCE3) based on the CLR, FCL, and JIT technology
How is cross-platform achieved?
1) apps are written against Framework Class Library (FCL), not underlying OS2) compilers generate generic assembly language which must be executed by the Common Language Runtime (CLR)
Explain FCL.
It has 1000's of predefined classes, common subset across all platforms and languages, networking, database access, GUI, web, etc.
What is the goal of FCL?
To present an abstract, portable view of the underlying operating system
What is the purpose of CLR-based execution?
Common Language Runtime must be present to execute codeCLR must be able to locate all assemblies
Explain the .NET execution model.
1) Clients need CLR & FCL to run .NET apps2) Design trade-off - managed execution (memory protection, verifiable code, etc.), portability and possibly slower execution.
What is component-based?
A component-based app contains: .EXE + 1 or more .DLLs
Why should one use component-based?
Team programming, multi-language development, code re-use (like across different .EXE's), and independent updating (just update a component). Note: FCL ships as a set of components.
What are assemblies?
.NET packages components into assemblies1 assembly = 1 or more compiled classes.EXE represents an assembly with classes + Main program.DLL represents an assembly with classes
How does CLR find assemblies?
DLLs must reside in same directory as EXEFCL assemblies reside in GACCLR looks in GAC first, then EXE's directory
What is GAC?
Global Assembly Cache
What are the advantages of FCL?
Huge, powerful, and essentially a portable OS.
How many types of form-based does .NET support and what are they?
Two types: WinForms and WebForms.