Parameter
|
Black
Box Testing
|
White
Box Testing
|
Definition
|
It is a Software Testing Technique that examines the functionality of
an Application without peering into its working or coding.
|
It is a Software Testing Technique to test internal structure and
working of an Application Software.
|
Technique Applied in
|
This Technique Applied in Unit, Integration, System and Acceptance
levels of Software Testing Process.
|
This Technique Applied in Unit, Integration and system levels of
Software Testing Process.
|
Test Procedures
|
For Black box Testing Specific knowledge of the application's coding/internal
structure and programming in general is not required.
|
For White box Testing Specific knowledge of the application's coding/internal
structure and programming is required. |
Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts
Monday, May 12, 2014
Difference Between Blackbox and Whitebox Testing
Wednesday, July 17, 2013
User Defined Data Types in C++
The third type of data type in C++ is user defined.
Following are some user defined data types:
Structure:
Collection of data elements grouped under one name is called Structure.
Different data elements are called members and can have different data type of
different length.
Declaration
Struct Student
{
Int roll_no;
Float marks;
} BA, BSC, BCOM;
{
Int roll_no;
Float marks;
} BA, BSC, BCOM;
In this example Student is declared as Structure with members
roll_no and marks. BA, BSC, BCOM are the objects of structure Student. Here
roll_no is declared as integer and marks as float, which are fundamental data
types.
Tuesday, July 9, 2013
Derived Data Type in C++
The Data type that is derived from fundamental data types is
called derived data type. Some of them are explained below:
Array: An
array is a collection of homogeneous type of data. It is a named list of finite
numbers of data elements. In array each data element is referenced by a set of
consecutive numbers i.e. 1, 2, 3……n. If TECH is an array of five elements than
its elements will be referenced as: TECH [1], TECH [2], TECH [3], TECH [4], TECH[5].
An Array can either be one dimensional, two dimensional or multidimensional.
Thursday, July 4, 2013
Fundamental Data Types in C++
These
are those data types that are not composed of any other data types. C++ makes
use of following five fundamental data types
1) Char: This data type is used to store basic character sets. It is sometimes referred to as integer type because letters and symbols are represented in memory by the associated number codes. Table given below illustrates various types of character types along with their range.
1) Char: This data type is used to store basic character sets. It is sometimes referred to as integer type because letters and symbols are represented in memory by the associated number codes. Table given below illustrates various types of character types along with their range.
Character
Type
|
Size
in Bytes
|
Minimal
Range
|
Char
|
1
|
-128 to 127
|
Unsigned Char
|
1
|
0 to 255
|
Signed Char
|
1
|
-128 to 127
|
Wednesday, June 19, 2013
Selection Sort
It is the sorting technique with O (n2) Complexity. Hence
this technique can’t be used for sorting large lists. This sorting technique
finds maximum Value from the list and swaps it with first element. This process
is repeated for the remaining list until list is not sorted.
Only n swaps are required to swap n number of elements.
Example: Consider the following unordered list
10
|
40
|
7
|
3
|
25
|
33
|
Bubble Sort
It is the simplest type of sorting technique. In this
sorting technique, first two elements are compared and if first element is
greater than second, they are swapped. This process is repeated for each pair
of adjacent elements to the end of the data set. It again starts with first two
elements and repeat the process until no swap occurs.
This sorting technique can only be used for sorting small
lists. This technique can also be used for the large lists if only few elements
require sorting.
Important: Average and worst case performance of this sorting technique
is O (n2).
Wednesday, May 22, 2013
Subroutines
It is a set of program instructions that are designed to perform a specific task and are written separately and stored in memory.Subroutines can be defined within programs, or separately in libraries that can be used by multiple programs.
It is totally different from functions in the manner that function takes parameters, perform works and does not alter any value or work with any value outside it's scope .Functions also returns some value ,although their are some function in C that do not return any value like Void() . Subroutine directly work with the values of the caller/the code segment which invoked it, and does not return values.
It is totally different from functions in the manner that function takes parameters, perform works and does not alter any value or work with any value outside it's scope .Functions also returns some value ,although their are some function in C that do not return any value like Void() . Subroutine directly work with the values of the caller/the code segment which invoked it, and does not return values.
Monday, May 13, 2013
Difference between POP and OOP
Characteristics
|
POP
|
OOP
|
Acronym for
|
Procedure Oriented Programming
|
Object Oriented Programming
|
Program Division
|
Program is divided into small parts that are called functions.
|
Program is divided into small parts that are called objects.
|
Importance
|
Importance is given to functions and sequence of actions rather than
data.
|
Importance is given to Data rather than procedures or objects.
|
Approach Type
|
It is a top down approach.
|
It is bottom up approach.
|
Access Specifier
|
It does not have access specifiers.
|
It has access specifiers named as: Public, Private and Protected. |
Common Errors in Programming Languages
Following are the Most Common Errors in Programming Languages:
1) Syntax Errors: These are those types of errors that arise when a statement is not written as per the defined rules. This is the violation of rules. These types of errors are generated by the compiler. This may include:
a) Improper Termination of Statement.
b) Undeclared Variable use.
c) Missing Quotes
d) Missing Braces.
1) Syntax Errors: These are those types of errors that arise when a statement is not written as per the defined rules. This is the violation of rules. These types of errors are generated by the compiler. This may include:
a) Improper Termination of Statement.
b) Undeclared Variable use.
c) Missing Quotes
d) Missing Braces.
Thursday, April 18, 2013
Difference Between Testing and Debugging
S. No.
|
Testing
|
Debugging
|
1
|
It is a Process in
which a Program is validated.
|
It is the Process in
which program errors are removed.
|
2
|
It is a Positive
activity that demonstrates that Program is correct and meets its design
specifications.
|
It is a negative
activity in which known errors or bugs are removed.
|
3
|
Testing finishes when
all verifications against desired specifications have been done.
|
Debugging Finishes when
all known errors are removed. |
Thursday, April 11, 2013
Difference Between Structure and Union
Characteristics
|
Structure
|
Union
|
Definition
|
A structure is a collection of variables under a single name. These variables can be of different types, and each has a name which is used to select it from the structure.
|
A union is a special data type that enables to store different data types in the same memory location. You can define a union with many members, but only one member can contain a value at any given time
|
Declaration
| typedef struct {
char name[64];
char course[128];
int age;
int year;
} student;
| union Data { int i; float f; char str[20]; } data; |
Thursday, April 4, 2013
Difference Between malloc and alloc Functions
| Characteristics | malloc( ) | calloc( ) |
| Arguments | malloc() takes only single argument which is amount of memory to allocate in bytes. | calloc() needs two arguments i.e. No. of variables to allocate in memory, and the size of single variable in bytes. |
| Memory Initialization | malloc() does not initialize the allocated memory . | calloc() initializes the allocated memory to zero |
Difference Between Static and Dynamic Memory Allocation
Characteristics
|
Static Memory Allocation
|
Dynamic Memory Allocation
|
Definition
|
It is Memory Allocation Technique in which Memory is allocated at compile-time before the associated program is executed.
|
It is the memory allocation Technique in Which memory is allocated as required at run-time.
|
lifetime of allocated memory
|
Static-duration variables are allocated in main memory, along with the executable code of the program, and persist for the lifetime of the program whether it is needed or not.
|
In Dynamic Memory Allocation allocated from the large pool of memory, which is called heap. In C, the library function malloc is used to |
Saturday, March 30, 2013
Difference Between Application Software and System Software
Sr. No. |
Application Software
|
System Software
|
1
|
Application Software are those Software which are designed to help the user to perform specific tasks.
|
System Software is Computer Software which manages and controls computer hardware so that application software can perform tasks.
|
2
|
Application Software is installed according to the requirements of the user.
|
System Software is gets installed when the operating system is installed on the computer.
|
3
|
Application Software includes Media Players, Word Processors and
Spread Sheet Programs. |
System Software Includes programs such as compilers, debuggers, drivers, assemblers. |
Difference Between C and C++
Sr. No.
|
C Language
|
C++ Language
|
1
|
C is a procedural programming Language.
|
C++ is a multi-paradigm
language which means it is procedural as well as object oriented language. |
2
|
In C, importance is given to the steps or procedure of the program.
|
C++ focuses on the data rather than the process.
|
3
|
Data is not secure because oops feature such as data hiding etc. are not present in C.
|
Data is secure because it supports oops concepts.
|
4
|
C is a low-level Language.
|
It is Middle level Language.
|
5
|
C uses the top-down approach .Program is formulated step by step,
each step is processed into detail. |
C++ uses the bottom-up approach. In C++ base elements are first formulated which then are linked together to give rise to larger systems. |
Difference Between Compiler and Interpreter
Sr. No.
|
Compiler
|
Interpreter
|
1
|
Compiler is used to translate high level instruction into machine language.
|
Interpreter is used to translate the high level instruction into an
intermediate code. |
2
|
The compiler executes the entire program at a time.
|
The interpreter executes each and every line of program individually.
|
3
|
Compiler reports errors at the end of program compilation.
|
An interpreter reports error at the end of each line compilation and does not move to next line until this error is not removed. |
Difference Between Top Down and Bottom Up Approach
Sr. No.
|
Top-Down Approach
|
Bottom-Up Approach
|
1
| In this approach an overview of the system is first formulated, specifying but not detailing any first-level subsystems. Each Subsystem is then refined in yet greater detail,sometimes in many additional subsystem levels, until the entire specification is reduced to base elements. | In this approach the individual base elements of the system are first Specified in great detail. These elements are then linked together to form larger subsystems, which then in turn are linked, sometimes in many levels, until a complete top-level System is formed. |
2
| This Approach is used in the development of brand new systems. | This approach is used in existing Systems. |
3
| Top down design begins the design with the main or top-level module, and progresses downward to the lowest level modules or subsystems. | Bottom up design begins the design with the lowest level modules or subsystems, and Progresses upward to the main program, module, or subsystem. |
Subscribe to:
Posts (Atom)