Interview Questions Decoded, Part 2
What are some of your hobbies?
What they're really asking: How well-rounded are you? What do you do outside of work that might transfer positively into the workplace?
Tips: Emphasize any hobbies or activities that may relate to the job. Help the interviewer learn more about you and perceive you as a person, rather than a job candidate. Therefore, don't just answer questions, respond to them.
Would you be willing to pursue an extra certificate or credential?
What they're really asking: How is your attitude? How flexible are you?
Tips: Tell the interviewer how important professional growth is to you. Understand that the person who will impress the interviewer the most is the one willing to do the extra work.
What were you hoping we'd ask today, but didn't?
What they're really asking: Is there anything special about yourself that you want us to know?
Tips: Consider this a "show and tell" opportunity. Use materials from your portfolio to convince them how valuable you'll be to their organization.
Do you have any questions for us?
What they're really asking: Are you prepared to ask questions? How interested are you in this position?
Tips: List five or six questions on an index card. Ask at least one question, even if all of your prepared questions have been answered. Never say, "No, you've answered all of my questions."
Interview Questions Decoded, Part 1
Tell us about yourself.
What they're really asking: What makes you special? Why should we hire you?
Tips: Prepare several selling points about yourself. Give a quick "elevator speech" that overviews your experience and achievements.
What are your greatest strengths?
What they're really asking: How do you perceive your talents and abilities as a professional? Will you be an asset to our organization?
Tips: Sell yourself. If you don't promote your strengths, nobody else will. Prepare six or seven responses. Be "confidently humble."
What are your greatest weaknesses?
What they're really asking: How honest are you being about yourself with us? How realistic are you?
Tips: Present your weakness as a positive. Don't talk too long or emphasize your downfalls.
Why are you interested in working here?
What they're really asking: How dedicated are you? Do you have a passion for this type of work?
Tips: Keep your answer simple and to the point. Stay away from such responses as, "Many of my friends have worked here." This response isn't very impressive.
Why should we hire you?
What they're really asking: Can you convince us you're "the one?" Can you sell your "product?"
Tips: Make a powerful statement about the value you'll bring to their organization. Toot your own horn, but be wary of sounding arrogant.
Explain the ways of authentication techniques in ASP.NET
Selection of an authentication provider is done through the entries in the web.config file for an application.
The modes of authentication are:
<authentication mode=”windows”>
<authentication mode=”passport”>
<authentication mode=”forms”>
Custom authentication needs installation of ISAPI filter in IIS. It compares incoming requests to a list of source IP addresses and a request is considered to be authenticated if it comes from an acceptable address.
What is Authentication in ASP.NET?
The process of identifying a user through the use of an ID and a password is known as Authentication.
The ASP.Net authentication providers are as follows:
Windows Authentication Provider:
It is in conjunction with Microsoft Internet Information Services (IIS) authentication to secure ASP.NET applications
Forms Authentication Provider
It is an application-specific login form which performs authentication using user code.
Passport Authentication provider:
It is a centralized authentication service provided by Microsoft that offers a single login and core profile service for member sites.
Describe how the ASP.NET authentication process works
ASP.NET runs inside the process of IIS due to which there are two authentication layers which exist in the system.
First authentication happens at the IIS level and the second at ASP.NET level per the WEB.CONFIG file.
Working:
At first, IIS ensures that the incoming request is from an authenticated IP address.
Otherwise the request is rejected.
By default IIS allows anonymous access due to which requests are automatically authenticated.
However, if this is changed, IIS performs its own user authentication too.
ASP.net checks if impersonation is enabled if a request is passed to ASP.net by an authenticated user. If it is enabled, ASP.net acts itself as an authenticated user else it acts with its own configured account.
Finally the OS resources are requested by the identity obtained from previous step.
The user is granted the resources if the authentication is successful else the resources are denied.
Resources can include ASP.net page, code access security features to extend authorization step to disk files, registry keys, etc.
How to save data from dataset?
The modified data needs to be sent back to the database in order to save it. Therefore, to send the modified data to a database, the Update method of a TableAdapter or data adapter needs to be called. The Update method executes either of INSERT, UPDATE, or DELETE depending on the RowState in the table.
In Visual Studio a TableAdapterManager component is used for saving the proper order based on the foreign-key constraints of the database.
Although the procedure to save the data may change depending upon the applications, the following steps throw light on the generalized concept:
The code sends updates to the database should be written within a try/catch block.
The data row should be located to determine the problem area and the code should then be reattempted.
How to use performance monitor to diagnose bottlenecks in your application?
Monitor is a tool built to assist you in diagnosing the problem.
Type ‘perfmon’ in command prompt to access Performance Monitor
The counters, sampling intervals, etc can be used to monitor the performance.
A baseline should be established so that critical reference points, changes and trends can be observed and identified.
Results can be made more readable by removing all the distracting sample noise so that the graphical view of trend lines is not blurred. This can be done using buckets - a vertical line, indicating the minimum, average, and maximum of the sample points in the bucket.
It should be noted that the bottlenecks can be caused due to over utilization of physical disk, memory, process, CPU, and network.
What are the various objects in Dataset?
The DataSet class exists in the System.Data namespace. The Classes contained in the DataSet class are:
DataTable
DataColumn
DataRow
Constraint
DataRelation.