2023 2024 EduVark > Education Discussion > General Discussion


  #2  
March 19th, 2017, 02:48 PM
Super Moderator
 
Join Date: Mar 2012
Re: Kuvempu University 6th Sem Assignment Answers

As you Asking for the B.tech VI Sem Subject Basic of .NET Subject Assignment Question With Answer of the Kuvempu University the Assignment Question With Answer is given below

Basic of .NET

I.What are the advantages of using .NET ?

Answer: The .NET framework offers a number of advantages to developers. The following are few important among them:

a. Consistent Programming Model

Different Programming languages have different approaches for doing a task. For example, accessing data with a VB application and a VC# application is totally different. A developer has to know both different techniques to do the task.

In case of .NET Environment, for the same example, displaying data from database in a grid accessing data with a VB.NET and a C# is very similar except slight syntactical differences. Both the programs use a system. Data namespace, establish a connection with the database and run a query and display the data on a data grid. The .NET class library provides the functionality to all. .NET languages resulting in a consistent object model regardless of the programming language used by the programmer.

b. Language Independence

Language independence means the developers has the independence to code one module of same application in other language. This language interoperability can help in code reuse and improve the efficiency of the development process.

c. No versioning problem-easy application deployment and maintenance.

The .NET framework makes deployment of application easy. Commonly to install an application along with the components it requires into a directory on the computer. The .NET handles the details of locating and loading the components and application needs, even if several versions of the same application exists on the computers and application depends on are available on the computer before the application on the computer the application begins to run.

d. Improved Security

The .NET framework provides several mechanisms for protecting resources and code from unauthorized users.

Asp.net web applications security provides a way to control access to a website by comparing authenticated permissions with file system permission for proper authorization.
Code access security uses permission to central code accessing protected resources and operations. the computer systems are protected from suspicious mobile code and provide a way to run mobile code to safely.
Role-based security information needed to make decision about user’s permissions.
e. Support For Web Services

Web services are remote databases and programs which access other computers to need the data files. With the advent of .NET technology, web services provide many built in dace class library facilities. Web services can provide everything from basic text news information to vital database or application information.

f. Dynamic Web

Content that changes with the user and user’s preference is an example of dynamic web content. Dynamic web content is easier or create with .NET. ASP.NET and Visual Studio.NET allow developers to create dynamic web much easier than IIS and ASP technologies.

g. Visual Studio.NET

Visual Studio.NET is the Microsoft application and interface for programming in .NET. Visual Studio .NET provides all the programming advantages mentioned so far. This development environment has extensive set of ready to use controls, good debugging facilities, easy and simple programming features and vast set of .NET Base Classes.


II.Explain .NET framework?

Ans: It is the foundation on which you design, develop and deploy applications. It is consistent and simplified programming model that helps you to easily built robust applications. It is the core of the .NET infrastructure because it exists as a layer between the .NET application and the underlying operating system. In other words the .NET framework encapsulates much of the basic functionality, such as debugging and security services, which was earlier built in various programming languages in the form of a collection of services and classes.

Components of .NET framework:

The .NET framework consist of three main components

Common language runtime.
.NET framework base classes
User and program interfaces
Common language runtime:

The CLR is one of the most essential components of the .NET framework. CLR is the environment where all programs using .NET technologies are executed. It provides services such as code compilation, memory allocation and garbage collection.

.NET Framework Base Class:
the class library is built on the object oriented nature of the runtime. The library provides classes that can be used in the code to accomplish the range of common programming task, such as string management, data collection, database connectivity and file access.

User and Program Interfaces

At the presentation layer, .NET provides three types of user interfaces. They are

windows forms
Web forms
Console application
Windows forms used windows based application. Web forms are used in web based application. We can create character-based application that can be executed from the command line.

III. What is unsafe code? Explain.

Ans: The c# language has omitted pointers as a datatype. C# instead provides references and the ability to create objects that are managed by a garbage collector. This design contributes in making c# a much safe language than C or C++. In the core c# language it is simply possible to have an uninitialized variable, a “dangling” pointer, or an expression that indexes an array beyond its bounds. These categories are main cause of bugs in c and C++ programs, so are eliminated here.

While practically every pointer type construct in c or C++, there are situation where access to pointer types become a necessity. For example, interfacing with the underlying operating system, accessing a memory mapped device or implementing a time critical algorithm may not be possible without access to pointers. To address this need, C# provides the ability to write unsafe code.

The unsafe code it is possible to declare and operate on pointers, to perform conversions between pointers and integral types, to take the address of variables, and so forth. Unsafe code must be clearly marked with the modifier unsafe so developers cannot possibly use unsafe features accidentally.

IV. What are the different types of arrays supported by C# programming?

Ans: The different types of arrays supported by c# programming are:

i. Single dimensional array:

We can declare an array of five integers as in the following example.

Int[] myArray = new int[5];

This array contains the elements from myArray[0] to myArray[4]. The new operator is used to create the array and initialize the array elements to their default values. In this care, all the array are initialize to zero.

An array that stores sring elents can be declared in the same way. For example

String[] myStringArray= new string[6];

ii. Multidimensional Arrays:

Array can have more than one dimension. For examples the following declaration creates a two-dimensional array of four rows and two columns:

Int[,] myArray = new int[4,2];

Also it can create an array of three dimensions 4, 2 and 3 as show below;

Int[ , , ] myArray = new int[4,2,3]

iii.Jagged Array:

A jagged array is an array whose elements are array. The elements of a jagged array can be different dimension and sizes. A jagged array is sometime called and “array of arrays.” This we will see examples of declaring, initializing and accessing jagged arrays.

The following is a declaration of single-dimensional array that has three elements, each of which is single-dimensional array of integers:

Int[][] myJaggedArray = new int[3][];

V. How .NET remoting different from web services and DCOM ?

Ans:

.NET Remoting versus Distributed COM (DCOM)

In the path inter process communication between applications was handled through distributed components model, or simply DCOM. DCOM works well and the performance is inadequate when applications exits on computers of similar type on the same network. However, DCOM has its drawbacks, it relies on a proprietary binary protocol that all object model supports. It also wants to communicate over a range of parts that are typically blocked by firewalls. These are two major drawbacks of DCOM.

.Net remoting eliminates the difficulties of DCOM by supporting different transport protocol formats and communication protocols. This alows .NET remoting to be adaptable to the network environment in which it is being used.

.NET Remoting versus web services

When we read the description of .NET Remoting it reminds us a lot of what we have read about web services. That is because web services. That is because web services full under the roof of .NET Remoting but web services have a simplified programming model and are intended for a wide target audience.

Difference between .NET Remoting and Web Services are:

a) ASP.NET based web services can only be accessed over HTTP whereas the .NET remoting can be used across any protocol.

b) Web Services work in a stateless environment where each request in a new object created to services the request in a new object created to service the request. .NET Remoting supports state management options and can identify multiple call from the same client.

c) Web services serialize objects through XML contained in a SOAP message and can thus only handles items that can be fully expressed in XML. .NET remoting relies on the existence of the metadata within assemblies that can information about data types. this limited metadata information is passed about an object, when it is passed by reference.

d) Web services support interoperability across platforms and are good for heterogeneous environments. .NET remoting requires the client be built using .NET, which means a homogeneous environment.


For more information you may Contact to the Kuvempu University the contact details Are given below

Contact details
Kuvempu University
Address: Jnanasahyadri, Shankaraghatta, Road leading to Kuvempu University, Shimoga, Karnataka 577451
Phone: 082822 56301


Quick Reply
Your Username: Click here to log in

Message:
Options



All times are GMT +5. The time now is 08:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.6.0

1 2 3 4 5 6 7 8