Karthikeya Boyini has Published 2192 Articles

Python program to check if there are K consecutive 1’s in a binary number?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

377 Views

First we take a user input string with the combination of 1’s and 0’s.then create a new string with 1’s, then check if there is any p number of consecutive 1’s is present or not. If present then display FOUND otherwise NOTFOUND. Example Binary number ::1111001111 Enter consecutive 1’s ... Read More

Differences between C++ and C#

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

441 Views

C++ is a statically typed, compiled, general-purpose, case-sensitive, free-form programming language that supports procedural, object-oriented, and generic programming. C++ is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features. C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within ... Read More

Read and Write to an excel file using Python openpyxl module

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

6K+ Views

Python provides openpyxl module for operating with Excel files. How to create Excel files, how to write, read etc. can be implemented by this module. For installing openpyxl module, we can write this command in command prompt pip install openpyxl If we want to give a sheet title ... Read More

Instruction type LDA a16 in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

22K+ Views

In 8085 Instruction set, LDA is a mnemonic that stands for LoaD Accumulator with the contents from memory. In this instructionAccumulatorwill get initialized with 8-bit content from the 16-bit memory address as indicated in the instruction as a16. This instruction uses absolute addressing for specifying the data. It occupies 3-Bytes ... Read More

Instruction type XCHG in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

13K+ Views

In 8085 Instruction set, there is one mnemonic XCHG, which stands for eXCHanGe. This is an instruction to exchange contents of HL register pair with DE register pair. This instruction uses implied addressing mode. As it is1-Byte instruction, so It occupies only 1-Byte in the memory. After execution of this ... Read More

Instruction type STAX rp in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

12K+ Views

In 8085 Instruction set, STAX is a mnemonic that stands for SToreAccumulator contents in memory pointed by eXtended register denoted as “rp”.Hererp stands for register pair. This instruction uses register indirect addressing for specifying the destination. So using this instruction, the current content of Accumulator will be written to the ... Read More

Instruction type SHLD a16 in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

11K+ Views

In 8085 Instruction set, SHLD is a mnemonic, which stands for Store HLpair using Direct addressing in memory location whose 16-bit address is denoted as a16. As HL pair has to be stored, so it has to be stored in two consecutive locations starting at the address a16. We know ... Read More

Instruction type ADI d8 in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

7K+ Views

In 8085 Instruction set, ADI is a mnemonic, which stands for “ADd Immediate to Accumulator” and here “d8” stands for any 8-bit or 1-Byte of data. This instruction is used to add 8-bit immediate data to the Accumulator. The result of addition will be stored in the Accumulator. So the ... Read More

Print m multiplies of n without using any loop in Python.

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

270 Views

Given a number n, print m multiplies of n without using any loop. Here we use recursive function. Examples Input: n = 15 Output: 15 10 5 0 5 10 15 Algorithm Step 1: Given n. Step 2: If we are moving back toward the n and ... Read More

Enqueue and deque in Queue class in C#

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

940 Views

Queue collection class is a concept in C# that is included in the System.Collection namespace. The elements are stored in a QUEUE in FIFO. The first element added will be the first to go out like a queue of people outside a movie hall to buy tickets. It has two ... Read More

Advertisements