Samual Sam has Published 2659 Articles

Python program to check the validity of a Password?

Samual Sam

Samual Sam

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

2K+ Views

Here given a password, our task is to check that this Password is valid or not. Here we use re module that provide regular expression and re.search() is used for checking the validation of alphabets, digits or special characters. Algorithm Step 1: first we take an alphanumeric string as ... Read More

Python program to print a checkboard pattern of n*n using numpy.

Samual Sam

Samual Sam

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

433 Views

Given the value of n, our task is to display the check board pattern for a n x n matrix. Different types of functions to create arrays with initial value are available in numpy . NumPy is the fundamental package for scientific computing in Python. Algorithm Step 1: input ... Read More

tempnam() function in PHP

Samual Sam

Samual Sam

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

219 Views

The tempnam() function creates a temporary file with a file name which is unique. Syntax tempnam(dir, prefix) Parameters dir − The directory where the temporary file will get created. prefix − The beginning of the file Return The tempnam() function returns the new temporary filename or ... Read More

Instruction type MVI M, d8 in 8085 Microprocessor

Samual Sam

Samual Sam

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

6K+ Views

In 8085 Instruction set, this instruction MVI M, d8 is used to load a memory location pointed by HL pair with an 8-bit value directly. This instruction uses immediate addressing for specifying the data. It occupies 2-Bytes in memory. Mnemonics, Operand Opcode(in HEX) Bytes MVI M, ... Read More

Python program to list the difference between two lists.

Samual Sam

Samual Sam

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

1K+ Views

In this problem given two lists. Our tasks is to display difference between two lists. Python provides set() method. We use this method here. A set is an unordered collection with no duplicate elements. Set objects also support mathematical operations like union, intersection, difference, and symmetric difference. Example Input::A ... Read More

Instruction type STA a16 in 8085 Microprocessor

Samual Sam

Samual Sam

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

12K+ Views

In 8085 Instruction set, STA is a mnemonic that stands for STore Accumulator contents in memory. In this instruction, Accumulator8-bit content will be stored to a memory location whose 16-bit address is indicated in the instruction as a16. This instruction uses absolute addressing for specifying the destination. This instruction occupies ... Read More

Instruction type LDAX rp in 8085 Microprocessor

Samual Sam

Samual Sam

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

11K+ Views

In 8085 Instruction set, LDAX is a mnemonic that stands for LoaD Accumulator from memory pointed by eXtended register pair denoted as “rp” in the instruction. This instruction uses register indirect addressing for specifying the data. It occupies only 1-Byte in the memory. This rp can be either BC register ... Read More

array_change_key_case() function in PHP

Samual Sam

Samual Sam

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

228 Views

The array_change_key_case returns an array with all keys in lowercase or uppercase. It returns an array with its keys in lowercase or uppercase. It returns FALSE if array is not an array. Syntax array_change_key_case(arr, case) Parameters arr − The array. Required. case − Specify the case. The ... Read More

How to define variables in C#?

Samual Sam

Samual Sam

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

84 Views

Each variable in C# has a specific type, which determines the size and layout of the variable's memory the range of values that can be stored within that memory and the set of operations that can be applied to the variable. For variables − ; Let us ... Read More

Instruction type LHLD a16 in 8085 Microprocessor

Samual Sam

Samual Sam

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

12K+ Views

In 8085 Instruction set LHLD is a mnemonic that stands for Load HL pair using Direct addressing from memory location whose 16-bit address is denoted as a16. So the previous content of HL register pair will get updated with the new 16-bits value. As HL pair has to be updated, ... Read More

Advertisements