Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Compare corporation and incorporation.
The major differences between corporation and incorporation are as follows −CorporationIncorporationIt’s an entity to run a business.First process in registration as corporation.It is termed as CORP.It is termed as INC.Second stage of business.Takes place incorporation register process.Holds liabilities on personal assets.Limited liability.Outcome of incorporation process.Should follow legal process.Don’t get funds for company.Act as pool to get funds.Relates to day to day activities of business.Safeguards the interests and personal assets of owners/shareholders.Will have almost same functioning, features and goals.Process differ from country to country.Formed to carry out specific operations.Helps entity to become a corporation by series of steps.
Read MoreWrite the difference between dividend and growth.
The major differences between dividend and growth are as follows −DividendShorter time horizon (cash inflow is regular).Cash flow (stocks) at periodic intervals.Release of excess return.Tax free (money received).Less risk (money will get at regular intervals).Outperform growth stocks.Less volatile.Capital appreciation and cash flows (upside).Usually perform even in bear market.Investors will look for low market value than intrinsic value.Investors will look at dividend yields, pay-out ratio.GrowthLonger time horizon (cash inflow is end of period).Cash flow at redemption/sale only.Re-investment of excess return.Tax free (money received), only for some schemes of mutual funds.Higher returns for investors.Underperform than dividends stocks.More volatile.Only capital appreciation (upside).Poorly perform ...
Read MoreCompare asset purchase and stock purchase.
The major differences between asset purchase and stock purchase are as follows −Asset PurchaseStock PurchaseTransfer of ownership is not possible.Transfer of ownership is available.Can claim tax benefits.Can’t claim tax benefits.Less complexity.More complex.Re-negotiation on employee agreement is available.Re-negotiation of employee agreement is not available.Buyers can choose risk and liabilities to bear.Buyers absorb risk and liabilities.Ownership can’t be lost and can’t exchange hands.Ownership can be lost, exchange hands.Less prevalent in market.More prevalent in markets.Retitling of asset is required.Retitling assets in not required.Minority shareholders don’t create problems.Minority shareholders can create problems.
Read MoreWrite the difference between short term capital gain and long term capital gain.
The major differences between short term capital gain and long term capital gain are as follows −Short term capital gainsHeld for less than a year or a period and then sold off.Difference between consideration received and cost basis (short term asset).If the asset is owned for less than 24 months it is considered as immovable property and if it is owned for less than 36 months it is termed movable property.Easily tradable and liquid assets.Short term view of market.Lesser profits compared to long term gains.Less risk.Tax rates are same as income tax for individuals.Taxes may be reduced by including short ...
Read MoreWhat is Carrier Sense Multiple Access (CSMA)?
Carrier Sense Multiple Access (CSMA) is a network protocol for carriertransmission that operates in the Medium Access Control (MAC) layer. It senses or listens whether the shared channel for transmission is busy or not, and transmits if the channel is not busy. Using CMSA protocols, more than one users or nodes send and receive data through a shared medium that may be a single cable or optical fiber connecting multiple nodes, or a portion of the wireless spectrum.Working PrincipleWhen a station has frames to transmit, it attempts to detect presence of the carrier signal from the other nodes connected to ...
Read MoreAuto-complete feature using Trie
We have a Trie, and when a user enters a character, we have to show the matching string the Trie. This feature we call it as auto-completion. For example, if a Trie contains "xyzzzz, ""xyz, " "xxxyyxzzz" and when the user enter xy, then we have to show them xyzzzz, xyz, etc.., Steps to achieve the result.Search for the string using the standard Trie algorithm.If the string is not present, then return -1.If the string is present and is the end of a word in Trie, then print the string.If the matching string doesn't have any node, then return.Else print ...
Read MoreAdd the slug field inside Django Model
In this tutorial, we are going to learn about the SlugField in Django.SlugFieldSlugField is a way to generate a URL using the data which we already have. You can generate URL using your title of the post or page. Let's see one detailed example.Let's say we have an article with name This is from Tutorialspoint with id = 5. Then we can have URL as www.tutorialspoint.com/posts/5/. It's difficult for the content writers to recognize the article with the previous URL. But, if you have a URL like www.tutorialspoint.com/this-isfrom-tutorialspoint, then it's easy for us to identify the piece. So, SlugField is ...
Read MoreWhat is the use of the Get-Error cmdlet in PowerShell?
Get-Error cmdlet was introduced in PowerShell v7. It displays the most recent error messages from the current session.When you check the get member of this command, its output is in the form of PSExtendedError so whatever the output is produced by this command is in a detailed manner and so this command is very helpful in troubleshooting error messages.PS C:\> Get-Error | gm TypeName: System.Management.Automation.ErrorRecord#PSExtendedErrorWe will write one command in the PowerShell console which is ultimately generate an error.PS C:\> Get-ChildItem c:otexist Get-ChildItem: Cannot find path 'C:otexist' because it does not exist.The above directory does not exist. Let’s get a ...
Read MoreWhich are the new Null Operators introduced in PowerShell version 7?
PowerShell version 7 has introduced a few new null operators. They are as below.Null-Coalescing operator - ??Null Conditional Assignment Operators - ??=Null Conditional member access operators - ?. and ?[]a. Null-Coalescing operator - ??Null Coalescing operator ??evaluates the left-hand side condition or operand and if it is null then evaluates the right-hand side operand otherwise provides the value of the left-hand side operand.For example, Without the Null-Coalescing operator, we would have written a script like as shown below, $Name = $null if($Name -eq $null){"Name is Null"} Else {"PowerShell"}The above same condition can be written with the ?? operator.$name = $null ...
Read MoreHow to use the ValidateCount attribute in PowerShell Function?
The validateCount attribute in PowerShell function is to validate the length of an array, which means that you can pass the specific number of arguments into the parameter. In the below example we need array should contain a minimum 1 and maximum 4 values when we pass the values. For that, we will write the below script, Function ValidateArray { Param ( [ValidateCount(1, 3)] [String[]]$Animals ) return $PSBoundParameters }OutputPS C:\> ValidateArray -Animals Cow, Dog, Cat Key Value --- ----- Animals {Cow, Dog, Cat}The above output is valid but when we pass ...
Read More