| Back to Questions Page |
| |
| Question |
What does this do? gacutil /l | find /i about |
Rank |
Answer Posted By |
|
Question Submitted By :: .NetGuru |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | /l give the global assembly cache
/i install an assembly to global assemly cache  |
| Ish |
| |
| |
| Question |
What benefit does your code receive if you decorate it with
attributes demanding specific Security permissions? |
Rank |
Answer Posted By |
|
Question Submitted By :: .NetGuru |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | genetic recombination  |
| Poonam |
| |
| |
| Answer | Allows administrators to see exactly which permissions your
application needs to run, using PermView
Prevents your code from being exploited beyond what
permissions it absolutely needs
Allows your application to forcibly fail instead of having
to manually handle situations where it might be denied
permissions it requires.
More info can be found here / here  |
| O1 |
| |
| |
|
|
| |
| Question |
What is FullTrust? Do GACed assemblies have FullTrust? |
Rank |
Answer Posted By |
|
Question Submitted By :: .NetGuru |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | The permissions to run any assembly is based on its trust
level.Under Full Trust level all assemblies can be run
successfuly. All GAC asemblies have Full Trust as ever
strong named assembly is Full Trust assembly.  |
| Pramod Gupta |
| |
| |
| Answer | Gac Assemly have full trust bescause in gac only storng
name assembly come  |
| Ish |
| |
| |
| Question |
What are PDBs? Where must they be located for debugging to work? |
Rank |
Answer Posted By |
|
Question Submitted By :: .NetGuru |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | A program database (PDB) file contains debug information
for the project’s EXE file. The project.PDB contains full
debug information, including function prototypes, not just
the type information found in VCx0.PDB. Both PDB files
allow incremental updates.
They should be located at bin\Debug directory  |
| Pramod Gupta |
| |
| |
| Answer | A program database (PDB) files holds debugging and project
state information that allows incremental linking of debug
configuration of your program.There are several different
types of symbolic debugging information. The default type
for Microsoft compiler is the so-called PDB file.  |
| Pompi |
| |
| |
| Question |
What is wrong with a line like this? DateTime.Parse(myString) |
Rank |
Answer Posted By |
|
Question Submitted By :: .NetGuru |
| This Interview Question Asked @ Metasys |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | DateTime.parse("","") will take two parameter one string
and other get other on object  |
| Ish |
| |
| |
| Answer | No .it can have one argument.
Eg. Response.Write(DateTime.Parse("10:50:39"))
will return you date and time.
such as 24/06/2008 10:50:39 AM
You can not simply have any irrlevant string,it should be
some string containing data or time value.  |
| Fusion |
| |
| |
| Answer | Nothing wrong with the format really. Only problem is that
the result would depend on the Culture of the machine where
this line is getting invoked. Ideally you should also
supply the second parameter - or specify the Culture!  |
| Anand |
| |
| |
| Answer | A statement like this should be used only after making sure
that the string contains DateTime data.
e.g DateTime.Parse("3 4") will return 3rd April 2009
(current year assuming DD-MM-YYYY as the datetime format as
per the machine's settings)  |
| Rahul Misra |
| |
| |
| Question |
What is strong-typing versus weak-typing? Which is
preferred? Why? |
Rank |
Answer Posted By |
|
Question Submitted By :: .NetGuru |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Strong type is checking the types of variables as soon as
possible, usually at compile time. While weak typing is
delaying checking the types of the system as late as
possible, usually to run-time. Which is preferred depends
on what you want. For scripts & quick stuff you’ll usually
want weak typing, because you want to write as much less
(is this a correct way to use Ensligh?) code as possible.
In big programs, strong typing can reduce errors at compile
time.  |
| Vetri |
| |
| |
| Question |
What is the difference between an EXE and a DLL? |
Rank |
Answer Posted By |
|
Question Submitted By :: .NetGuru |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | EXE file has Entry point, but in dll no Entry point.  |
| Selvavelan.s |
| |
| |
| Answer | EXE file is a excutable file which runs in a seperate
process which is managed by OS,where as a DLL file is a
dynamic link library which can be used in exe files and
other dll files.
In .net frame work both are assemblies.  |
| Madhuri |
| |
| |
| Answer | EXE is a Self Executable File where as dll is not self
executable file,To run dll file we need a exe file  |
| Govardhan |
| |
| |
| Answer | DLL:
1)it has versioning
2)it is not self executable
3)it runs in application process memory
4)it has no entry point
5)it is reusable
Exe:
1)it is self executable
2)it has no versioning
3)it runs in own memory
4)it have main function(Entry point)
5)it is self executable
Note:DLL is Superset of Exe  |
| Sivaprasad |
| |
| |
| Answer | The full form of EXE is executable file,AND The full form
of DLL is Data Link Library.  |
| Manab |
| |
| |
| Answer | The full form of EXE is Executable file and DLL is Dynamic
Link Library.  |
| Apekshit Sharma |
| |
| |
| Question |
What is the maximum amount of memory any single process on
Windows can address? Is this different than the maximum
virtual memory for the system? How would this affect a
system design? |
Rank |
Answer Posted By |
|
Question Submitted By :: .NetGuru |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | 2GB  |
| Raju |
| |
| |
| Question |
What is a Windows Service and how does its life cycle differ
from a standard EXE? |
Rank |
Answer Posted By |
|
Question Submitted By :: .NetGuru |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Windows services starts automatically whenever our system
starts.
windows services runs on a particular port  |
| Lavanya |
| |
| |
| Answer | Windows service is a application that runs in the
background. It is equivalent to a NT service.
The executable created is not a Windows application, and
hence you can’t just click and run it . it needs to be
installed as a service, VB.Net has a facility where we can
add an installer to our program and then use a utility to
install the service. Where as this is not the case with
standard exe  |
| Summa |
| |
| |
| Question |
Describe the difference between a Thread and a Process? |
Rank |
Answer Posted By |
|
Question Submitted By :: .NetGuru |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | - A Process has its own memory space, runtime enivorment
and process ID. A Thread runs inside a Process and shares
its resources with other threads.
- A thread is a path of execution that run on CPU,
a proccess is a collection of threads that share the same
virtual memory. A process have at least one thread of
execution, and a thread always run in a process context.
- Process is unit of allocation while Thread is
unit of execution. Each process has one or more threads.
Each thread belong to one process  |
| Chandra Sekhar Dola |
| |
| |
| Answer | exact it is right.
Thanks a lot
after a long time i found the answer for this question.
thankx
saisudhakar  |
| Saisudhakar |
| |
| |
| Answer | Thread is the path of execution that run on cpu.
process is a collection of threads that share the same
virtual memory.  |
| Saiish Bhat |
| |
| |
| Answer | Q. What is the diff b/w Thread and Process?
Solution:
A Process has its own memory space, runtime environment
and process ID. A Thread runs inside a Process and shares its resources
with other threads.
Thread is a path of execution that run on CPU,a proccess is a collection
of threads that share the same virtual memory. A process have at least one thread of execution, and a thread always run in a process context.
Process is unit of allocation while Thread is unit of execution. Each process has one or more threads. Each thread belong to one process
The major difference between threads and processes is
1. Threads share the address space of the process that
created it; processes have their own address.
2. Threads have direct access to the data segment of its
process; processes have their own copy of the data segment
of the parent process.
3. Threads can directly communicate with other threads of
its process; processes must use interprocess communication
to communicate with sibling processes.
4. Threads have almost no overhead; processes have
considerable overhead.
5. New threads are easily created; new processes require
duplication of the parent process.
6. Threads can exercise considerable control over threads of
the same process; processes can only exercise control over
child processes.
7. Changes to the main thread (cancellation, priority
change, etc.) may affect the behavior of the other threads
of the process; changes to the parent process does not
affect child processes.
8. Thread is light weight process having its own stack but collection of related threads can share same execution memory. process is program or part of program under execution .every process can have its own execution environment.
9. A thread is code that is to be serially executed within a process. A process is a collection of virtual memory space, code, data, and system resources.  |
| Anubhav |
| |
| |
| Question |
Difference between manifest , metadata? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ TCS |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Manifest Maintains the information about the assemblies
like version, name locale and an optional strong name that
uniquely identifying the assembly. This manifest
information is used by the CLR. The manifest also contains
the security demands to verify this assembly. It also
contains the names and hashes of all the files that make up
the assembly. The .NET assembly manifest contains a
cryptographic hash of different modules in the assembly.
And when the assembly is loaded, the CLR recalculates the
hash of the modules at hand, and compares it with the
embeded hash. If the hash generated at runtime is different
from that found in the manifest, .NET refuses to load the
assembly and throws an exception.
Metadata means Data about the data.metadata yields the
types available in that assembly, viz. classes, interfaces,
enums, structs, etc., and their containing namespaces, the
name of each type, its visibility/scope, its base class,
the interfaces it implemented, its methods and their scope,
and each method’s parameters, type’s properties, and so on.
The assembly metada is generated by the high-level
compilers automatically from the source files. The compiler
embeds the metadata in the target output file, a dll,
an .exe or a .netmodule in the case of multi-module
assembly.  |
| Sri4u_926 |
| |
| |
| Answer | Assembly metadata is stored in Manifest. Manifest contains
all the metadata needed to do the following things.
Version of assembly
Security identity
Scope of the assembly
Resolve references to resources and classes.
The assembly manifest cdan be stored in either a PE file
(an .exe or .dll) with Microsoft intermediate languages
(MSIL) code or in stand-alone PE file that contains ony
assembly manifest information.  |
| Srikant Dwibedi |
| |
| |
| Answer | Manifest contains Metadata(About Assembly).It consists of
Name of the Assembly
Version of the Assembly
Scope of Assembly
Metadata is data about data.  |
| Prashanthi |
| |
| |
| Question |
syntax for writing private method in a interface |
Rank |
Answer Posted By |
|
Question Submitted By :: Narsareddy |
| This Interview Question Asked @ Wipro , ABMPL |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | An interface cannot have private methods. All the member
declarations inside interface are implicitly public.  |
| Vanitha |
| |
| |
| Answer | we cnt write private methods in an interface.as we have to
inherit that method its by default on public scope  |
| Pankaj |
| |
| |
| Answer | By default interface is public.Interface is accessed by
another class it should be public.so we cant write it as a
private.  |
| Jayamala |
| |
| |
| Answer | we can't have private methods in in interface.
by default all are public  |
| Anna |
| |
| |
| Answer | we create interface for inherite to classes, and Private
methods can only access within class not inherited class.so
you cannot create Private methods in Interface.  |
| Sudhir Kunnure |
| |
| |
| Answer | By default all methods in the interface are not just
public !!!!! They are Public abstract.
Because methods of Interface will get override in the
Derived classes  |
| Uma |
| |
| |
| Answer | we cannot change the access modifier of methods private inside interface....n all the methods of interface should be implement in derived class..so the methods should not private  |
| Manoj Dhanik |
| |
| |
|
| |
|
Back to Questions Page |