473,748 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dotnet Interview questions and FAQs, Jobs

Dotnet Interview questions and FAQs, Jobs. Please give your feed back
http://interviews.dotnetthread.com
Oct 23 '08 #1
10 2058
>>>
Say we have a TextBox and Button control in one user control and we have
another TextBox in .aspx Page in wich we have placed that User Control. And
now If the user enters any text in User Control Text and clicks on Button in
User Control, that text should be displayed in .aspx page TextBox by calling
a method in page on User Control button click.
<<<

I had to read this about 3 times. You should make the control in the page a
label so that when you say "TextBox" I don't have to double-check which
TextBox you mean.
>>>
How to create DataBase tables schema diagram using SQL Server Management
Studio?
<<<

You expect me to remember each GUI step involved? This kind of task is more
of a visually intuitive thing than a memory thing, so asking someone to
remember how to do it isn't a very good question.
>>>
Difference between scripting language and a programming language?
<<<

Just not sure this is of any use at all.

I am stopping now. These look more like a FAQ than interview questions.


--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com

Oct 23 '08 #2
Here are some things I usually ask in an interview:

1. Write a stack container class.
2. Write a method to count the set bits in an integer.
3. Explain the difference between virtual, override, and overload.
4. Explain pass by value vs. pass by reference.
5. Explain synchronization vs. atomic code.
6. Where would you use synchronization in a .Net application?
7. Why are you interested in working here?
8. What's wrong with your previous/current job?
Oct 23 '08 #3
Good questions.
The only hard and annoying one, which I really hate, is the last one :))

If I would be an interviewer, beside the necessary technical background I
would also ask the interviewee to tell how he would approach a task
involving a new technology which he has not worked with, what are the steps
he follows.
In my opinion, beside the technical stuff, this is uber-important which many
people overlook.
..

"not_a_comm ie" <no********@gma il.comwrote in message
news:4b******** *************** ***********@e38 g2000prn.google groups.com...
Here are some things I usually ask in an interview:

1. Write a stack container class.
2. Write a method to count the set bits in an integer.
3. Explain the difference between virtual, override, and overload.
4. Explain pass by value vs. pass by reference.
5. Explain synchronization vs. atomic code.
6. Where would you use synchronization in a .Net application?
7. Why are you interested in working here?
8. What's wrong with your previous/current job?

Oct 23 '08 #4
1. Write a stack container class.

would this count?

var stack = new Stack<int>();

2. Write a method to count the set bits in an integer.
hehe :-)

3. Explain the difference between virtual, override, and overload.
I remember a Delphi interview where I was asked to explain the difference
between private, protected, public, and published. He disagreed with my
description of private (which in Delphi is more like "internal") , but he
later did a test and found out I was right. It was nice to teach the
programmer something new in the interview :-)
4. Explain pass by value vs. pass by reference.
5. Explain synchronization vs. atomic code.
This doesn't mean anything to me.
6. Where would you use synchronization in a .Net application?
I don't understand what you mean by synchronization .


--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com

Oct 23 '08 #5
anil reddy <an**********@g mail.comwrites:
http://interviews.dotnetthread.com
* How to create DataBase tables schema diagram using SQL Server
Management Studio?

The only right answer can be: Never. :)

* Difference between scripting language and a programming language?

I think your answer is getting this completly wrong. First of all
important scripting languages like DOS, Shell-Script languages (sh,
bash, tcsh,...), Perl, Python etc. are missing. Secondly, as the
extended examples show, these language don't have to be embedded in
anything -- BTW PHP may also be used to write standalone applications
without embedding anything in HTML. And don't forget that for example
C interpreters are available and Java and C# are also mostly
interpreted (compiled to byte code which then is interpreted, much
like systems that are today available for PHP, Perl, Python etc).

The term 'scripting language' says something about the roots and maybe
about the primary design goals of a language, but nothing about its
performance, if its interpreted or compiled (or a mix) etc.

--
Stefan.
Oct 24 '08 #6
4. Explain pass by value vs. pass by reference.
5. Explain synchronization vs. atomic code.

This doesn't mean anything to me.
I could rephrase the questions a bit:

4. Explain the difference in behavior with structs and classes in C#
including passing those into methods.
5. Explain the lock keyword in C#. Does using the lock keyword cause
the code inside it to run atomically?
Oct 24 '08 #7
4. Explain the difference in behavior with structs and classes in C#
including passing those into methods.
So your question is really

4. Explain the difference between reference types and value types.

I say this because I read "pass by value" as this

public void DoSomething(str ing passedByValue)
{
}

and "pass by reference" as this

public void DoSomething(ref string passedByReferen ce)
{
}

Simply because you used the words "pass by", which implies a method call.
5. Explain the lock keyword in C#. Does using the lock keyword cause
the code inside it to run atomically?
I think the first part of the question is sufficient.

"Explain what the lock keyword in C# is used for". The second part of your
question is more of a clue. The answer to the second part of your question
is "Yes". The code within a lock statement will always run "automatica lly"
in so far as you don't need to tell it to run, however it wont run
"immediatel y" and may not run at all :-)

--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com

Oct 25 '08 #8
5. Explain the lock keyword in C#. Does using the lock keyword cause
the code inside it to run atomically?
Strictly speaking the answer is no isn't it? In C# a statement is atomic if
it executes as a single indivisible instruction. Strict atomicity precludes
any possibility of preemption. In C#, a simple read or assignment on a
field of 32 bits or less is atomic (assuming a 32-bit CPU). Operations on
larger fields are non-atomic, as are statements that combine more than one
read/write operation.
Oct 25 '08 #9
On Fri, 24 Oct 2008 08:04:49 -0700, not_a_commie <no********@gma il.com>
wrote:
4. Explain pass by value vs. pass by reference.
5. Explain synchronization vs. atomic code.

This doesn't mean anything to me.

I could rephrase the questions a bit:

4. Explain the difference in behavior with structs and classes in C#
including passing those into methods.
Hmmm...your original #4 question and the rephrased one are not at all the
same.

The original #4 question is asking about the "ref" and "out" keywords.
The modified question is asking about value types and reference types.

You can pass value types by value, value types by reference, reference
types by value, and reference types by reference.

I do think it's reasonable to ask about how the passing mechanism and the
type classifications relate to each other, but it's a mistake to equate
the two concepts.

Jon Skeet's got a page that tries to address these concepts. I always
thought it was a pretty good discussion, and it looks like he's updated it
to make it even better. So, in case what I wrote above doesn't make any
sense, you might look here for elaboration:
http://www.yoda.arachsys.com/csharp/parameters.html

Pete
Oct 25 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
5634
by: Method Man | last post by:
Hi all, I was wondering if any of you could post some links to sites with good C++ interview questions. An answer key is preferred but not necessary. The Q's can range from entry level to senior level developers, it doesn't matter. My main focus right now is pointers and string/data structure algorithms, but anything C++ related would be great. Thanks!
2
6964
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
0
1500
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers7.html C# Interview Questions and Answers 6 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers-6.html C# Interview Questions and Answers 5...
0
1198
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers7.html C# Interview Questions and Answers 6 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers-6.html C# Interview Questions and Answers 5...
1
1625
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers7.html C# Interview Questions and Answers 6 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers-6.html C# Interview Questions and Answers 5...
0
1048
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers7.html C# Interview Questions and Answers 6 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers-6.html C# Interview Questions and Answers 5...
0
1838
by: reema | last post by:
dotnet http://www.interviewdoor.com/interviewforum/index.php?c=5 VB.NET Interview Questions And Real Time Discussions http://www.interviewdoor.com/interviewforum/viewforum.php?f=25 ASP.NET Interview Questions And Real Time Discussions http://www.interviewdoor.com/interviewforum/viewforum.php?f=26
0
1714
by: Pavel A. | last post by:
A dump is "accumulation of refuse and discarded materials", or "a place where such materials are dumped" (from www.merriam-webster.com). So your forum is a "certification dump"... you've said it. --PA Naveen wrote:
0
1306
by: anil reddy | last post by:
Dotnet Interview questions and FAQs, Jobs. Please give your feed back http://interviews.dotnetthread.com
0
8987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8826
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9534
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9316
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.