.net interview in Polaris Chennai


I would like to share my interview experience with you.

.net interview in Polaris Chennai



This is prabu and am Recently attended Interview in polaris at chennai. I would like to share the questions which asked in that interview.

ok. let's go about interview.

First they asked tell me yourself and why you looking for a change. Then they started to ask the technical questions. I just post what the questions they asked and how i replied. It may be correct or wrong.



C#
Q1: what are access modifiers?
Me: I explained about public, private, protected, internal, internal protected.
I think they satisfied.

Q2: which one is default access modifier? why?
Me: I answered public and i dont know why it is.

Q3: 4 pillars of OOPS?
Me: I explained about abstraction, encapsulation, inheritance and polymorphism.
I think they satisfied.

Q4: How to create assembly in C# and implement in VB.net?
Me: No idea.

Q5: command line syntax in C#
Me: csc classname.cs

Q6: what does assemby contains..?
Me: I explained about metadata and i have no idea about manifest.

Q7: How to classify datatype (based on storage in memory) in .net?
Me: I told no idea. but i could not understand the question.

Q8: Keywords to pass a varable by reference in C#?
Me: I told that using byref. But they not satisfied.

Q9: How to handle critical section in C#?
Me: I told no idea. but i could not understand the question.


SQL Server

Q1: Types of joins
Me: I explained about inner, left outer, right outer, full outer, self and equi join.I think they satisfied.

Q2: which one is fast? truncate or delete? why?
Me: I told that truncate and explained about how. I think they satisfied.

Q3: How to implement in UDL?
Me: I told no idea. but i could not understand the question.



ASP.net

Q1: How to set a master page?
Me: I told we can add master page through templates pane when creating a project.I think they not satisfied.

Q2: Page life cycle?
Me: I told no idea. but i could not understand the question.

Q3: Exception thrown in response.redirect?
Me: I told no idea. but i could not understand the question.

Finally they told me that our HR will get back to you.I know i am not selected.
Please ignore if anything wrong and rectify my mistakes.


Related Articles

More articles: Technical Interview OOP interview questions Interview

Comments

Author: PHANI HARSHITHA MADALA17 May 2010 Member Level: Gold   Points : 1

Hii prabhu,

Thanks for sharing this questions..

whats the experience they have conducted this interview..

Author: Amirtharaj jeyabalan17 May 2010 Member Level: Silver   Points : 1

I shall reply for few things i know.

Manifest Contains Assembly Name, Version Number, Culture, List of all files in assembly, Strong name info

Author: Prabu Thangavelu18 May 2010 Member Level: Gold   Points : 1

ok amirtharaj. but

can you briefly explain because i have to explain in interview.

advance thanks

Author: Manigandan18 May 2010 Member Level: Gold   Points : 2

Hi,

Thanks for posting.

Page life cycle is,


Request --> Start --> Init -->Load --> postback -->Rendering -->Unload

Page request
The page request occurs before the page life cycle begins. When the page is requested by a user, ASP.NET determines whether the page needs to be parsed and compiled (therefore beginning the life of a page), or whether a cached version of the page can be sent in response without running the page.

Start
In the start stage, page properties such as Request and Response are set. At this stage, the page also determines whether the request is a postback or a new request and sets the IsPostBack property. The page also sets the UICulture property.

Initialization
During page initialization, controls on the page are available and each control's UniqueID property is set. A master page and themes are also applied to the page if applicable. If the current request is a postback, the postback data has not yet been loaded and control property values have not been restored to the values from view state.

Load
During load, if the current request is a postback, control properties are loaded with information recovered from view state and control state.

Postback event handling
If the request is a postback, control event handlers are called. After that, the Validate method of all validator controls is called, which sets the IsValid property of individual validator controls and of the page.

Rendering
Before rendering, view state is saved for the page and all controls. During the rendering stage, the page calls the Render method for each control, providing a text writer that writes its output to the OutputStream object of the page's Response property.

Unload
The Unload event is raised after the page has been fully rendered, sent to the client, and is ready to be discarded. At this point, page properties such as Response and Request are unloaded and cleanup is performed.

Author: Prabu Thangavelu18 May 2010 Member Level: Gold   Points : 1

thanks manigandan,

it will be useful in next interview

hi all,

post answers for the above questions

Author: Latha K26 May 2010 Member Level: Gold   Points : 1

Q7: How to classify datatype (based on storage in memory) in .net?

I think answer is
1. Value Type and 2. Reference Type
Value type data will be stored on Stack
Reference Type will be stored in the Heap.
Value Type Ex: int, float and .....
Reference Type : Arrays and etc.


Author: Ananta26 May 2010 Member Level: Gold   Points : 2

Q2: which one is default access modifier? why?
ans: private
Q6 :manifest:
contains a collection of data that describes how the elements in the assembly relate to each other

Q7: How to classify datatype (based on storage in memory) in .net?

ans:1. Value Type and 2. Reference Type


Q9: How to handle critical section in C#?

ans: i think by using try catch and by using traction.


Thanks

Ananta




Author: Mahe27 May 2010 Member Level: Gold   Points : 2

Hi Prabhu,

I answered some of unkowns.

C#
*******
Q4: How to create assembly in C# and implement in VB.net?
Ans: Create a assembly in C#(For example to add given two numbers and return the sum). In VB.Net Project add this
assembly by giving reference. Then in VB.Net .Vb file create class for the assembly and access the method , Pass
parameters and return the result.

Q9: How to handle critical section in C#?
Me: Use of try-catch block. Main objective is to arrest the server error and to know what type of exception occurs.

SQL Server
*******
Q3: How to implement in UDL?
I think this is UDL refers to .UDL (Microsoft Data Link).
creating connection string using Window dialog box attached the screen shot for reference

ASP.net
*******
Q1: How to set a master page?
Ans: MasterPageFile="masterfilename.master" . MasterPageFile
attribute is added in Page tag for including a master page in aspx page(a web content page).

Manigandan answer on Page life cycle was good and informative.
Thanks,
JayaSeelan.K

Author: Narayana17 Jun 2010 Member Level: Gold   Points : 1

hi guys,

first thanks to prabhu for sharing such valuable information with us and also answers provided by the latha and manigandan is very good thanks to all other who post the answers.

Thanks
Narayana

Author: Manigandan21 Jun 2010 Member Level: Gold   Points : 0

Thanks for all

Author: Ultimaterengan22 Jun 2010 Member Level: Gold   Points : 0

Thanks for the information.............

Author: prasad01 Jun 2011 Member Level: Gold   Points : 1

what does assemby contains..?

It contain a information about IL
Assembly manifest infomration about the assembly

Author: Arivazhagan Sekar02 Jun 2011 Member Level: Gold   Points : 0

Really good friends :) Thanks to all who shared such a valuable information.

Author: sugandha27 Jun 2011 Member Level: Gold   Points : 1

Critical sections can be handled by usin gtry catch block or transaction.

Data types are of 2 types:
value type:stored on stack(it contains actual data)
reference type: stored on heap(means it contains reference to dataa)

Author: Ramar.A17 Nov 2011 Member Level: Bronze   Points : 0

Thanks for your valuable information

Author: raghavendra06 Dec 2011 Member Level: Silver   Points : 4

hi this is raghavendra
How to classify datatype (based on storage in memory) in .net?


Value types


Simple types
Signed integral: sbyte, short, int, long

Unsigned integral: byte, ushort, uint, ulong

Unicode characters: char

IEEE floating point: float, double

High-precision decimal: decimal

Boolean: bool

Enum types


User-defined types of the form enum E {...}

Struct types


User-defined types of the form struct S {...}

Nullable types


Extensions of all other value types with a null value

Referencetypes


Class types


Ultimate base class of all other types: object

Unicode strings: string

User-defined types of the form class C {...}

Interface types


User-defined types of the form interface I {...}

Array types

Single- and multi-dimensional, for example, int[] and int[,]

Delegate types

User-defined types of the form e.g. delegate int D(...)

Guest Author: Nadeem20 Dec 2011

what is inheller in dotnet

Guest Author: felix vijay02 Mar 2012

Yes, thank you all friends really useful and informative

Guest Author: prasath.p27 Oct 2013

Make all of questions, did u says to taken the questions of clears.

Author: Swapnil Undirwade14 Feb 2014 Member Level: Bronze   Points : 0

Thanks to all.For Sharing The Question And Answers .

Author: ganesan01 Jul 2014 Member Level: Silver   Points : 0

thanks frnd
typess of join
inner join
outer join
left outer join
right outer join
full outer join
cross join
self join

Author: naveensanagasetti30 Jul 2014 Member Level: Gold   Points : 8

1) what are access modifiers?
A) Access modifiers are keywords used to specify the declared accessibility of particular member.
Mostly we used the following access modifiers in our projects.
• Public
• Private
• Protected
• Internal
2) which one is default access modifier? why?
A) It’s depend upon the type.
Enum- public
Class- internal
Interface- public
Struct- internal
Methods, fields, properties – private
3) 4 pillars of OOPS?
A) Encapsulation
Abstraction
Polymorphism
Inheritance
4) How to create assembly in C# and implement in VB.net?
A) Refer below link for creating new assembly
http://www.c-sharpcorner.com/UploadFile/akkiraju/creating-and-sharing-net-assemblies-for-a-net-application/
5) what does assemby contains?
A) Refer below link to know more about Assembly contains
http://msdn.microsoft.com/en-us/library/zst29sk2(v=vs.110).aspx
6) How to handle critical section in C#?
A) Using Lock statement we can handle critical section. Refer below link for more details
http://www.dotnetspider.com/resources/38255-net-interview-Polaris-Chennai.aspx
7) Page life cycle?
A) ASP.Net page life cycle starts with the client requests. The request first goes to the IIS(Internet Information Services). The IIS takes the requests and then send to the utilities- InetInfor.exe and ASPNet_ISAPI.dll. These two utilities take the request and validate for the correct requests and then filter as the directory and the web page name. Now the request further move the worker process (w3wp.exe) to check for the existing web directory and then AppDomain for the current page. If the page not found, then the request further moves to HttpPipeLine and executes via Process Request method by generating its events- init, load, render, unload..etc.
8) Exception thrown in response.redirect?
A) In any place exceptions occurred then use Try and Catch blocks to handle the exceptions.

Author: Sridhar Thota09 Nov 2014 Member Level: Gold   Points : 0

hi
can any one explain oops concepts with in c#
with example?

thanks

sridhar

Author: allgrey23 Dec 2014 Member Level: Silver   Points : 4

Hi

Q4: How to create assembly in C# and implement in VB.net?
Me: No
My point is assembly is auto generated code u can't change and create in vb or c#. use of assembly is you are doing your project in your system i want store your project source code in my flash drive after i have stored it in my system for further work But your source code is not work in my system why means your assembly code is different and my system assembly code is different that is difference of Assembly.

With regards
Black caps
black_caps45@yahoo.in

Author: Sridhar Thota21 Jan 2015 Member Level: Gold   Points : 0

hi
blackcaps
write a class to make dll in c# and use it in vb by adding reference and import namespaces.

Author: Sridhar Thota13 Apr 2015 Member Level: Gold   Points : 5

sql server:

1.Types of joins ?
A)

a.inner join: Retrieves matching columns from both left and right tables.

b.left join: Retrieves all columns from left table and matching columns from right table.

c.right join: Retrieves all columns from right table and matching columns from left table.

d.outer join: Retrieves all columns from left and right tables.

e.cartesian join: Retrieves cartesian product of two tables.

2.Which one is fast truncate or delete? why?
A)
Truncate execution is fast than delete.
DDL commands(create,alter,drop,truncate) are auto-commit, that means we cannot rollback.
since for DDL rollback table is not created.
Hence we cannot rollback. This makes query execution fast.


thanks

sridhar



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: