Account balance

I have another doubt.

1).If i bought 100 shares of sbi which cost 250 for each share & and my account balance is 2 lakhs before buying then what is the position of my account balance after buying therse shares. Please explain?

2). After buying or selling shares(CNS) will the amount equal to the shares that i have bought or sold get debited from my account or only specific margin required.