Showing posts with label C language. Show all posts
Showing posts with label C language. Show all posts

Friday, 15 February 2013

Decision Table


Decision Table is the tabular representation of logic and decision.Sometime it is very difficult to create a flowchart for many condition,so at that conditions we used Decision table.So Decision table is a table which is used to create complex program logic of system/software.

Decision Table is divided into 4 parts:-


1)Conditions


2)Actions


3)Condition Entries


4)Action Entries


Type of Decision Table:-


1)Limited Entry Table(Action and statement are full)


2)Mixed Entry Table(Action and statement are partially full)


3)Extended Entry Table(Action and statement are not complete).


Sample/Example of decision table(Format):-


Condition Rule 1 Rule 2 Rule 3 Rule 4
Joy's Play Y Y N
Jame's Play N Y Y
Rome's Play Y N Y
Actions


Joy's Play X X

Jame's Play
X X X

Advantages of decision table:-

1)Very simple to create.

2)Easy to understand.

3)Easy to convert into computer program.

4)Table can be split.

5)We can change table according to requirements.

Disadvantages of decision table:-

1)In Simple conditions,flowchart will be beneficial.

2)When to many condition,action than decision table can not list them.

Related posts:-

1)Data Dictionary.
2)Decision Tree.


That's all about what is decision table testing technique,if you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Wednesday, 21 November 2012

Starting Guide of C language


C Language:-C is a programming language which is developed by Dennis Ritchie in 1972 at AT&T Bell Lab. of United State Of America.C is a third generation programming language.
C is developed after ALGOL(Algorithm Language),CPL(Combined Programming Language),BPCL(Basic Combined Programming Language),B language.

Features of C language:-

1)C is popular because it is reliable,simple,easy etc.
2)It is also called mother language because most of the language are based on C.
3)It is also called Process Oriented Language(POL).
4)Its support top-down approach.
5)C is very efficient Language.
6)C is case-sensitive.
7)C is also called as middle level language.
8)C is suitable with both system and application software.
9)Program Written in C language are usually small.
10)C is flexible means you can updated,extended,maintained etc.

Token in C language:-

Token can be character set,reserved keywords,Identifier,Constant,data-type or operator.


Character:-Character means Alphabet(like a to z,A to Z),Digits(0-9),Blank Space,Special Symbol(like #,@,$,% etc.) .

Reserved Keywords:-C has 32 Reserve keywords which have predefined meaning in compiler.In which some are-auto,break,char,do,do-while,goto,for,int,if,long,else,enum etc.

Identifier:-Identifier are user defined like structure,variable,union,array etc.

Constant:-Constant are the variables which are not change during the execution of the program.

Operator:-C language has three operator namely unary,binary and ternary operator.For briefly see here.

Data Type:-C has 4 type of 'data type' namely-

1)Primary Data type.
2)Secondary Data type.
3)User defined Data type.
4)Empty Data type.

You can see the chart of Data types here.


If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.