473,395 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Some c# interview questions

I heard of two c# interview questions that i still clearly don't know
and havent understood the concept. One reason is also that I havent
worked upon them

1. What is the difference between a reference and a pointer?
Allah.... I don't even know what a reference is...

2. What are function pointers?

3. What are JOINS?

Ok.... Operartor Overloading is easy... and i can make it through
elementary concepts of Operating
System....

Can anyone explain briefly what are these things and refer to some
clearly written and simple links
where I can learn them....... and get my interview done welll.......
One thing more.... there is something what we do to obtain
concurrency..... I studied that in O.S....
Semaphores...... to prevent collisions and deadlock ...... I guess...
Does anyone know what is that ? And refer me some good link to study
this?

Apr 19 '07 #1
10 2096
Hi here,

1 is parameter passing.
2 is the delegates, depend on .NET 1.0, 1.1,2.0,3.0, or 3.5. You give a
little different ans.
The conurrency is threading, I guess
hmm, you better learn some C++ concept for this developer job interview.

--
cheers,
RL
"weird0" <am********@gmail.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
I heard of two c# interview questions that i still clearly don't know
and havent understood the concept. One reason is also that I havent
worked upon them

1. What is the difference between a reference and a pointer?
Allah.... I don't even know what a reference is...

2. What are function pointers?

3. What are JOINS?

Ok.... Operartor Overloading is easy... and i can make it through
elementary concepts of Operating
System....

Can anyone explain briefly what are these things and refer to some
clearly written and simple links
where I can learn them....... and get my interview done welll.......
One thing more.... there is something what we do to obtain
concurrency..... I studied that in O.S....
Semaphores...... to prevent collisions and deadlock ...... I guess...
Does anyone know what is that ? And refer me some good link to study
this?

Apr 19 '07 #2
My answer would be "The garbage collector and the compiler in the framework
does all that work for me so I can pay more attention to writing secure code
more efficiently so I can assist my colleagues to deploy our projects
faster, more reliably and at less expense. Am I hired?"
"Egghead" <robertlo@NO_SHAW.CAwrote in message
news:u4**************@TK2MSFTNGP05.phx.gbl...
Hi here,

1 is parameter passing.
2 is the delegates, depend on .NET 1.0, 1.1,2.0,3.0, or 3.5. You give a
little different ans.
The conurrency is threading, I guess
hmm, you better learn some C++ concept for this developer job interview.

--
cheers,
RL
"weird0" <am********@gmail.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
>I heard of two c# interview questions that i still clearly don't know
and havent understood the concept. One reason is also that I havent
worked upon them

1. What is the difference between a reference and a pointer?
Allah.... I don't even know what a reference is...

2. What are function pointers?

3. What are JOINS?

Ok.... Operartor Overloading is easy... and i can make it through
elementary concepts of Operating
System....

Can anyone explain briefly what are these things and refer to some
clearly written and simple links
where I can learn them....... and get my interview done welll.......
One thing more.... there is something what we do to obtain
concurrency..... I studied that in O.S....
Semaphores...... to prevent collisions and deadlock ...... I guess...
Does anyone know what is that ? And refer me some good link to study
this?


Apr 19 '07 #3
YOU'RE FIRED!!!

--
cheers,
RL
"clintonG" <no****@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
My answer would be "The garbage collector and the compiler in the
framework does all that work for me so I can pay more attention to writing
secure code more efficiently so I can assist my colleagues to deploy our
projects faster, more reliably and at less expense. Am I hired?"
"Egghead" <robertlo@NO_SHAW.CAwrote in message
news:u4**************@TK2MSFTNGP05.phx.gbl...
>Hi here,

1 is parameter passing.
2 is the delegates, depend on .NET 1.0, 1.1,2.0,3.0, or 3.5. You give a
little different ans.
The conurrency is threading, I guess
hmm, you better learn some C++ concept for this developer job interview.

--
cheers,
RL
"weird0" <am********@gmail.comwrote in message
news:11**********************@p77g2000hsh.googleg roups.com...
>>I heard of two c# interview questions that i still clearly don't know
and havent understood the concept. One reason is also that I havent
worked upon them

1. What is the difference between a reference and a pointer?
Allah.... I don't even know what a reference is...

2. What are function pointers?

3. What are JOINS?

Ok.... Operartor Overloading is easy... and i can make it through
elementary concepts of Operating
System....

Can anyone explain briefly what are these things and refer to some
clearly written and simple links
where I can learn them....... and get my interview done welll.......
One thing more.... there is something what we do to obtain
concurrency..... I studied that in O.S....
Semaphores...... to prevent collisions and deadlock ...... I guess...
Does anyone know what is that ? And refer me some good link to study
this?



Apr 19 '07 #4
Look,
Who's the boss?
Regards
Amir Diwan

Apr 19 '07 #5

"weird0" <am********@gmail.comskrev i en meddelelse
news:11**********************@p77g2000hsh.googlegr oups.com...
I heard of two c# interview questions that i still clearly don't know
and havent understood the concept. One reason is also that I havent
worked upon them
[snip]
One thing more.... there is something what we do to obtain
concurrency..... I studied that in O.S....
Semaphores...... to prevent collisions and deadlock ...... I guess...
Does anyone know what is that ? And refer me some good link to study
this?
The Little Book of Semaphores -Second Edition,
availible as pdf ( code examples in the book is in Python/C, but somewhat
easily understandable ) here :
http://greenteapress.com/semaphores/

Threading in C# including Semaphores :
http://www.albahari.com/threading/index.html
http://www.albahari.com/threading/part2.html#_Semaphore

Common problems in concurrent programming :
http://en.wikipedia.org/wiki/Dining_...ophers_problem
http://en.wikipedia.org/wiki/Sleeping_barber_problem
http://en.wikipedia.org/wiki/Rendezvous_problem
http://en.wikipedia.org/wiki/Produce...sumers_problem
amongst others.

Best regards
Michael Weber
Apr 19 '07 #6
1. What is the difference between a reference and a pointer?
Allah.... I don't even know what a reference is...
A reference is similar to a pointer, but not the same. A pointer is a
variable that contains the physical memory address of some data. It is a
number, and you can perform mathematical operations on the variable to make
it point to different memory locations. for example, if you have a pointer
to a byte, and add 1 to it, it points to the next physical byte in machine
memory. A reference, on the other hand, is a managed, object-oriented,
type-safe kind of "pointer" which "points" to the location of a class
instance, but can not be changed. It will always point to the class it is
assigned to.
2. What are function pointers?
A function pointer is a pointer that contains the memory address of a
function definition. By invoking the pointer, you invoke the function.
3. What are JOINS?
This is not a C# question (unless you're talking about LINQ, which I doubt
in this case), but a SQL question. A JOIN is a query that fetches results
from a combination of 2 or more database tables into a single tabular set of
results. In LINQ it is much the same, but applied more broadly to any
aggregate type, not confined to database tables.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"weird0" <am********@gmail.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
I heard of two c# interview questions that i still clearly don't know
and havent understood the concept. One reason is also that I havent
worked upon them

1. What is the difference between a reference and a pointer?
Allah.... I don't even know what a reference is...

2. What are function pointers?

3. What are JOINS?

Ok.... Operartor Overloading is easy... and i can make it through
elementary concepts of Operating
System....

Can anyone explain briefly what are these things and refer to some
clearly written and simple links
where I can learn them....... and get my interview done welll.......
One thing more.... there is something what we do to obtain
concurrency..... I studied that in O.S....
Semaphores...... to prevent collisions and deadlock ...... I guess...
Does anyone know what is that ? And refer me some good link to study
this?

Apr 20 '07 #7
Thanks a lot for the reply...
Kevin

Why do I need a function pointer anyway?
Like you said, by invoking the pointer you invoke the function. Why
not just call the function directly?
Apr 21 '07 #8
weird0 <am********@gmail.comwrote:
Thanks a lot for the reply...
Kevin

Why do I need a function pointer anyway?
Like you said, by invoking the pointer you invoke the function. Why
not just call the function directly?
If the bit doing the calling knows which function to call, there's no
advantage - but the point of a function pointer is that you can pass
that function pointer to something else (e.g. adding an event handler).

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Apr 21 '07 #9
Semaphores can simply be understood as a boolean flag that indicates
whether an OS resource like a thread is available or not. It is a
synchronization mechanism that is commonly used in what is called race
conditions. A race condition is when a data is shared by two threads
simultaneously, modifying which, indiscriminately, can cause wrong data
to be used bye each thread.
It is a low level functionality that probably only serves theoretical
value today as modern runtimes provide for their own multithreading
libraries and synchronization mechanisms like monitors and locks.

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Apr 23 '07 #10
Ravichandran J.V. <jv************@yahoo.comwrote:
Semaphores can simply be understood as a boolean flag that indicates
whether an OS resource like a thread is available or not. It is a
synchronization mechanism that is commonly used in what is called race
conditions. A race condition is when a data is shared by two threads
simultaneously, modifying which, indiscriminately, can cause wrong data
to be used bye each thread.
That's more like a mutex or monitor. A semaphore is designed to be more
intelligent than that - it's not that there's one resource, either
available or unavailable; it allows for you to have many instances of
the same resource, and they can be used unless there are none left, at
which point you need to wait for some to be released.

See http://en.wikipedia.org/wiki/Semapho...programming%29 for more
information.

What you've described (a simple boolean flag) is a special case called
a *binary semaphore*.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Apr 23 '07 #11

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

Similar topics

1
by: Jobs | last post by:
What is application object ? Application object can used in situation where we want data to be shared across users globally. What's the difference between Cache object and application object...
0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: Jobs | last post by:
All answers to the below interview questions are at http://www.geocities.com/dotnetinterviews/ or you can download the complete answer zip file from...
0
by: Jobs | last post by:
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...
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
0
by: freesoftwarepdfs | last post by:
Ultimate list of Interview question website.....Do not miss it http://www.questpond.com http://msdotnetsupport.blogspot.com/2007/01/net-interview-questions-by-dutt-part-2.html...
0
by: Free PDF | last post by:
..NET , SQL Server interview questions websites.... http://www.questpond.com http://www.geocities.com/dotnetinterviews/...
0
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...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.