BIT351 · TU past paper
NET Centric Computing 2080 question paper
The complete TU 2080 exam paper for NET Centric Computing (BIT351), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- Q1.10 marksAzure cloud publishingHideAnswer
How do you publish application to Azure cloud? Illustrate the concept of SQL injection attack with example and its prevention procedure.[10]
- Q2.10 marksSingle Page Application significanceHideAnswer
What re the signigicances of Single Page Application? How do you integrate REST API calls? Describe.[10]
- Q3.10 marksURL routing and featuresHideAnswer
Define URL routing with its features. Discuss about ASP.Net core architecture.[10]
- Q4.5 marksHidden fields purpose and usageHideAnswer
When do you need hidden field? Explain with an example. [5]
- Q5.5 marksData models and DbContextHideAnswer
Describe about data models and data context. [5]
- Q6.5 marksCollections and genericsHideAnswer
Differentiate between collection and generics. [5]
- Q7.5 marksMSIL and CLR architectureHideAnswer
Explain about MSIL and CLR. [5]
MSIL and CLR
Note: Reference notes were not available for this topic. The following answer is based on standard .NET / C# curriculum content taught in BSc CSIT.
1. MSIL (Microsoft Intermediate Language)
MSIL (also called CIL - Common Intermediate Language) is a low-level, platform-independent instruction set into which all .NET-compatible languages (C#, VB.NET, F#, etc.) are compiled before being converted to native machine code.
Key Points about MSIL:
- When a programmer writes code in C# (or any .NET language) and compiles it, the compiler does not produce native machine code directly.
- Instead, it produces MSIL code stored inside an assembly (
.exeor.dllfile). - MSIL is CPU-independent - it is not tied to any specific processor architecture.
- MSIL contains instructions for loading, storing, initializing, and calling methods on objects.
- It also contains metadata that describes the types, members, and references in the code.
Compilation Flow:
Source Code (.cs) | v C# Compiler | v MSIL + Metadata (stored in Assembly .exe/.dll) | v CLR (JIT Compiler) | v Native Machine Code (executed by CPU)
2. CLR (Common Language Runtime)
CLR is the execution engine (runtime environment) of the .NET Framework. It is responsible for loading, executing, and managing .NET programs.
Key Responsibilities of CLR:
Feature Description JIT Compilation Converts MSIL into native machine code at runtime using Just-In-Time compiler Memory Management Automatically allocates and deallocates memory Garbage Collection Automatically reclaims unused objects from heap memory Type Safety Ensures code accesses only the memory it is authorized to access Exception Handling Provides a structured mechanism to handle runtime errors Security Enforces code access security and role-based security Thread Management Manages multithreading and synchronization CTS & CLS Support Enforces Common Type System and Common Language Specification for language interoperability How CLR Works:
- The CLR loads the assembly (containing MSIL).
- The JIT compiler translates MSIL into native machine code specific to the current CPU.
- The native code is executed by the operating system.
- CLR continuously manages the running application (GC, exceptions, security, etc.).
Relationship Between MSIL and CLR
- MSIL is the intermediate form of code; CLR is the engine that runs it.
- Without CLR, MSIL cannot be executed.
- This design allows language interoperability - code written in different .NET languages can work together because they all compile to the same MSIL, and CLR executes all of them uniformly.
Summary
MSIL is the intermediate, platform-independent bytecode produced by .NET compilers, while CLR is the runtime environment that JIT-compiles MSIL into native code and manages program execution, memory, security, and other services.
- Q8.5 marksAbstract classes and inheritanceHideAnswer
Why do we need abstarct class? Explain with an example. [5]
- Q9.5 marksBinding and validation relationshipHideAnswer
Do binding and validation refer to same? Justify. [5]
- Q10.5 marksObject-Relational Mapping conceptsHideAnswer
What us the purpose of object relational mapper? Describe. [5]
- Q11.5 marksAuthorization roles and policiesHideAnswer
Why do we need to define roles, policies and claims? Explain. [5]
- Q12.5 marksAngular framework usageHideAnswer
Discuss the use of Angular with an example. [5]