Found 213 Articles for Computer Programming

Difference Between Verification and Validation

Kiran Kumar Panigrahi
Updated on 14-Dec-2022 17:59:27

4K+ Views

Verification is the process of verifying something to ensure its correctness, while Validation is the process of validating something in which the user tests the system with some inputs and verifies whether the output is as per the expectation or not. In software testing, both Validation and Verification are the parts of the V-model in which the development and testing activities are started based on the requirement of document specification. In other words, we can say that Verification is the process to ensure whether the product that is developed is right or not. It verifies whether the developed product fulfils ... Read More

Difference Between PLA and PAL

AmitDiwan
Updated on 24-Apr-2021 07:38:08

882 Views

In this post, we will understand the difference between PLA and PAL −PLAIt stands for Programmable Logic Array.Its speed is lesser in comparison to PAL.It is highly complex.It is expensive.It is not available easily.It is used less in comparison to PAL.PALIt stands for Programmable Array Logic.It has a higher speed in comparison to PLA.It is less complex.It is inexpensive.It is more readily available in comparison to PLA.It is used more in comparison to PLA.

Difference Between Keyword and Identifier

Kiran Kumar Panigrahi
Updated on 21-Feb-2023 15:00:03

5K+ Views

Every programming language has keywords and identifiers. Both keywords and identifiers can be processed by a compiler, however they are quite different from each other. The basic difference between the two is that keywords are the reserve words which are predefined and have a special meaning in the language, whereas an identifier is a unique name assigned to a variable, function, class, etc. Read this article to learn more about keywords and identifiers and how they are different from each other. What is a Keyword? Keywords are reserved words that have a special meaning in a programming language. Therefore, we ... Read More

Difference Between Identifier and Variable

Kiran Kumar Panigrahi
Updated on 21-Feb-2023 14:46:00

12K+ Views

An Identifier is a name assigned to an entity in a computer program so that it can be identified distinctly in the program during its execution. On the other hand, a variable is a name assigned to a memory location that stores a value. Read this article to learn more about identifiers and variables and how they are different from each other. What is an Identifier? Identifiers are used to name a variable, a function, a class, a structure, a union. In other words, an identifier is created to give a unique name to an entity. It can consist of ... Read More

Difference Between Local and Global Variable

AmitDiwan
Updated on 24-Mar-2021 14:20:09

9K+ Views

In this post, we will understand the difference between local and global variables.Local variableIt is generally declared inside a function.If it isn’t initialized, a garbage value is stored inside it.It is created when the function begins its execution.It is lost when the function is terminated.Data sharing is not possible since the local variable/data can be accessed by a single function.Parameters need to be passed to local variables so that they can access the value in the function.It is stored on a stack, unless mentioned otherwise.They can be accessed using statement inside the function where they are declared.When the changes are ... Read More

Difference Between Static and Dynamic Binding

AmitDiwan
Updated on 24-Mar-2021 14:17:55

1K+ Views

In this post, we will understand the difference between static binding and dynamic binding.Static BindingIt is resolved at compile time.It uses type of the class and fields.It uses private, final, and static methods and variables.Example: OverloadingDynamic BindingIt is resolved during run time.Virtual methods use this technique.It uses objects to resolve the binding.Example: Method overriding.

Difference Between Type casting and Type Conversion

AmitDiwan
Updated on 24-Mar-2021 14:17:37

2K+ Views

In this post, we will understand the difference between type casting and type conversion.Type castingA data type is converted to another data type using the casting operator by the developer.It can be applied to any compatible data types and incompatible data types.The casting operator is required to cast a data type to another type.The destination data type could be smaller than the source data type.It happens during the program design.It is also known as narrowing conversion since the destination data type may be smaller than the source data type.It is generally used in coding and competitive programming.It is efficient.It is ... Read More

Difference Between break and continue

AmitDiwan
Updated on 24-Mar-2021 14:15:39

2K+ Views

In this post, we will understand the difference between break and continue statements.breakIt is used to terminate the enclosing loop like while, do-while, for, or switch statement where it is declared.It resumes control over the program until the end of the loop.It also helps with the flow of control outside the loop.It is used with ‘switch’ and ‘label’ since it is compatible.Following is the flowchart of break statement −continueIt helps skip the remaining part of the loop.It continues to execute the next iteration.It causes early execution of the next iteration of the enclosing loop.It can’t be used with ‘switch’ and ... Read More

Difference Between One-Dimensional (1D) and Two-Dimensional (2D) Array

AmitDiwan
Updated on 24-Mar-2021 14:15:09

662 Views

In this post, we will understand the difference between one dimensional array and two dimensional array.One dimensional arrayIt helps store a single list of elements that are similar data type.The total bytes is calculates as the product of the datatype of variable array and the size of the array.C++ declarationtype variable_name[ size ];Java declarationtype variable_name [ ]; variable_name = new type[size];int [ ] a = new int [10];Two-Dimensional arrayIt helps store 'list of lists' or 'array of arrays' or 'array of one dimensional arrays', i.e nested arrays.The total bytes is equivalent to product of datatype of variable array and size ... Read More

Difference Between Virtual and Pure Virtual Function

AmitDiwan
Updated on 24-Mar-2021 14:11:51

912 Views

In this post, we will understand the difference between virtual and pure virtual functions.Virtual FunctionIt has its own definition inside the class.The base class can override a virtual function.It doesn’t have a derived class.Declarationvirtual funct_name(parameter_list) {. . . . .};Pure Virtual FunctionIt doesn’t have a definition.If a class has at least one virtual function, it can be declared abstract.The derived class has to override the pure virtual function to use it.A pure virtual function is specified by placing "= 0" in its declarationDeclarationvirtual funct_name(parameter_list)=0;Following is an example −Exampleclass Box {    public:    // pure virtual function    virtual double ... Read More

Advertisements