Karthikeya Boyini has Published 2680 Articles

Instruction type SHLD a16 in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

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

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

480 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

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

31 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

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

karthikeya Boyini

karthikeya Boyini

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

126 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

445 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

array_fill() function in PHP

karthikeya Boyini

karthikeya Boyini

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

106 Views

The array_fill() function is used to fill an array with values. It returns the filled array. It returns the filled array. Syntax array_fill(start_index, num, value) Parameters start_index − First index of the returned array. Required. num − The count of elements to insert. Required. value − The ... Read More

Python program to find Maximum and minimum element’s position in a list?

karthikeya Boyini

karthikeya Boyini

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

13K+ Views

In python is very easy to find out maximum, minimum element and their position also. Python provides different inbuilt function. min() is used for find out minimum value in an array, max() is used for find out maximum value in an array. index() is used for finding the index of ... Read More

Python program to print the initials of a name with last name in full?

karthikeya Boyini

karthikeya Boyini

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

4K+ Views

Here we use different python inbuilt function. First we use split().split the words into a list. Then traverse till the second last word and upper() function is used for print first character in capital and then add the last word which is title of a name and here we use ... Read More

Advertisements