The by-elections are being held to fill the Assembly constituencies in two states that fell vacant before the completion of their term.