ASP NET Questions - Set 11

1)   For locking the data with synchronization which class will be used?

a. Lock
b. Moniter
c. SyncLock
d. Deadlock
Answer  Explanation 

ANSWER: Moniter

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: No Limit

Explanation:
No explanation is available for this question!


3)   Which of the following are value types?

a. String
b. System .Value
c. System.Drawing
d. System.Drawing.Point
Answer  Explanation 

ANSWER: System.Drawing.Point

Explanation:
No explanation is available for this question!


4)   Which of the following are reference types?

a. String
b. Exception
c. Class
d. All of the above
Answer  Explanation 

ANSWER: All of the above

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: Finally blocks run whether or not exception occurs.

Explanation:
No explanation is available for this question!


6)   When the garbage collector runs.

a. It runs automatically
b. EveryDay
c. Every alternate day
d. When IIS restart.
Answer  Explanation 

ANSWER: It runs automatically

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: 1, 2

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: ScriptManager

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: Add an AsyncPostBackTrigger control to the Triggers section of the UpdatePanel. Set the ControlID attribute of the AsyncPostBackTrigger control to the

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: Page.ClientScript.RegisterClientScriptBlock

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: IScriptManager

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: 1, 2

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: In an encrypted application configuration file

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: Using Integrated Security (Windows Authentication)

Explanation:
No explanation is available for this question!


15)   What are the element of code access security?

a. Evidence,Permission
b. SQLSecurity
c. UserInterface
d. SQL Injection
Answer  Explanation 

ANSWER: Evidence,Permission

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: Command line tool & Code access security policy tool

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: The SqlClient data provider.

Explanation:
No explanation is available for this question!


18)   Which CommandType value is incorrect?

a. StoredProcedure
b. TableDirect
c. TableSchema
d. Text
Answer  Explanation 

ANSWER: TableSchema

Explanation:
No explanation is available for this question!


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
Answer  Explanation 

ANSWER: ExecuteScalar

Explanation:
No explanation is available for this question!


20)   Which SqlCommand execution returns the number of effected records in the table?

a. ExecuteNonQuery
b. ExecuteReader
c. ExecuteXmlReader
d. ExecuteScalar
Answer  Explanation 

ANSWER: ExecuteNonQuery

Explanation:
No explanation is available for this question!