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

Explain software testing, Explain Software Testing. Why is it important t...

Explain Software Testing. Why is it important to conduct the testing of software? Software testing is verifying if software meets the customer's requirements; if it has high

Program input initiated interpput, what are the basic advantages of using i...

what are the basic advantages of using interrput-initiated data transfer over transfer under progrm control without an interrput

PSEUDO CODE, You are to create a decision table to help you decide what to ...

You are to create a decision table to help you decide what to do for the day. If it is a weekday and it is not a holiday, then you go to work. However, if it is a weekday and it

Objectives of data dictionaries, Objectives of Data dictionaries:- 1)  ...

Objectives of Data dictionaries:- 1)  A standard definition of all terms in a system, that is every item of data is uniquely identified and described. 2)  Easy cross-referen

What do you understand by user-centred design, Problem: (a) What do yo...

Problem: (a) What do you understand by user-centred design and why is it important? (b) Explain how Prototyping and the Participatory Design approach are useful to the d

Define about the erroneous data - Test data, Define about the erroneous dat...

Define about the erroneous data - Test data Abnormal/erroneous data  -  This is data outside the limits of validity/acceptability and must cause an error message to be g

Explain operational testing, Describe Operational Testing? Ans) Testing ...

Describe Operational Testing? Ans) Testing done by the end user on software in its normal operating environment.

What is the utilisation of cmm, What is the utilisation of CMM? Capabil...

What is the utilisation of CMM? Capability Maturity Model is used in assessing how fine an organisation's processes permit to complete and manage latest software projects

What is equivalence partitioning, Equivalence Partitioning: -Equivalence pa...

Equivalence Partitioning: -Equivalence partitioning is black box testing method that separates the input domain of a program into classes of data from which test cases can be deriv

What is a modular system, What is a modular system? A modular system h...

What is a modular system? A modular system having of well defined manageable units to well defined  interfaces between them.

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