The range based for loop is added in C++ 11 standard and is a more compact form of its traditional equivalent. The range based for loop is used to iterate over elements of a container from beginning to end. The syntax for range-based for loop is as follows −Syntaxfor( range-declaration : range-expression ) loop statementrange-declaration − it is declaration of a variable of type same as the type of elements of range-expression. Often the auto keyword is used to automatically identify the type of elements in range-expression.range-expression − any expression used to represent a sequence of elements. Also Sequence of ... Read More
To test the remote connectivity using PowerShell Test-Connection command is used. PowerShell also supports the Ping command and both the commands are almost produce the same output but Test- Connection cmdlet supports advanced parameters. See how both commands output look.Ping Command −PS C:\Temp> ping Test1-Win2k16 Pinging Test1-Win2k16 [192.168.0.108] with 32 bytes of data: Reply from 192.168.0.108: bytes=32 time Test-Connection Test1-win2k16 Source Destination IPV4Address IPV6Address ------ ----------- ----------- ----------- ADDC Test1-win2k16 192.168.0.108 ADDC Test1-win2k16 192.168.0.108 ADDC Test1-win2k16 192.168.0.108 ADDC Test1-win2k16 192.168.0.108You can reduce the number of checks using ... Read More
Internet Explorer (IE) supports the enhanced protection mode for more security of the browser and the same can be enabled/disabled using PowerShell. Let see when we can find this setting in IE.Internet Explorer → Internet Options → Advanced → Enable Enhanced Protection ModeWe can modify this setting using PowerShell and for that registry settings need to be done. Registry value can be found under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main and the key name is Isolation for enhanced protection mode.PMIL – To disable IE enhanced protection ModePMEM – To Enable IE enhanced protection modeTo make the changes using the script.Enable IE EP modeIf there ... Read More
The major differences between contribution margin and gross margin are as follows −Contribution MarginIt is used by pricing decision (whether product line is making profits or not).Contribution margin = difference between sales and variable costs divides by sales.It analyses profit metric per item.Only variable cost is considered for calculations.It determines the margin for production, where only variable costs are present.It detects variable costs and its percentage included in margin.It is useful for multiple scenario analysis.Gross MarginWhether production cost is covered by its sales or not.Gross margin = difference between revenue and Cost of goods sale/revenue.It analyses total profit metric.It considers ... Read More
The major differences between share outstanding and float are as follows −Share OutstandingThese are shares held by stakeholders, company officials and investors in public domain.Contains both stock float and restricted shares.Contains all shares of company held by its investors.It is used to calculate market capitalisation and earnings per share (EPS).It provides voting right and ownership right.Private or public limited company will issue these kinds.It has low risk.FloatIt is share issued by company to public and available to investors for trading in stock market.Contains only float stock.It is available for public.It acts as determinant of financial calculations.Won’t provide voting right and ... Read More
The major differences between discount rate and interest rate are as follows −Discount RateFederal reserve banks charges to depository institution/commercial banks on its overnight loans.Central banks decide the rate.It is not determined by market rate of interest.It determines present value of future cash flows.It focuses on investors view.The demand and supply has no effect on discount rate.Interest RateIt is an amount charged by lender to a borrower for use of assets.Commercial banks decide the rate.It depends on market rate of interest, creditworthiness etc.It can’t determine present value.It focuses on lender’s view.The demand and supply has effect on interest rate.Read More
The major differences between ROIC and ROCE are as follows −ROICROIC refers to Return on invested capital.It aims to find the return relative to capital which is invested in business.It evaluates profitability by considers only capital invested in the business.ROIC = Net operating profit/invested capital.Company said to be profitable, if ROIC is greater than zero.Measures after tax.It is more important for an investor.ROCEROCE refers to Return on capital Employed.Its main aim is to find return relative to total capital employed.It had very broad scope.ROCE = net operating profit/capital employed.Company said to be profitable, if ROCE greater than cost of capital.Measures ... Read More
The major differences between licensing and franchising are as follows −LicensingFranchisingBusiness model deals with products and goods.Ownership is with licensee.Governed by contracts law between partiesWithout investing huge capital licensor will get vertical integration in market.Licensor don’t have control over intellectual property rights.Registration is not mandatory.No training and support is provided.One-time property/rights transfer.Negotiable fee structure.Royalties are commonly used term.Covers single product/products.Generally, established business will go licensing.Business models deals with providing services.Ownership is with franchisee.Governed by companies’ laws and other federal laws (international business)Franchisor get access to diversified market geographically.High initial investment is required.Registration is mandatory.Training and support is provided.Ongoing assistance is ... Read More
The major differences between budget and forecast are as follows −BudgetIt’s a business plan made by management for future with quantitative.It shows what a company want to achieve during a period of time.Generally, it is short term.It is static in nature.It is used as tool to manage operational performance in short term.It sets the targets.It is updated annually.There is variance analysis.Covers large areas like costs, revenue, profits etc.Almost everyone will aware of budget.ForecastIt is based on historical data; future trends can be estimated.It tells about what a company will achieve in a specified period.Generally, it is long term.It is more ... Read More
The major differences between active and passive investment are as follows &mius;Active InvestmentIt is an investment invested after doing independent analysis on value of each investment.The main objective is to beat market performance.It focuses on absolute terms.In view of investor perception, market may be inefficientIt has higher transaction frequency.It has high returns and more risk.It has high operating cost.It includes short term price fluctuations.High skills are required to make decisions.It is highly flexible in investing.Passive InvestmentIt is invested after investor portfolio is matched with market portfolio.The main objective is to match tracked index.It focuses on relative returns.In the view of ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP