Explain about token count - software metrics, Software Engineering

Assignment Help:

Q. Explain about token count - software metrics?

Token count:- A program is considered to be series of tokens and if we count the number of tokens, some interesting results may emerge. Tokens are classified as either operators or operands. All software science measures are functions of the counts of these tokens.

Variables, constants and even labels are operands. Operators consist of arithmetic symbols such as +, -. /, * and command names such as "while", "for", "printf", special symbols such as : =, braces, parentheses, and even function names such as "eof".

The size of the vocabulary of a program which consists of the number of unique tokens to build a program is defined as:-

n =n1 + n2

Where, n : vocabulary of a program.

n1: number of unique operators

n2: number of unique operands.


Related Discussions:- Explain about token count - software metrics

List the task regions in the spiral model, List the task regions in the Spi...

List the task regions in the Spiral model. Customer communication - In this region it is suggested to make customer communication. Planning - All planning activities are car

What is the benefit of modular design, What is the benefit of modular desig...

What is the benefit of modular design? Changes made during testing and maintenance becomes manageable and they do not influence other modules.

The most important feature of spiral model, The most important feature of s...

The most important feature of spiral model is Risk management is the important feature of spiral model.

What is parallel/audit testing, Parallel/audit testing is testing where the...

Parallel/audit testing is testing where the user reconciles the output of the latest system to the output of the present system to determine the new system performs the operations

Applied physics, an isolated metal sphere has a radius r. when charged to a...

an isolated metal sphere has a radius r. when charged to a potential v, the charge on sphere is q. 1- state an expression, in terms of r and q, for potential v of sphere.

Graphical design notation, Explain any two graphical design notations used ...

Explain any two graphical design notations used in procedural design

How to compute the cyclomatic complexity, How to compute the cyclomatic com...

How to compute the cyclomatic complexity? The cyclomatic complexity can be computed by any one of the following ways. 1. The numbers of regions of the flow graph correspond

Analyses the system design process of a project, Write a report which criti...

Write a report which critically analyses the system design process of a project. Projects might include designing a light rail network for a city, more environmentally-conscious bu

What is the purpose of timeline chart, What is the purpose of timeline char...

What is the purpose of timeline chart? The purpose of the timeline chart is to highlight the scope of the individual task. Hence set of tasks are given as input to the timeline

Determine the level 0 and level 1 of DFD, Determine the level 0 and level 1...

Determine the level 0 and level 1 of DFD External entities provide input data for processing. During processing, some intermediate data is generated. After final processing, fi

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd