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

Determine the higher order programming languages, Determine the Higher orde...

Determine the Higher order programming languages Higher order programming languages such as COBOL and PASCAL came into existence. Use of these made programming much easier. In

What are command buttons, What are command buttons? How to use command butt...

What are command buttons? How to use command buttons? Command buttons are defines to as controls. The control is capable of implementing a set of instruction when the user clic

What is exception, What is Exception? Ans) An event that causes suspensi...

What is Exception? Ans) An event that causes suspension of normal program implementation. Types contain addressing exception, operation exception, data exception, overflow excep

What is test objective, An identified set of software features to be calcul...

An identified set of software features to be calculated under specified conditions by comparing actual behavior with the needed behavior described in the software documentation.

What is meant by throw away prototyping, What is meant by Throw away Protot...

What is meant by Throw away Prototyping? Giving the user a system which is incomplete and then changing and augmenting it as the user requires become clear. The objective

What is incremental analysis, Incremental analysis happens when (partial) a...

Incremental analysis happens when (partial) analysis may be performed on an incomplete product to permit early feedback on the development of that product.

Explain path testing, Testing to satisfy coverage criteria that every logic...

Testing to satisfy coverage criteria that every logical path by the program be tested. Often paths by the program are grouped into a finite set of classes. Single path from every c

Explain code walkthrough, A manual testing [error detection] method where p...

A manual testing [error detection] method where program [source code] logic [structure] is traced manually [mentally] by a group with a small set of test cases, whereas the state o

Cds - isis software, CDS/ISIS Software (Micro Version): Micro CDS/ISIS...

CDS/ISIS Software (Micro Version): Micro CDS/ISIS is an advanced non-numerical information storage and retrieval software package. It was developed by UNESCO in 1985 to meet t

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