Karthikeya Boyini has Published 2675 Articles

Python program to clone or copy a list.

karthikeya Boyini

karthikeya Boyini

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

178 Views

In this program given a user input list. Our task is to copy or cloning the list. Here we use slicing technique. In this technique, we make a copy of the list itself, along with the reference. This process is also called cloning. Algorithm Step 1: Input elements of ... Read More

Instruction type XCHG in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

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

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

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

Python program to sort tuples in increasing order by any key.

karthikeya Boyini

karthikeya Boyini

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

238 Views

Given a tuple, our task is to sort the list of tuples in increasing order by any key in a tuple. We need to sort them according to any given key.to do this here we use sorted() function where we sort them using key=last and store last as the key ... Read More

array_chunk() function in PHP

karthikeya Boyini

karthikeya Boyini

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

46 Views

The array_chunk() function splits an array into chunks of arrays. It returns a multidimensional numerically indexed array, starting with zero. Syntax array_chunk(arr, chunk_size, preserve_key) Parameters arr − The array chunk_size − The size of chunk in integer preserve_key − It has the following values: TRUE- Keys are ... Read More

Instruction type SHLD a16 in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

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

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

Python Program to check if a substring is present in a given string.

karthikeya Boyini

karthikeya Boyini

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

524 Views

In this problem a string is given, we have to check if a substring is present in the given string. Algorithm Step 1: input a string and a substring from the user and store it in separate variables. Step 2. Check if the substring is present in the string ... Read More

array_count_values() function in PHP

karthikeya Boyini

karthikeya Boyini

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

5K+ Views

The array_count_values() function returns an array with the number of occurrences for each value. It returns an associative array. The returned array has keys as the array’s values, whereas values as the count of the passed values. Syntax array_count_values(arr) Parameters arr − The array for which we ... Read More

Instruction type ADI d8 in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

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

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

array_diff_assoc() function in PHP

karthikeya Boyini

karthikeya Boyini

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

35 Views

The array_diff_assoc() function compares array keys and values, and returns the differences. The array_diff() function only compares the values, whereas in array_diff_assoc() function both the keys and values are used for comparison. Syntax array_diff_assoc(arr1, arr2, arr3, arr4, …) Parameters arr1 − Array to compare from. Required. ... Read More

Advertisements