Chandu yadav has Published 1091 Articles

LongStream asDoubleStream() method in Java

Chandu yadav

Chandu yadav

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

90 Views

The asDoubleStream() method of the LongStream class in Java returns a DoubleStream consisting of the elements of this stream, converted to double.The syntax is as follows.DoubleStream asDoubleStream()Here, DoubleStream is a sequence of primitive double-valued elements. To use the LongStream class in Java, import the following package.import java.util.stream.LongStream;Create LongStream and add ... Read More

Inplace vs Standard Operators in Python

Chandu yadav

Chandu yadav

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

469 Views

Inplace Operator in PythonInplace operation is an operation which directly changes the content of a given linear algebra or vector or metrices without making a copy. Now the operators, which helps to do this kind of operation is called in-place operator.Let’s understand it with an a simple example -a=9 a ... Read More

8085 program to find square of a 8 bit number

Chandu yadav

Chandu yadav

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

4K+ Views

In this program, we will see how to find the square of an 8-bit number.Problem StatementWrite 8085 Assembly language program to find the square of a number The number is stored at location 8000H, store the result at 8050H.DiscussionIn 8085, we cannot perform the multiplication operation directly. We are performing ... Read More

8085 program to show masking of lower and higher nibbles of 8-bit number

Chandu yadav

Chandu yadav

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

3K+ Views

In this program we will see how to lower and upper nibbles are masked in 8085.Problem StatementWrite 8085 Assembly language program to mask the upper and lower nibble of an 8-bit number. The number is stored at location 8000H. Lower and Upper nibbles will be stored at location 8001H and ... Read More

Add DATE and TIME fields to get DATETIME field in MySQL?

Chandu yadav

Chandu yadav

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

1K+ Views

You can use CONCAT() function to set date and time fields to get DATETIME field.Let us create a demo tablemysql> create table getDateTimeFieldsDemo -> ( -> ShippingDate date, -> ShippingTime time, -> Shippingdatetime datetime -> ... Read More

8085 Program to perform sorting using selection sort

Chandu yadav

Chandu yadav

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

2K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to sort a sequence of numbers using selection sort.Problem Statement:Write 8085 Assembly language program to sort a given sequence using selection sort in ascending order. The numbers are stored at 8001H onwards. 8000H ... Read More

Command Line and Variable Arguments in Python?

Chandu yadav

Chandu yadav

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

632 Views

Command Line ArgumentsCommand line arguments are input parameters which allow user to enable programs to act in a certain way like- to output additional information, or to read data from a specified source or to interpret the data in a desired format.Python Command Line ArgumentsPython provides many options to read ... Read More

Interface 8255 with 8085 microprocessor for addition

Chandu yadav

Chandu yadav

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

1K+ Views

In this program we will see how to perform addition by using ports to take data and send the result into the port.Problem StatementWrite 8085 Assembly language program for interfacing between 8085 and 8255. Here Port A and Port B are holding two values, take the numbers from port A ... Read More

How to find exact Array Match with values in different order using MongoDB?

Chandu yadav

Chandu yadav

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

445 Views

To find exact array match with values in different order, you can use $all operator. Let us create a collection with documents. Following is the query>db.exactMatchArrayDemo.insertOne({"StudentName":"David", "StudentAge":22, "StudentGameScores":[45, 78, 98]}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c9c94702d6669774125246c") } >db.exactMatchArrayDemo.insertOne({"StudentName":"Chris", "StudentAge":23, "StudentGameScores":[45, 78]}); {    "acknowledged" : true,   ... Read More

Addressing modes in 8086 microprocessor

Chandu yadav

Chandu yadav

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

3K+ Views

In this section we will see the addressing modes of Intel 8086 microprocessor.There are eight addressing modes in 8086 MPU. These modes are:Immediate Addressing ModeRegister Addressing ModeDirect Addressing ModeRegister Indirect Addressing ModeBased Addressing ModeIndexed Addressing ModeBased-Index Addressing ModeBased-Index with displacement addressing modeImmediate AddressingThe addressing mode in which the data operand ... Read More

Advertisements