Arjun Thakur has Published 1176 Articles

What is a Parity Bit?

Arjun Thakur

Arjun Thakur

Updated on 06-Sep-2023 22:03:09

38K+ Views

A parity bit is a check bit, which is added to a block of data for error detection purposes. It is used to validate the integrity of the data. The value of the parity bit is assigned either 0 or 1 that makes the number of 1s in the message ... Read More

Flag register of 8086 microprocessor

Arjun Thakur

Arjun Thakur

Updated on 06-Sep-2023 13:34:45

39K+ Views

The flag register is one of the special purpose register. The flag bits are changed to 0 or 1 depending upon the value of result after arithmetic or logical operations.8086 has 16-bit flag register, and there are 9 valid flag bits. The format of flag register is like below.BitsD15D14D13D12D11D10D9D8D7D6D5D4D3D2D1D0Flags    ODITSZ AC P CY We can ... Read More

Convert Infix to Postfix Expression

Arjun Thakur

Arjun Thakur

Updated on 02-Sep-2023 01:50:33

69K+ Views

Infix expressions are readable and solvable by humans. We can easily distinguish the order of operators, and also can use the parenthesis to solve that part first during solving mathematical expressions. The computer cannot differentiate the operators and parenthesis easily, that’s why postfix conversion is needed.To convert infix expression to ... Read More

How do I show the schema of a table in a MySQL database?

Arjun Thakur

Arjun Thakur

Updated on 01-Sep-2023 02:31:23

87K+ Views

To show the schema, we can use the DESC command. This gives the description about the table structure. The following is the syntax. DESCRIBE yourDatabasename.yourTableName; Let us implement the above syntax. mysql> DESCRIBE business.student; The following is the output. +-------+--------------+------+-----+---------+-------+ | Field | Type         | Null | Key | ... Read More

Global and Local Variables in Python?

Arjun Thakur

Arjun Thakur

Updated on 31-Aug-2023 02:52:46

11K+ Views

There are two types of variables: global variables and local variables. The scope of global variables is the entire program whereas the scope of local variable is limited to the function where it is defined.Example def func(): x = "Python" s = "test" ... Read More

Increment and Decrement Operators in Python?

Arjun Thakur

Arjun Thakur

Updated on 23-Aug-2023 14:01:38

57K+ Views

Python does not have unary increment/decrement operator (++/--). Instead to increment a value, usea += 1to decrement a value, use −a -= 1Example>>> a = 0 >>> >>> #Increment >>> a +=1 >>> >>> #Decrement >>> a -= 1 >>> >>> #value of a >>> a 0Python does not provide ... Read More

Downloading files from web using Python?

Arjun Thakur

Arjun Thakur

Updated on 22-Aug-2023 00:38:16

138K+ Views

Python provides different modules like urllib, requests etc to download files from the web. I am going to use the request library of python to efficiently download files from the URLs.Let’s start a look at step by step procedure to download files using URLs using request library−1. Import moduleimport requests2. ... Read More

Java and multiple inheritance

Arjun Thakur

Arjun Thakur

Updated on 10-Aug-2023 12:01:11

6K+ Views

In Java, we use inheritance to allow the creation of a hierarchical classification of classes and objects. As the name suggests, inheritance is the ability of a class to inherit members of another class. The class whose properties are inherited is called a superclass whereas the class that inherits a ... Read More

How to create a static class in C++?

Arjun Thakur

Arjun Thakur

Updated on 13-Apr-2023 00:15:52

20K+ Views

There is no such thing as a static class in C++. The closest approximation is a class that only contains static data members and static methods.Static data members in a class are shared by all the class objects as there is only one copy of them in the memory, regardless ... Read More

Using OpenCV in Python to Cartoonize an Image

Arjun Thakur

Arjun Thakur

Updated on 31-Mar-2023 15:38:22

732 Views

Currently there are lots of professional cartoonizer applications available in the market but most of the them are not freeware. In order to get the basic cartoon effect, we just need the bilateral filter and some edge dectection mechanism. The bilateral filter will reduce the color palette, which is essential ... Read More

Advertisements