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

What is version and release management, What is Version and release managem...

What is Version and release management? Invent an identification system for system versions. Plan when a new system version is to be formed. Ensure that version managemen

Differentiate between circuit switching and packet switching, Question: ...

Question: (a) Differentiate between circuit switching and packet switching. (b) Using an example, explain the main parts that form a URL (Uniform Resource Locator). (c)

Determine in verify about capability maturity models, Determine in verify a...

Determine in verify about CAPABILITY MATURITY MODELS In this model anapproach for improving Software process is devised. It isn't concerned which life cycle modeis followed for

What are the various elements of data design, What are the various elements...

What are the various elements of data design? i. Data object - The data objects are identified and relationship between various data objects can be shown using ERD or data di

What are the benefits of modular design, What are the benefits of modular d...

What are the benefits of modular design? Changes made during testing and maintenance becomes manageable and they do not affect other modules.

Software restructuring, Software restructuring Software restructuring c...

Software restructuring Software restructuring changes source code and / or data an effort to make it amenable to future changes. In general, restructuring does not change the o

List the pre-requisites for white-box testing, List the pre-requisites for ...

List the pre-requisites for white-box testing The pre-requisites for white-box testing are same to that of black-box testing with one main difference: - During white-box tes

Explain about rapid prototyping techniques, Explain about rapid prototyping...

Explain about rapid prototyping techniques.  Used to animate the system specification. It is expressed in a formal, mathematical language to provide a system prototype

Database, explain why older data models are being replaced by new data mo...

explain why older data models are being replaced by new data models.

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