Saturday, July 16, 2011

Accenture Dotnet Interview Questions


Accenture 2+ dot net interview questions,Bangalore

1.Tell about your Current  project? How the security is implemented , which architecture does you used ?
2. What are the various technologies you used in current and in previous projects

I said:  VS2005,VS2008, Sql server 2000,2005,java script ,Ajax, j queries, WCF.

3. What is the difference between abstract class and interface? Where we use abstract class and interface?

4. I want a method which it should return a string variable, Boolean variable and integer variables, how do you implement that method?

Eg: I'm passing date time to method that method should return date , hrs,minutes and it should check date should not less than today's date and return as boolean.
I said yes we can implement such a methods, by using key word “out “.

  public string getdatetime(string frmDatetime, string out date,int out hrs,int out mints,Boolean Isvalid)

5. Can we use “out” for the methods of type void? Does it give any compilation or run time error?

I said: yes we can use for methods of type void also. I does not give any type of errors.

6. What are sealed classes and static classes?

7. What is boxing and unboxing?

8. Why do I'm get an error while try to declare the method?

public static staticMethod (mainStatic obj)

I said: yes it will give compilation error without specifying return type.
            public static void staticMethod (mainStatic obj)
           
9.Let's consider a scenario, I have a Text box when user enter a number in text box, I need  to display the employee's details based on empid; if user enters a string value I need to display based on emp name.

10. Does C# supports the properties for array types?
I said : yes ,it supports
for eg:

class Class1
{
    private string[] MyAssesrts;

    public string[] SubhashProperties
    {
        get { return MyAssesrts;  }
        set { MyAssesrts = value; }
    }
}



class MainClass
{
    public static int Main(string[] args)
    {
        Class1 c = new Class1();

        string[] arr = new string[] {"car", "villa",”land”};
        c. SubhashProperties = arr;
        Console.WriteLine(c.SubhashProperties [0]);
   
        return 0;
    }
}

12. You worked on jquries right? What are the various features it overcomes from JavaScript and Ajax?

13. How to find the text box of id txtname in jquery?

14. What is SOA? Difference between web services and WCF?

15. How do you deploy the web services and WCF in production server?

16. What are the page life cycle events?

17. In Page load () Does it possible to identify , by which control or event causes post back
I said: up to my knowledge No, we cannot identify, in page load all the controls and events will be loaded.
I'm not sure whether it is a right answer or not?

17. What are http handlers? Where we use?

18. I need to insert the data of uploaded excel file to sqlserver, In how many ways we insert?
I said:
First we need to open the oledb connection, query the excel sheet and get excel data to data table or dataset.

 A. we can loop each row form a insert query a string and Executenonquery ().
B.loop each row collect the data in array lists after looping the all records we can pass the array values to stored procedure.
C. We can use sql bulk upload utility class, where we insert all the data at a time from data table to backend DB.

19. So, among these which one is the best you feel?

I Said: obviously, third one gives the better performance.

20. How do you validate the data before inserting the data through sql bulk upload?

21. I’m uploading a large amount of data, my excel sheet contains @ 60000 to one lakh records,

22. What happens if I got any connection time out error or some other error occurs, how do you handles this error.
I said: I faced this situation in my project, first of all we should not allow to the uploading large amount of data we should consider the file size before user uploading, better to allow uploading the small chunks of data , we should also consider production server configuration,

Sqlserver:
21. How do you handle errors in stored procedures?

I Said: In sql server 2005 and 2008 have a better error handling capable when compare to sqlserver2000, we can use try catch blocks in stored procedures.
And also we can use @@Error which is a global variable;
I explained about error_message (), error_seveority, error_description ().error_id()

22. Why we need to specify NoLock? Do we use Nolock while performing the DML operations, what happened if use?
I said: Nolock should specify  after the table name while performing the select statement, by default while executing the select statement sqlserver  lock the table, for eg my query takes 6 sec to execute these 6 sec sq server will not allow to perform the any other DML Operations on that table


i don't know whether  this is a right or not....

Project Manager Round
How much years of experience do you have?
Where you’re working, from how many years your working with present company?
What are projects you handled, what is the project you feel this is very tough project?
 What you feel that much of toughness in this project?
Did you interact with the client at any time?
How Do you get the domain knowledge?


 Thanks Pratik Agrawal ! for Sharing your interview Experince


Please Send your dotnet interview experinces to my mail id: nsubhash007@gmail.com



Thursday, July 7, 2011

My Favourite Quotes

Rabindranath Tagore Geetanjali in Telugu

Where the mind is without fear and the head is held high;
Where knowledge is free;
Where the world has not been broken up into fragments by narrow domestic walls;
Where words come out from the depth of truth;
Where tireless striving stretches its arms towards perfection:
Where the clear stream of reason has not lost its way into the dreary desert sand of dead habit;
Where the mind is lead forward by thee into ever-widening thought and action —
Into that heaven of freedom, my Father, let my country awake.


ఎక్కడ మనస్సు
  నిర్భయంగా వుంటుందో , ఎక్కడ  మనిషి సగర్వముగా  తల ఎతుకొని తిరగలడో ,
ఎక్కడ ప్రపంచం ముక్కలు  ముక్కలు  అయి  మగ్గిపోదో ,
ఎక్కడ మన చదువు విజ్ఞానం ముడనమ్మకలో ఇంకిపోదో ,
 ఎక్కడ ఒక మనిషి  సాటి మనిషిని దోచుకోడో,
అక్కడ అ  స్వెచా స్వతంత్రమ్ లొ కి దెవుడా నా ఈ దేశాన్ని మెల్కొలుపు............!!!!.!



~ Rabindranath Tagore ~
(Gitanjali)

Sunday, June 19, 2011

Polaris Dotnet Interview Questions


  1. Explain about your current project?
  2. Which type of architecture is used and how the security is implemented in your project?
  3. Rate yourself in asp.net, C#, Sqlserver, Ajax?
I said 4,4,3,4
  1. What is partial page post back?
  2. Let’s consider a button inside the update panel and a label outside the update panel, h’w can I update the label control on button click event?
  3. Consider a button inside the update panel which is calling java script function on button click event, but java script is not executing  when user clicks on the button what  could be the reason? How you make it to work?
  4.  Consider a webpage is loading very slowly in production, how do you identify the reasons why it is loading slowly…
Interviewer asks many side questions like how you optimize the C# code, sql queries, does sql functions cause any performance issues.
  1. Difference between web services and WCF?
  2.  How do you  host the WCF?
  3. What is a service contract and data contract?
  4. How can you rate yourself in JavaScript and oops?
  5. How to convert a string variable to int in java script?
  6. Side how do you debug the java script code?
  7. How do you overcome the browser incompatible issues..?
  8. Difference between ref and out?
  9. Where should we use Interface and where should we use abstract classes?
  10. Can you tell me what are best Programming practices that you are implementing in your projects…?
  11. Does writing the try, catch blocks in the code causes any performance issues?
Sql Server
  1. What is the difference between Lock and no lock?
  2. Write the syntax for case statement?
  3. Types of joins?
  4. Triggers, Stored procedures

Please send your dot net interview experinces to my mail id: nsubhash007@gmail.com

Sunday, March 20, 2011

CTS Dotnet Interview Questions

CTS Dotnet Interview Questions


1.       Ca n you explain the page life cycle event in asp.net?
2.       How can I apply the themes and skin to WebPages..?
3.       What is the Auto Event wired property?
4.       Is web.config file is mandatory to run the web application?
No, but it is always better to choose the Web.config file
5.       What are the features of config file you have used?
6.       How I can use web.config file for error handling?
7.       Take the scenario where I’m not using web.config file in my application, is there any other place where I can write the connection string?
8.       I want to display the some  data  from two different data sources ,say  sql server,ms access ; can you tell me the steps   to display  data on webform ?
9.       I want to display a data in gridview (Paging also)?  Which one is the good either data set or data reader?
10.   Difference between data reader and data set? What is meant by forward cursor only?
11.   How to use update panel?
12.   What is the use of script manager? I have master page and content page in which page I need to use script manager?
13.   You have any experience in wcf?  What is SOA?

Oops
14.   What are the static classes?
15.   Can static classes contain non static members?
16.   Method overloading and method overriding   where you implemented in your project?
Sql Server
17.   What is the composite key?
18.   Did you face any performance issues in your application? Let us say a web page loading very slow ly?  How you speed up  the webpage
19.   How you will the optimize the query? What are the steps you will take?
20.   Date Diff function?
21.   What is the use of cursors?
22.    Table 1 : empid(pk), empname ,deptid(fk)
Table2: deptid(pk) ,deptname

Count of employees in each department?


Please Send your Interview Experiences To Mail id: nsubhash007@gmail.com