2080

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.

Past Papers2081.120812080

Tap a question to open its answer.

  1. 110 marksAzure cloud publishingAnswer

    How do you publish application to Azure cloud? Illustrate the concept of SQL injection attack with example and its prevention procedure.[10]

    --- Note: Reference notes were not available for this topic. The following is based on standard Microsoft Azure deployment practices as taught in BSc CSIT curriculum. Publishing an application to Azure means deploying your web applicatio...

  2. 210 marksSingle Page Application significanceAnswer

    What re the signigicances of Single Page Application? How do you integrate REST API calls? Describe.[10]

    Note: No specific curriculum notes were found for this topic. The answer below is based on standard, correct web development knowledge appropriate for BSc CSIT level. --- A Single Page Application (SPA) is a web application that loads a ...

  3. 310 marksURL routing and featuresAnswer

    Define URL routing with its features. Discuss about ASP.Net core architecture.[10]

    --- URL Routing is a mechanism in ASP.NET Core that maps incoming HTTP request URLs to specific controller actions or middleware handlers. Instead of mapping URLs directly to physical files on the server, routing interprets the URL patte...

  4. 45 marksHidden fields purpose and usageAnswer

    When do you need hidden field? Explain with an example. [5]

    A hidden field is needed when you want to store and transmit data between web pages (client and server) without displaying it to the user on the browser screen. 1. Maintaining State Information - HTTP is stateless, so hidden fields help ...

  5. 55 marksData models and DbContextAnswer

    Describe about data models and data context. [5]

    A data model is a collection of conceptual tools used to describe data, data relationships, data semantics, and consistency constraints. It provides a way to describe the design of a database at the logical and physical levels. - Data is...

  6. 65 marksCollections and genericsAnswer

    Differentiate between collection and generics. [5]

    Note: The reference notes did not contain this topic directly. The following answer is based on standard Java/C programming concepts as taught in BSc CSIT curriculum. --- A Collection is a framework/architecture that provides a set of cl...

  7. 75 marksMSIL and CLR architectureAnswer

    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 (.exe or .dll file).
    • 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:

    FeatureDescription
    JIT CompilationConverts MSIL into native machine code at runtime using Just-In-Time compiler
    Memory ManagementAutomatically allocates and deallocates memory
    Garbage CollectionAutomatically reclaims unused objects from heap memory
    Type SafetyEnsures code accesses only the memory it is authorized to access
    Exception HandlingProvides a structured mechanism to handle runtime errors
    SecurityEnforces code access security and role-based security
    Thread ManagementManages multithreading and synchronization
    CTS & CLS SupportEnforces Common Type System and Common Language Specification for language interoperability

    How CLR Works:

    1. The CLR loads the assembly (containing MSIL).
    2. The JIT compiler translates MSIL into native machine code specific to the current CPU.
    3. The native code is executed by the operating system.
    4. 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.

  8. 85 marksAbstract classes and inheritanceAnswer

    Why do we need abstarct class? Explain with an example. [5]

    An abstract class is a class that is deliberately incomplete. It is declared with the abstract keyword, it cannot be instantiated with new, and it may declare abstract members that carry no body at all. Its purpose is to sit at the top o...

  9. 95 marksBinding and validation relationshipAnswer

    Do binding and validation refer to same? Justify. [5]

    No, binding and validation do not refer to the same concept. They are two distinct processes in programming and web/application development, though they are often used together. Below is a justification of their differences. --- Binding ...

  10. 105 marksObject-Relational Mapping conceptsAnswer

    What us the purpose of object relational mapper? Describe. [5]

    --- An Object Relational Mapper (ORM) is a programming technique and tool that acts as a bridge between an object-oriented programming language and a relational database. It allows developers to interact with a database using objects and...

  11. 115 marksAuthorization roles and policiesAnswer

    Why do we need to define roles, policies and claims? Explain. [5]

    Note: The reference notes did not contain specific content on this topic. The following answer is based on standard ASP.NET Core / web application security concepts as taught in BSc CSIT curriculum. --- In modern web applications, it is ...

  12. 125 marksAngular framework usageAnswer

    Discuss the use of Angular with an example. [5]

    Angular is a TypeScript-based open-source front-end web application framework developed and maintained by Google. It is used to build dynamic, single-page applications (SPAs) by extending HTML with additional attributes and binding data ...