1) For locking the data with synchronization which class will be used? a. Lock b. Moniter c. SyncLock d. Deadlock
|
||||
2) How many readers can simultaneously read data with ReaderWriterLock if there is no writer locks apply? a. 9 b. 11 c. 13 d. No Limit
|
||||
3) Which of the following are value types? a. String b. System .Value c. System.Drawing d. System.Drawing.Point
|
||||
4) Which of the following are reference types? a. String b. Exception c. Class d. All of the above
|
||||
5) Why should you write the cleanup code in Finally block? a. Compiler throws an error if you close the connection in try block. b. Resource cannot be destroyed in catch block. c. Finally blocks run whether or not exception occurs. d. All of the above
|
||||
6) When the garbage collector runs. a. It runs automatically b. EveryDay c. Every alternate day d. When IIS restart.
|
||||
7) Which of the following is true ? 1. AJAX is a platform-independent technology 2. AJAX can work with web application 3. AJAX can only work with ASP.NET 4. AJAX is a platform-dependent technology a. 1, 2 b. 1,2,3 c. 1,3,4 d. None of the above
|
||||
8) Which control is required for every page that have AJAX Extensions for ASP.NET? a. UpdatePanel b. ScriptManager c. ContentPanel d. None of the above
|
||||
9) AnUpdatePanel control defined on a page. Button control is placed outside of the UpdatePanel. How to cause the UpdatePanel to execute an update. a. Set the Trigger attribute of the UpdatePanel to the ID of the Button control. b. Set the AsyncPostBackTrigger attribute of the Button control to the ID of theUpdatePanel. c. Place the button control on the update panel without script manager. d. Add an AsyncPostBackTrigger control to the Triggers section of the UpdatePanel. Set the ControlID attribute of the AsyncPostBackTrigger control to the
|
||||
10) Which method is used to dynamically register client script from code? a. Page.ClientScript.RegisterClientScriptBlock b. RegisterScript c. Page.ClientScript d. None of the above
|
||||
11) Which interface you will use wrap an AJAX client control into a custom server control? a. IScriptManager b. IScriptControl c. IScriptAJAX d. None of the above
|
||||
12) What is jQuery? 1. jQuery is an open source library 2. It works client side. 3. jQuery is java technology. a. 1, 2 b. 1, 2, 3 c. 1, 3 d. None of the above
|
||||
13) If you must use a user name and password to connect to a database, where should you store the sensitive information? a. Compiled in the application b. In an encrypted application configuration file c. In a resource file deployed with the application d. In the registry
|
||||
14) What is the recommended method for securing sensitive connection string information? a. Encrypting the data in the application configuration file b. Using a code obfuscator c. Using Integrated Security (Windows Authentication) d. Querying the user for his or her credentials at run time
|
||||
15) What are the element of code access security? a. Evidence,Permission b. SQLSecurity c. UserInterface d. SQL Injection
|
||||
16) What is Caspol? a. Command line tool b. Code access security policy tool c. Case Tool d. Command line tool & Code access security policy tool
|
||||
17) Which data provider gives the maximum performance from a connection to SQL Server? a. The OLE DB data provider. b. The JDBC data provider. c. The SqlClient data provider. d. The Oracle data provider
|
||||
18) Which CommandType value is incorrect? a. StoredProcedure b. TableDirect c. TableSchema d. Text
|
||||
19) Which SqlCommand execution returns the value of the first column of the first row from a table? a. ExecuteNonQuery b. ExecuteReader c. ExecuteXmlReader d. ExecuteScalar
|
||||
20) Which SqlCommand execution returns the number of effected records in the table? a. ExecuteNonQuery b. ExecuteReader c. ExecuteXmlReader d. ExecuteScalar
|