Found 83 Articles for Miscellaneous

Digital Circuits and Their Applications

Manish Kumar Saini
Updated on 26-May-2021 14:39:22

7K+ Views

Digital electronics is branch of electronics which deals with digital signals to accomplish the tasks. The digital signals are the signals which are represented using the binary language, i.e., 0’s and 1’s.The digital circuits are implemented using logic gates like AND, OR, NOT, NAND, NOR, XOR and XNOR which can perform logical operations.Digital Circuit DefinitionA circuit implemented using a number of logic gate and takes the input in the binary form (0’s and 1’s) is called as Digital Circuit.Types of Digital CircuitsCombinational Digital CircuitsSequential Digital CircuitsDigital Logic GatesA logic gate is an electronic component that is implemented using a Boolean ... Read More

Diac Operations and Applications

Manish Kumar Saini
Updated on 26-May-2021 14:38:07

4K+ Views

A diac is a two-terminal, three-layer, bidirectional device which can be switched from OFF state to ON state for both positive and negative polarity of the supply voltage.Constructional Details of the DiacThe basic structure of a Diac is similar to a BJT transistor. The only difference is that there is no base terminal in case of Diac.The terminals of the diac are taken from the two p-regions of silicon that are separated by an n-region. The concentrations are identical in all layers to give the device symmetrical properties.V – Characteristics of DiacFrom I-V Characteristics of a Diac, for the applied ... Read More

DC Power Supply Filter Types

Manish Kumar Saini
Updated on 26-May-2021 14:31:40

7K+ Views

In practice, a rectifier is used to produce pure DC supply in electronic circuits. But the output of a rectifier is not pure DC, it has pulsations, i.e., it contains AC and DC components. The AC component is undesirable and must be removed. For this, a filter circuit is used."A Filter Circuit is a circuit which removes the ac component from the output of rectifier and produces the pure dc output across the load."The filter circuit should be placed between the rectifier and the load.A filter circuit is basically a combination capacitors (C) and inductors (L). A capacitor allows the ... Read More

Difference Between Local and Global Variable

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

8K+ 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

643 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

879 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

Difference Between while and do-while Loop

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

5K+ Views

In this post, we will understand the difference between the ‘while’ loop and the ‘do-while’ loop.while conditionThe controlling condition here appears at the beginning of the loop.The iterations do not occur if the condition at the first iteration results in False.It is also known as an entry-controlled loopThere is no condition at the end of the loop.It doesn’t need to execute at least one.Examplewhile ( condition){ statements; //body of loop }Following is the flowchart of while loop −do-while conditionThe controlling condition is present at the end of the loop.The condition is executed at least ... Read More

Advertisements