answersLogoWhite

0

📱

.NET Programming

.NET Programming involves the use of the .NET Framework, a software framework for Microsoft Windows operating systems. The framework supports several programming languages. The .NET library is available to all the programming languages that .NET supports.

607 Questions

What is thread in computing?

a very small twist of flax,wool,cotton, silk or other fibrous substance, drawn out to considerable length; a compound cord consisting of two or more single yarns doubled, or joined together, and twisted.

What does NET framework comprised off?

From the above discussion, you can broadly make out that the .NET Framework is an environment for the developers. It mainly comprised of programming methodology and technologies. To understand the .NET Framework, we should explore three major areas

l Programming Methodologies

l Platform Technologies

l Code Execution

Programming Methodology

On the Programming Methodology side, an interesting thing about .NET is that it allows for mixed language programming. By designing from the ground up a specification that is common to all the languages hat work in .NET Framework, by designing a type system that all those languages support, and by specifically designing an intermediate language that all those languages compile into; before they compile in native code.

Platform Technologies

In Platform technologies, we will mainly go through -- ADORNED, Internet technologies and User interface designing. The following paragraphs talks about these topics.

Code Execution

The interesting thing about code execution on .NET framework is, when we hear about .NET, we think, that it is particular to Interlaced computers. But it is certainly not. The standardized common language infrastructure is completely architecture-neutral. The whole purpose of making it standard and putting it in the public domain was so that that infrastructure could be implemented on any platform whatsoever. The whole idea is that we are neutral in terms of the architecture.

Who develops software?

Software developers are responsible for developing software. Software developers are involved in all phase of developing software and they take part in researching and designing as well.

What is the difference between .net and .NET framework?

The .NET Framework and .NET are related but different technologies:

  • .NET Framework - This is Microsoft's original implementation of .NET for building applications that run on Windows. The .NET Framework provides a runtime environment and libraries for .NET applications. It was first released in 2002.

  • .NET - This is the current evolution of the original .NET Framework. Whereas .NET Framework was Windows-only, .NET is a cross-platform, open-source implementation that runs on Windows, Linux, macOS, etc. It supports more modern application scenarios like cloud, mobile, and web apps.

Some key differences:

  • .NET Framework only runs on Windows. .NET runs cross-platform.
  • .NET Framework is closed source. .NET is open source.
  • .NET Framework is only supported by Microsoft. .NET is supported by Microsoft and the .NET community.
  • .NET Framework is legacy technology. .NET represents the current direction.
  • .NET has unified frameworks like .NET Core and .NET 5+. .NET Framework had separate versions like .NET Framework 3.5, 4.0, etc.

In summary:

  • .NET Framework is the original Windows-only .NET released in 2002.

  • .NET is the new open-source, cross-platform version of .NET, representing the future direction.

Read full guide at Msckey blog.

Explain the term Recursion with example?

Recursion is when a function (procedure) calls itself.

Example:

int Fib (int n)

{

if ((n==1)(n==0))return 1;

else return Fib(n-1) + Fib(n-2);

}

Is it possible to define a java static method inside a main method?

Because, the main method is the starting point of the java program and if we need an object of that class even before the main can be invoked, it is not possible. Hence it is declared static so that the JVM Can acess the main method without having to instantiate that particular class

Why the .net is platform dependent?

Ya .Net is platform independent as well as dependent.

Once the code is written , it is then compiled into MSIL (Microsoft Intermediate Language) which is independent of platform, here the CLR (Common Language Runtime) comes into picture and it consists of JIT(Just In Time)compiler which is going to convert the MSIL code into platform/device specific code. So We have CLR for Windows and CLR for Linux. Here its dependent of the type of machine its running on. So its Dependent.

Write a program find greatest no between three no?

public class MathExtension {

public static decimal getGreatest(decimal d1, decimal d2, decimal d3) {

decimal temp = Math.Max(d1, d2);

return Math.Max(temp, d3);

}

}

caller:

Console.WriteLine(MathExtension.Extension(2m, 3m, 1m)); // prints 3 on console)

What is expansion of DOT in dot net language?

.NET- NETWORK ENABLED TECHNOLOGY

here . stands for LINKAGE BETWEEN MANY OBJECTS

Is NET in support of object oriented language?

Yes, every language supported by Microsoft and on the .NET framework is an object oriented language. (OOP)

Why do need Unicode when you have Ascii?

ASCII only has 127 standard character codes and only supports the English alphabet. While you can use the extended ASCII character to provide a set of 256 characters and thus support other languages there's no guarantee that other systems will use the same code page, so the characters will not display correctly across all systems (the characters you see will depend upon which code page is currently in use). Moreover, some languages, particularly Chinese, have thousands of symbols that simply cannot be encoded in ASCII.

UNICODE encoding supports all languages and the first 127 symbols are also the same as ASCII, so all characters appear the same across all systems. UTF8 is the most common UNICODE encoding in use today because it uses one-byte per character for the first 127 characters and is therefore fully compliant with non-extended ASCII. If the most-significant bit is set then the character is represented by 2 or more bytes, the combination of which maps to the UNICODE encoding.

How do you re size the label in visual studio?

If you mean font, then you can use the font property of the label. Otherwise, you can't because there is no point to.

String reverse program with single string and without using library functions in java?

You can create a separate string initially empty. Then using a loop, start at the end of the string and add it to the end of the other string. At the end of the loop, the other string would contain the reverse.

What is the difference between ASP Net and visual studio Net?

Visual Studio is an IDE, whereas DotNet is a framework. A Framework is a set of usable components which can be used to develop some application, hence Visual Studio is a development environment for DotNet based applications.

What is mean by parse in java?

It is used to convert the value of one datatype into a value of another datatype. Example- Integer.parseInt(in.readLine); It converts given value to Integer datatype.

What is the difference between throw and throws in Java?

Throw is used to actually throw the exception, whereas throws is declarative for the method. They are not interchangeable.

public void myMethod(int param) throws MyException

{

if (param < 10)

{

throw new MyException("Too low!);

}

//Blah, Blah, Blah...

} The Throw clause can be used in any part of code where you feel a specific exception needs to be thrown to the calling method.

If a method is throwing an exception, it should either be surrounded by a try catch block to catch it or that method should have the throws clause in its signature. Without the throws clause in the signature the Java compiler does not know what to do with the exception. The throws clause tells the compiler that this particular exception would be handled by the calling method.

What is the difference between pthread and thread?

Answer POSIX threads are fairly portable. They can be emulated on uniprocessor systems at a slight (or sometimes no) penalty in speed. On shared memory multiprocessor machines, there is often kernel support for threads; this means that your application can take full advantage of all available CPUs and achieve (near) maximum performance. It is important to point out that threads libraries are predicated on shared memory. Threads won't help you on distributed memory machines Preeti

Explain the differences between Assembly Language and High Level Language?

Assembly language is used to write programs using the instruction set for a particular processor/controller.(example : 8051 or 8086 or MIPS).

  • It is confined to a particular machine, it involves symbolic representation of the binary machine codes and other constants needed to program a given CPU architecture.

Assembly Language require an ASSEMBLER to convert the assembly code to machine level code(HEX CODE)

High Level Language require a Compiler to convert into ASSEMBLY THEN machine level code.(Now-a-days compilers are smart enough to generate the machine code directly)

To write assembly code it is necessary to know the architecture of the processor or controller.

To write an High Level Program it is not neccessay to know the architecture completly.

Assembly language is not protable.

High Level Language is Portable.

with regards

Mohan Kumar.J

MCIS,

MANIPAL.

Assembly language is used to write programs using the instruction set for a particular processor/controller.(example : 8051 or 8086 or MIPS).

High Level Language is used to write programs using some grammer rules or languages created like C,PASCAL,FORTRN,JAVA.

Assembly Language require an ASSEMBLER to convert the assembly code to machine level code(HEX CODE)

High Level Language require a Compiler to convert into ASSEMBLY THEN machine level code.(Now-a-days compilers are smart enough to generate the machine code directly)

To write assembly code it is necessary to know the architecture of the processor or controller.

To write an High Level Program it is not neccessay to know the architecture completly.

Assembly language is not protable.

High Level Language is Portable.

with regards

Mohan Kumar.,

MCIS,

MANIPAL.

EACH HLL INSTRUCTION SPECIFY SEVERAL INSTRUCTIONS IN isa OF COMPUTER. WHEREAS EACH aSSEMBLY LEVEL INSTRUCTION SPECIFIES A SINGLE INSTRUCTION IN ISA OR MACHINE LEVEL LANGUAGE

PRIYA BAJAJ

WIPRO TECHNOLOGIES

BANGALORE

Answer--Assembly language :-

A programming language that is once removed from a computer's machine language. Machine languages consist entirely of numbers and are almost impossible for humans to read and write. Assembly languages have the same structure and set of commands as machine languages, but they enable a programmer to use names instead of numbers.

Each type of CPU has its own machine language and assembly language, so an assembly language program written for one type of CPU won't run on another. In the early days of programming, all programs were written in assembly language. Now, most programs are written in a high-level language such as FORTRAN or C. Programmers still use assembly language when speed is essential or when they need to perform an operation that isn't possible in a high-level language.

High-level language:-

  • A high level language hides the micro abstractions such as set of command required to be performed by the processors such as CPU. Java and C++ are all high level languages.
  • Java, C++ : all easy to write non-binary languages
  • Example : (i=10, i<10,i++)
  • It is not confined to particular machine.

-JP Morgan

A programming language such as C, FORTRAN, or Pascal that enables a programmer to write programs that are more or less independent of a particular type of computer. Such languages are considered high-level because they are closer to human languages and further from machine languages. In contrast, assembly languages are considered low-level because they are very close to machine languages.

The main advantage of high-level languages over low-level languages is that they are easier to read, write, and maintain. Ultimately, programs written in a high-level language must be translated into machine language by a compiler or interpreter.

The first high-level programming languages were designed in the 1950s. Now there are dozens of different languages, including Ada, Algol, BASIC, COBOL, C, C++, FORTRAN, LISP, Pascal, and Prolog.

An assembly language is where each statement corresponds to one machine instruction. A high level language is where each statement corresponds to more than one, sometimes many, machine instructions.

Why is Microsoft Word not used for writing HTML coding?

They are not text editors. They will have a lot of hidden characters in them that can disrupt the file. Along with the actual text, it will include the data that defines the font and the size and so on, and they all become part of the file. A HTML file should be done in a pure text editor and only have text in it. Formatting should not be important in the text itself. Then the browser will be able to read the file without being disrupted by other things in the file. Only if you can save the file as text only, would you use something that is not a text editor.

Why Customers prefer to develop their applications using Java or Dot net frame work?

Because that's the whole purpose of a programming language, the reason why they were developed - to make software.

Because that's the whole purpose of a programming language, the reason why they were developed - to make software.

Because that's the whole purpose of a programming language, the reason why they were developed - to make software.

Because that's the whole purpose of a programming language, the reason why they were developed - to make software.

How To find a maximum number in a 2D array?

// Pseudocode

int findMax( int[][] data ) {

// Return if data is empty

if( data.length 0 ) {

return 0;

}

int max = data[0][0];

// Iterate through each element in the array

for( int r = 0; r < data.length; ++r ) {

for( int c = 0; c < data[0].length; ++c ) {

// If we find a value greater than the current max, update max

if( data[r][c] > max ) {

max = data[r][c];

}

}

}

return max;

}

When was the programming language C Sharp initially developed or released?

It was developed by Microsoft during 2000-01. A beta version was released in October 2001 and a full version was out in April 2002.

During the development of the .NET Framework, the class libraries were originally written using a managed code compiler system called Simple Managed C (SMC). In January 1999, Anders Hejlsberg formed a team to build a new language at the time called Cool, which stood for "C-like Object Oriented Language". Microsoft had considered keeping the name "Cool" as the final name of the language, but chose not to do so for trademark reasons. By the time the .NET project was publicly announced at the July 2000 Professional Developers Conference, the language had been renamed C#, and the class libraries and ASP.NET runtime had been ported to C#.

C# First Language specification was given on December 2001

and its First Version was released on January 2002

What is asp?

ASP means, Active Server Pages. An Active Server Page is a web page that includes program code that is processed on a Microsoft web server before the page is sent to the user. The code is typically used to access data from a database and that data is then built into the returned web page "on the fly". ASP was developed by Microsoft and is a feature of Microsoft's web server software, but the dynamically generated pages can be viewed by almost any browser. Because at run-time the code is translated to html+JavaScript code

What is the difference between VB and Visual Studio?

I believe visual studio is the user interface, and it not only supports visual basic but also visual c++, c#, web development etc. Visual basic, on the other hand, is a programming language.

What was the difference between java and net?

Net survives because of java. Net is made up of java.

Internet is a huge network which can be accessed by various users throughout the world. They can use different platforms(or operating systems) which may cause problems like a web page designed for windows may not work with Linux.

Therefore to get rid of this problem java is used to design the internet which is

platform independent.

That is why, net and java are almost same but none is better although net has

got some additional features like flash,etc. with time.