Difference Between C# and .NET

karthikeya Boyini
Updated on 30-Jul-2019 22:30:23

5K+ Views

C# is a programming language and .NET is a framework. .NET has Common Language Runtime (CLR), which is a virtual component of .NET framework. .NET not only has C#, but through it, you can work with VB, F#, etc. C# is a part of .NET and has the following features − Boolean Conditions Automatic Garbage Collection Standard Library Assembly Versioning Properties and Events Delegates and Events Management Easy-to-use Generics Indexers Conditional Compilation Simple Multithreading LINQ and Lambda Expressions Integration with Windows

Python Interface to Shell Pipelines

Ankith Reddy
Updated on 30-Jul-2019 22:30:23

357 Views

To use the UNIX command pipeline mechanism using python. In the command pipelining a sequence converts from one file to another file. This module uses /bin/sh command line. So we need os.system() and os.popen() methods. To use this module, we should import it using − import pipes The pipes holds Template class − class pipes.Template This class is basically an abstraction of a pipeline. It has different methods. These are as follows. Method Template.reset() This method is used to restore the pipeline template to its initial position. Method Template.clone() This method is used to create another new, ... Read More

Swap Two Strings Without Using Third User-Defined Variable in Java

Arushi
Updated on 30-Jul-2019 22:30:23

285 Views

In order to swap two strings i.e interchange the content of two strings we will use sub string method of string class in Java.First of all get the length of both strings before making any change in any of string.Now modify one string as concatenate both strings and assign to one string. After this use sub string method of String class using begin index as length of new modified string 1 and last index as initial length of string 1.This will give us the swiped string 1 which contain content of string 2. Now to get swiped string 2 again ... Read More

Resource Usage Information Using Python

Chandu yadav
Updated on 30-Jul-2019 22:30:23

911 Views

To measure the UNIX resource usage, we need to use the resource module into our programs. This module also can control the resource utilization. To use this module, we should import it using − import resource Resource Limits In this module we can use the setrlimit() to limit the resource utilization. There are two parameters to limit the resources. These parameters are soft limit and the hard limit. The soft limit is basically the current limit, it can be changed over process, but it cannot exceed the hard limit. The hard limit can be reduced to any value ... Read More

Instruction Type SBI D8 in 8085 Microprocessor

karthikeya Boyini
Updated on 30-Jul-2019 22:30:23

2K+ Views

In 8085 Instruction set, SBI is a mnemonic that stands for “Subtract with Borrow Immediate from Accumulator” and here d8 stands for any 8-bit data as operand. This instruction is used to subtract 8-bit immediate data from the Accumulator along with the carry (borrow) value. The result of subtraction will be stored in the Accumulator. As this is an arithmetic instruction, so the flags are affected based on the result produced. It occupies 2 consecutive Bytes in memory. Mnemonics, Operand Opcode(in HEX) Bytes SBI Data DE 2 Let us consider SBI 13H as a ... Read More

New Features of C++17

Ankith Reddy
Updated on 30-Jul-2019 22:30:23

640 Views

C++17 is the latest version of standard C++ language. C++11 and C++14 are the previous versions of C++. The current version makes several additions to the core language while some previous features are also removed. C++17 is known as feature full or feature complete. There are some of the new changes introduced in C++17 − Library changes - utils This is one of the most amazing feature of C++17. It merges the features and patterns of other libraries. Many of the sub-libraries are merged together into standards. The following features are added to utils library in C++17 − std::variant ... Read More

Python Interface to UNIX Syslog Library Routines

George John
Updated on 30-Jul-2019 22:30:23

341 Views

To get the UNIX syslog library information, we need to use the syslog module into our programs. This module has syslog has different modules for the syslog library. To use this module, we should import it using − import syslog The methods are like below − Method syslog.syslog(message) or syslog.syslog(priority, message) This method is used to send a string type message to the system logger. Each message has a priority. The priority argument can be used to set the priority of the given message. Method syslog.openlog([ident[, logoption[, facility]]]) This method is used to logging options of subsequent syslog ... Read More

Swap Two Variables in One Line in Java

Jai Janardhan
Updated on 30-Jul-2019 22:30:23

1K+ Views

In order to swap two variable using single expression or in single line we could use bitwise XOR operator of Java. As we now that in Java XOR functions as XOR of two numbers a and b returns a number which has all the bits as 1 wherever bits of a and b differs. So for swapping of two variable we would use this operator as Example Live Demo public class SwapUsingBitwise { public static void main(String[] args) { int a = 8 ; int b = 10; ... Read More

Instruction Type INX RP in 8085 Microprocessor

Samual Sam
Updated on 30-Jul-2019 22:30:23

12K+ Views

In 8085 Instruction set, INX is a mnemonic that stands for “INcrementeXtended register” and rp stands for register pair. And it can be any one of the following register pairs. rp = BC, DE, or HL This instruction will be used to add 1 to the present content of the rp. And thus the result of the incremented content will remain stored in rp itself. Though it is an arithmetic instruction, note that, flag bits are not at all affected by the execution of this instruction. A register pair is generally used to store 16-bit memory address. If ... Read More

Storage Device Hierarchy

David Meador
Updated on 30-Jul-2019 22:30:23

5K+ Views

Computer storage has components that store computer data. The different storage types in the storage hierarchy are as follows: Primary Storage This is also known as the main memory and is the memory directly accessible by the CPU. All the instructions are executed in the main memory by CPU and the data required by these instructions is also stored in main memory. Main memory primarily consists of the RAM which is volatile in nature. It is also quite small compared to secondary memory and expensive as well. Secondary Storage Secondary or external storage is not directly accessible by the ... Read More

Advertisements