jainsurbhi 0 Newbie Poster

Hello all,

I’m a bit weird because just 2 days ago I had an interview for a .NET developer post .They promised to call me last day but they didn’t so I just want to confirm few answers given by my side. Please review them and let me hear your answers. I hope for a +ve ones.


Q- In which file are Predefined client side validation scripts define?
A-webulvalidation.js
B-clientvalidation.js
C-aspnetvalidaion.js
D uservalidaion.js
My answer was A -webulvalidation.js


Q-Which of following is true about C# generics?
A-C# allows non type template parameters
B-c# supports explicit specialization
C-c# allows the Type parameter to be used as the base class for the generic type
D-c# enforces that all codes are valid for all types of parameters

My answer was D-c# enforces that all codes are valid for all types of parameters

Q-Which of the following attributes of the process model element of the mac hine.config file ,is used to specify the level of authentication for dcom security?
A-com authenticationlevel
B –comlmpersonational level
C maxlo Threads
D-RequestQueuelimit

My answer was A-com authenticationlevel

Q- when using a Data reader to access the result of database operation ,which of the following is true?
A-the data reader provides random access capabilities on the result
B-the data reader provides a Cursor that can be used to move forward and backwards through the result
C-the data reader can provide the schema information to the result to tha application

My ans was (B)
Waiting for your reply ,please give me correct guidance

Q which of the following is false regarding system.threading.reader wrighterlocksim?
A-It is optimized for single processor/core operation
B-A thread which has a read lock on resource may not acquire a Wright lock on the same resource
C-by default ,a thread which has a read lock on a resource and attempts to get another read lock on the same resource will throw an exception

My ans was b

Q- using an automatic property, which of following statement is true?

A-the compiler generates a backing field that is complete inaccessible from the application code
B-the compiler generates a backing field that is accessible via reflection
C-the complier generate a code that will store the information separately from the instance to ensure its security

Q- what is proper declaration of method which will handle the following events?
Class myclass
{
Public event Event Handler<my Args>My event;
}
A-public void A_MyEvent(object sender,MyArgs e)
{
}
B - public void A_MyEvent(object sender,EventArgs e)
{
}
c- public void A_MyEvent(MyArgs e)
{
}
My answer was( A)


Q-the default number of threads per processor in the system.Threading.threadpool class under version 3.5 of the farnework is:
A -1
B-25
C-250
D-100
E-500
Ans was B

Q-which of the following statement are applicable to LINQ to SQL?
A-it is pure object relation (O/R) Model
B-it is a set of enhancement to the dataset and data table classes
C-it is requires the use of Sql Server as the database
D- because LINQ is based on queries ,it can be used to modify the data in database


Q-which of the following condition can triggers the automatic of asp.net application hosted in IIS?
A-A specific number of request to the application process
B-A percentage of physical memory utilized by the process
C-A specific time interval
D-all of the above

My answer was C

Q- which of the following statements do expression trees fit best?
A-expression trees are a data structure which can be initially composed using syntax
B- expression tress are a dynamically generated code which is executed to performs the desired function
C- expression trees can be modified once they are created
My answer was B

Q-which of following are true of using ado.net dataset and data table?
A-the dataset and data tables objects requires continuous connection to the database
B- all tables in a dataset must come from the same database
C- A given instance of data table can be in only one dataset
D-Content from multiple data set can easily be combined into a single dataset that contains the net result of all changes

My answer was D


Q the output generated by the following code will be String t=@”this \is \a\test”;
Response.write(t);
A- Thisisatest
B- This\is\a\test
C- It will give a complication error .unrecognized escape sequence

My answer was _b

Q- which of following can one to detect the user’s current language?
A-Examining the user language property of current request object
B-examining the current culture property of the current request object
D- Examining the language property of the current object


My answer was B


Q- when using an implicitly typed array ,which of the following is most appropriate?
A-All elements in the initialize list must be of the same type
B-All elements in the initialize list must be implicitly convertible to a known type of at least one member in the initialize list
C- all elements in the initialize list must be implicitly convertible to common type which is a base type of the items actually in the list

Q-which of the following are required to be true by objects which are going to be used as key in a system.collection.hashtable?
A-They must handle case –sensitive identically in both the Gethashcode() and equals() method

B-key objects must be immutable for the duration they are used with hash table
C-getHashCode() must be overridden to provide the same result given the same parameters ,regardless of reference equality unless the Hash table constructor is provided with an IEqualityComparer parameter

D-Each element in hash table is stored as a keyvalue pair of the type system.
Collection .dictionary element

E- All of the above

My answer was E

Q- When using (CSS) to format output,which of the following is/are ture?
A-Style can be applied to All elements having the same CSS class attribute
B-style can be applied to specific element based on their ID attribute
C- Style can be applied to the elements based on their position in a hierarchy
D_Syle can be used in inoke script based code
E All of the above

My answer was A

Q-Where should information about Created at design thime be stored
A- Application state
B- Session state
C- View state
D- None of the above
E- Ans is View state

My answer was

Q-Determining the availability of sufficient memory for an application can be accomplished by:
A-creating an instance of System.runtime.memoryFailpoint and monitoring for an insufficient memory Exception
B-creating an instance of system.runtime.memoryFailpoint and monitoring for an out of memory Exception
C-there is no supported application level mean determine if the specific amount of memory is available

My answer was B

Q-Which of the following events should be used for assigning theme dynamically to a page?
A-prelnit
B-Init
C-Preload
D-prerender
E Render

My answer was a


Q- where should an instance of an object which provides to all users be stored
A- Application state
B- Session state
C- View state
D- None of the above

My answer was a


Q-which of the following are true the System Collection Generic .hashSet<t> clkass?
A-HashSet is an unordered collection
B- the Default Equality comparer Checks wheter the element supplied to the hashset is unique or not
C-hashSet provides functionality for ‘conceptual sets’ where the rules for membership can be specified without actually creating all of the items

My answer was C

Q-when using asynchronous partial update panel,which of the following are true?
A-only the update panel and any child control go through the server life cycle
B-the entire page always goes through the entire life cycle
C-only the update panel which initiated the post back and its child control can provide update information
E- Update panel can not be used with master paes

Which of the following can be used to control cashing an asp.net application?
A_ using the @ output cached in the .aspx file
BSetting the http cash policy of the cash property inside the response object
C-using the cash property of the page object
F- All of the above


THANKS
SURBHI