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

Describe component testing, Describe component testing. - Component tes...

Describe component testing. - Component testing is also called as module, unit or program testing. - It looks for defects in software and verifies its functioning. - It c

What is crash, The sudden and finish failure of a computer system or compon...

The sudden and finish failure of a computer system or component.

Design test cases for loop testing, Q. Regard as a program that reads a set...

Q. Regard as a program that reads a set of Data for 'n' no. of triangles. The program reads three integer values like representing the sides of triangles. The program prints for ea

What does a usecase diagram represent, Problem : (a) What does a UseCas...

Problem : (a) What does a UseCase Diagram represent? (b) Draw a UseCase Diagram for the above case study. (c) For any one use case give a detail use case specification.

Word processing software, Word Processing Software: Word processing is...

Word Processing Software: Word processing is one of the most wide spread applications software types in use today. Developed as a successor to primitive text-editors that re o

What is meant by information flow continuity, What is meant by Information ...

What is meant by Information flow Continuity? When we refine a fundamental model for a system, the information flow continuity must be maintained .ie, input & output to every r

Define equivalence partitioning, What is equivalence partitioning? Equi...

What is equivalence partitioning? Equivalence partitioning is a black box method that separates the input domain into classes of data. From this data test cases can be derived.

Define software measurement, Define software measurement. A software me...

Define software measurement. A software measurement is a method or method that applies software calculates to a class of software engineering objects to attain a predefined goa

Describe the various types of restructuring techniques, Describe the variou...

Describe the various types of restructuring techniques. (a) Code Restructuring: It is performed to yield a design that produces the similar function but with higher quality t

What is up time, What is Up time? "Up time" is the time period when a me...

What is Up time? "Up time" is the time period when a method is operational and in service. Up time is the sum of idle time and busy time.

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