KyaPoocha.com

Huge Collection of Interview Questions


Archive for December, 2006

Are the actual permissions for the application defined at run-time or compile-time? 

The CLR computes actual permissions at runtime based on code group membership and the calling chain of the code.  Read more »

What is the difference between authentication and authorization? 

Authentication happens first. You verify user’s identity based on credentials. Authorization is making sure the user only gets access to the resources he has credentials... Read more »

What is a code group? 

A code group is a set of assemblies that share a security context.  Read more »

How can C# app request minimum permissions? 

Using System.Security.Permissions; [assembly:FileDialogPermissionAttribute(SecurityAction.RequestMinimum, Unrestricted=true)].  Read more »

How can you work with permissions from your .NET application? 

You can request permission to do something and you can demand certain permissions from other apps. You can also refuse permissions so that your app is not inadvertently... Read more »

What’s the difference between code-based security and role-based security? Which one is better? 

Code security is the approach of using permissions and permission sets for a given code to run. The admin, for example, can disable running executables off the Internet... Read more »

How do you display an editable drop-down list? 

Displaying a drop-down list requires a template column in the grid. Typically, the ItemTemplate contains a control such as a data-bound Label control to show the... Read more »

When a thread blocks on I/O, what state does it enter? 

A thread enters the waiting state when it blocks on I/O.  Read more »

What are the major data structures used in the following areas : RDBMS, Network data model & Hierarchical data model. 

1. RDBMS– Array (i.e. Array of structures) 2. Network data model– Graph 3. Hierarchical data model– Trees.  Read more »

Why do threads block on I/O ? 

Threads block on i/o (that is enters the waiting state) so that other threads may execute while the i/o Operation is performed.  Read more »

What is the difference between JSP and JSF? 

JSP simply provides a Page which may contain markup, embedded Java code, and “tags” which encapsulate more complicated logic /html. JSF may use JSP as... Read more »

What is JSF? 

JavaServer Faces (JSF) is a new standard Java framework for building Web applications. It simplifies development by providing a component-centric approach to developing... Read more »

What is the difference between superclass and subclass? 

A super class is a class that is inherited whereas sub class is a class that does the inheriting.  Read more »

What is the difference between this() and super()? 

this() can be used to invoke a constructor of the same class whereas super() can be used to invoke a super class constructor.  Read more »

What is difference between overloading and overriding? 

a) In overloading, there is a relationship between methods available in the same class whereas in overriding, there is relationship between a superclass method and... Read more »

Page 1 of 512345»