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

Aggregation between objects, Aggregation between objects Aggregation am...

Aggregation between objects Aggregation among objects shows a relationship. It is a whole/part relationship. Aggregation might be implying containment.

Explain the sequential circuit, Sequential circuit:- A sequential circu...

Sequential circuit:- A sequential circuit is an interconnection of gates and flip-flops.  The gates by themselves constitute a combinational circuit, but when contained with th

Explain working of code inspectors, Q. Explain working of Code inspectors? ...

Q. Explain working of Code inspectors? Code inspectors A code inspector does a simple job of enforcing standards in a uniform way for many programs. These are able to be sing

Explain about non-functional requirement for a software, Q. Explain about n...

Q. Explain about non-functional requirement for a software ? Ans) Nonfunctional requirements are the basic characteristics of the system which will not be expressed as function

What is the test case, Test Case A test case is a unit level document d...

Test Case A test case is a unit level document describing the inputs, steps of implementation and the expected result of each test condition for each requirement from the BRD.

Use of test file generators in software engineering, Q. Use of Test file ge...

Q. Use of Test file generators in software engineering? Test file generators This creates a file of information that is used as the program and does so based on comments give

Determine the business process engineering tools, What are business process...

What are business process engineering tools? By modelling the strategic information requirements of an organization, business process engineering tools provide a "meta-model" f

Describe about unit testing, Q. Describe about Unit Testing? Unit Testi...

Q. Describe about Unit Testing? Unit Testing: The unit testing is completed to test the individual module of the software. Test cases are designed to test the program functiona

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