Posts

Showing posts from 2018

Important Questions for Interview CSharp language Part 1 & Part 2

Image
Important Questions for Interview CSharp language Part 1 In this video I have discussed important questions from C# language which are mostly asked in all interviews. The level of questions is basic but you must know them all if you are working on C# to get success in these interviews.   If you find these questions important do leave your feedback in comment section. Some other important links Fastest way to develop a calculator C# - string expression to mathematical expression Convert to two decimal places C# Round to 2 decimal places Important Questions for Interview CSharp language Part 2 Another lot of important C# interview questions. Do watch and prepare yourself for success in coming interviews.

Do you know how many toilets have been built in Swachh Bharat Mission?

Image
Swachh Bharat Mission started on October 02, 2014. So recently I filed an RTI application to Ministry of Housing and Urban Affairs to know what is going on in area of decreasing open defecation. I tried to know the effectiveness of Swachh Bharat Mission from its beginning till now. So basically they sent me all the details related to Swachh Bharat Mission Urban which are quite satisfying. All the details are as of on 02 July 2018. Total number of Individual House Hold toilet(IHHT): 4928432 nos. Total number of Community and Public Toilet (CT/PT): 350650 nos. I also asked then the cost which the central government invested in constructing these toilets per year since 2014. Its details are as below: All amount is in INR Crore You will find maximum amount of these five years was spent in session 2016-17 i.e. 699.1117+157.6001 =  856.7118 Crore Rupees. In these five years till now government has spent in total around INR 2300.3828 Crore in IHHT and INR 512.42...

When you actually meet your Achchhe Din

Image
Recently my parents visited my city Pune and we went for a holy trip to Shirdi, Shani Shingnapur, Nashik,Triambakeshwar and Mumbai. I will tell you about the instances where I felt that these days were actually my Achchhe Din. So my parents landed at Pune airport at around 0430 hours early in the morning. I booked an OLA cab for them as they themselves asked me not to come for pickup. So now-a-days these cab services have been given a pick-up zone at the airport so to get pickup people need to go to these points like Ola have Ola pickup zone. So asking my parents to search for such zone was not a good idea in early morning in their first time visit. So I booked this cab and called the driver. I asked him that you should pick my parents from arrivals gate. Firstly he hesitated but then I requested him and he accepted. In 15 minutes my parents were at my door. So this was the beginning. So sometimes these cab services actually do us a favor. My parents enjoyed the day in Pune. Then in...

Fastest way to develop a calculator C# - string expression to mathematical expression

Image
Fastest way to develop a calculator C# - string expression to mathematical expression Friends today I will tell you something very amazing. The easiest and fastest way to create a calculator in C#. You would have earlier created calculator by adding two textbox on form where you can enter two numbers and then operator buttons to calculate the result. For example you entered 5 in textbox1 and 7 in textbox2 then if you click on multiply button on the form you get the result as 35 . Similar you can design other operator buttons like add, subtract and division and they will work in similar way. The only issue with this kind of calculator is that you can have only 2 operands and one operator in a expression . With this kind of calculator it is difficult to do huge calculations. Fastest way to develop a calculator in C# language. Convert string expression into mathematical expression. So the solution to this issue is to have a calculator which can compute the value of an express...

Convert to two decimal places C# Round to 2 decimal places

Image
Convert to two decimal places C# Round to 2 decimal places There are various methods or you can say ways available to round a number to two decimal places. When we store values in our database, Our main concern is to have a good precision so for that the numbers are stored with lots of decimal places. There can be 6 decimal digits, 8 decimal digits, 10 decimal digits and more. The main concern arises when we need to show such values on front end platforms to the end customers. They might not be interested in so much digits after decimal. So today we will learn various ways in which we can convert / round such number to two decimal places. Things that also matter here is how are you receiving it at your end. If you are receiving it as string you can do it as follows. string decimalNumber = "15.45000000"; string newDecimal= Math.Round(Convert.ToDecimal(decimalNumber, 2).ToString(CultureInfo.InvariantCulture); // Output of newDecimal 15.45 So in the process ab...

Indore is actually the cleanest city of India

Image
First of all, I welcome you on my blog. This is my first post. So I thank you for your time. Recently I had a chance to visit Indore which is located in heart state of India Madhya Pradesh. I was very excited because I was visiting Indore for a great cause. I was invited by Google for a Google Search Conference which was held in Indore Marriott. I reached Indore one day before the conference so that I can explore Indore. So I had heard a lot about cleanliness of Indore after the Clean India Campaign started. Indore came first in Clean India Survey conducted by Government of India. So I thought I will actually like to verify it today whether Indore is really that clean. On my way when I entered Indore roads were really very clean. That was the first instance where I realized that Indore is little different than other cities. Roads were very clean and lot of trees have been planted on roadsides. And it does not end here. I reached my hotel in Vijay Nagar around 10 AM. After ge...

Total Pageviews