Some Interview Questions: Need answers

W

weird0

Hi! I need answers to these questions that were given to me in a job
test.

1. What is IDisposable in .NET?
2.What is the base class of all the controls in .NET?
3.What is the difference betweeen HAVING and WHERE ? Never used
HAVing clauuse or seen it.
4.What is pre-emptive multitasking?
5.What is object serialization?
6.What is the difference between web.config and machine.config? Never
seen machine.config... what is it

7.What is the relationship between Files Table and Directories TAble
in an ER Model?
Directories has one-to-many files. Would Directories have one-to-many
recursively since one
directory contains many sub-directories.

8. What is the difference between a session and a cookie?
 
T

Tom Spink

weird0 said:
Hi! I need answers to these questions that were given to me in a job
test.

1. What is IDisposable in .NET?
2.What is the base class of all the controls in .NET?
3.What is the difference betweeen HAVING and WHERE ? Never used
HAVing clauuse or seen it.
4.What is pre-emptive multitasking?
5.What is object serialization?
6.What is the difference between web.config and machine.config? Never
seen machine.config... what is it

7.What is the relationship between Files Table and Directories TAble
in an ER Model?
Directories has one-to-many files. Would Directories have one-to-many
recursively since one
directory contains many sub-directories.

8. What is the difference between a session and a cookie?

Hi,

Is this really an appropriate question to be asking in these forums?
Perhaps you should attempt to research and find out the answers yourself.

To start, visit the following website:
http://www.google.com
 
N

Nicholas Paldino [.NET/C# MVP]

weird0,

See inline:
1. What is IDisposable in .NET?

Short answer, it's an interface. The question doesn't ask what is it
used for. If that is the case, then it indicates that attention should be
paid to the type's lifetime, calling Dispose on the interface when done with
it. This is usually the case when the type is a managed representation of
an unmanaged resource, like sockets, database connections, window handles,
etc, etc, but not always.
2.What is the base class of all the controls in .NET?

For Windows Forms, System.Windows.Forms.Control. For Web controls,
System.Web.Control. For Windows Presentation Foundation, that's tricky, as
WPF has a huge heiarchy, and visual elements don't necessarily have to
derive from System.Windows.Controls.Control.
3.What is the difference betweeen HAVING and WHERE ? Never used HAVing
clauuse or seen it.

Having is used in sql when you need to filter on aggregate results (sum,
count, avg). Where can be used to filter on attributes alone.
4.What is pre-emptive multitasking?
http://en.wikipedia.org/wiki/Pre-emptive_multitasking

5.What is object serialization?

The process of taking the state of an object and storing it in a stream
of bytes, which can be persisted to many different mediums.
6.What is the difference between web.config and machine.config? Never
seen machine.config... what is it

Machine config is the config file that has the default settings for the
..NET framework for the whole machine. Settings in the user.config file
superceed the machine.config file, and then for ASP.NET files, the
web.config file superceeds those settings. In ASP.NET, the web.config file
for a subdirectory superceeds the web.config file for the parent directory.

When these files are processed, if the setting doesn't exist in the
current config file, the setting from the next level up is used. If it does
exist in the current config file, then that setting is used.
7.What is the relationship between Files Table and Directories TAble in an
ER Model?

No clue.
Directories has one-to-many files. Would Directories have one-to-many
recursively since one
directory contains many sub-directories.

8. What is the difference between a session and a cookie?

A cookie is a piece of information stored by the website on your
computer which is transmitted to that website whenever a request from that
website is made.

A session is a logical construct (with a concrete representation) used
to indicate state that is maintained between requests on a webserver. Given
the nature of HTTP servers, requests have no knowledge of other requests
from the same client, and do not maintain state between calls.

Cookies are one way of indicating to the server that a request should be
related to previous requests in a session.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top