.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 25th, 2003, 10:56 AM
vusubhahini vusubhahini is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 vusubhahini User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question interview help plz!

Hi friends,
I am very new to c# world. I am preparing for an intern interview. I got these questions from my last interview. I want to be prepared for my comming interview so if u could help me out ... I will appreciate it.

Compare and contrast the .NET platform with the J2EE platform. (Pick one or two points and describe.)

Please elaborate on the differences between Abstract classes and Interfaces in C# or VB.NET.

How do Value types and Reference types differ? Why might you explicitly define a type as a Value type?

What is a user defined conversion?

What are delegates? Provide an example of a problem which is elegantly solved using delegates.

What is Remoting in .NET?

Can you use pointers in C#?

What does C#.NET provide to safeguard sections of code for multithreaded use? How would you protect an instance variable vs. a static variable?

Thanks in advance.


Reply With Quote
  #2  
Old September 27th, 2003, 12:25 AM
Nem Nem is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 109 Nem User rank is Private First Class (20 - 50 Reputation Level)Nem User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
Compare and contrast the .NET platform with the J2EE platform. (Pick one or two points and describe.)

They probably want you to talk about differences in the .NET and Java JIT compiler/garbage collector.
Some obvious points:
1) Java is cross platform.
2) .NET performs extremely well (almost as fast as machine language).
3) As a language C# is almost identical to Java.


Please elaborate on the differences between Abstract classes and Interfaces in C# or VB.NET.

An interface does not have any method implementations where an abstract class can have both implemented and non-implemented methods. I believe a parent class can only implement one abstract class where it can implement multiple interfaces.


How do Value types and Reference types differ? Why might you explicitly define a type as a Value type?

When you pass a value type to a method (usually a primitive (int, float ect.)) a copy of it is made in memory and any changes to it are not reflected in the method that called the method. This is not true for reference types (classes, arrays etc.) which is why you may want to explicitly define it as a value type. This is kind of a broad question, hard to know exactly what they want…


What is a user defined conversion?

Don’t’ know what this is referring to…


What are delegates? Provide an example of a problem which is elegantly solved using delegates.

Delegates are basically function pointers. These are used heavily to implement events in objects (i.e. the On_Click event of a button). One way to elegantly implements them might be to construct a generic quick sort algorithm that takes a delegate with a custom comparison function as a parameter, this way you can use the quick sort algorithm to sort any array as long as you implement a comparison function for it. This is how qsort is implemented in C.


What is Remoting in .NET?

Don’t know much about it, allows applications to communicate with each other (maybe TCP/IP?)


Can you use pointers in C#?

Yes. You can use pointers in unsafe blocks. Fixed statements are used to control the unmanaged memory’s existence.


What does C#.NET provide to safeguard sections of code for multithreaded use? How would you protect an instance variable vs. a static variable?

Remember reading about this but can’t remember how .NET does it. Second question is a little ambiguous. Locking? Scope?


Good luck,
Nem

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > interview help plz!

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap