473,698 Members | 2,508 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 2049
>>>
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
5627
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
6956
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
1495
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
1196
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
1621
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
1046
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
1834
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
1710
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
1304
by: anil reddy | last post by:
Dotnet Interview questions and FAQs, Jobs. Please give your feed back http://interviews.dotnetthread.com
0
8685
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
8612
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,...
1
8905
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,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5869
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
4373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
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
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.