Placement papers on Csharp - Set 3
1. Which file contains configuration data for each unique URl resource used in project?
global.asax
assemblyinfo.cs
web.config
webapplication.vsdisco
View Answer / Hide Answer2. Automatic paging is possible in
datareader
dataset
datatabel
all
View Answer / Hide Answer3. In data reader, what can be used before read method?
Getstring
Getvalue
GetNumber
None
View Answer / Hide Answer4. What object can help you maintain data across users?
Session object
Application Object
Server Object
Response Object
View Answer / Hide AnswerANSWER: Application Object
5. From a dataview dv who has a column “EmpNo” from employee table, how will u bind a textbox
Textbox.databinding.add(“Text”,dv,”EmpNo”);
Textbox.databinding.adddv,”EmpNo”);
Textbox.databinding.add(EmpNo”);
None of the above
View Answer / Hide AnswerANSWER: Textbox.databinding.add(“Text”,dv,”EmpNo”);
6. The uniqueId that gets generated at the start of the Session is stored in
Client computer as a cookie
Server machine
Passed to and fro on each and every request and response
Both a and b are correct
View Answer / Hide Answer7. What property is used on the datatable to indicate conflicts after update method is called?
HasErrorConflict
HasError
HasCollision
HasDataError
View Answer / Hide Answer8. The page class file is generated when:
Every time a page is accessed
Whenever the assembly is recompiled and deployed
Whenever the configuration settings are changed
None of the above
View Answer / Hide AnswerANSWER: Whenever the assembly is recompiled and deployed