web technology Online Quiz - 32

Covers Microsoft web technologies including WCF services, ASP.NET MVC framework, and ADO.NET data access for web applications.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which keyword is used to prevent an action method is being accessed publically?

  1. [Private]
  2. [NonAction]
  3. [Internal]
  4. [Protected]
Question 2 Multiple Choice (Single Answer)

Data Annotation Validator attributes include?

  1. Required
  2. Range
  3. StringLength
  4. All of the above
Question 3 Multiple Choice (Single Answer)

ASP.Net MVC Applications are?

  1. Looslely coupled
  2. with User friendly URL
  3. Less complex
  4. All of the above
Question 4 Multiple Choice (Single Answer)

MVC 2.0 application execution process is handled through?

  1. UrlRoutingModule
  2. Page Event
  3. a or b
  4. None of the above
Question 5 True/False

Controller’s action methods cannot be unit tested without Model generation?

  1. True
  2. False
Question 6 Multiple Choice (Multiple Answers)

ASP.NET MVC views are with extension of?

  1. .aspx
  2. .ascx
  3. .html
  4. All of the above
Question 7 Multiple Choice (Single Answer)

Different types of action filters in ASP.Net MVC 2.0?

  1. IAuthorizationFilter
  2. IActionFilter
  3. IResultFilter
  4. IExceptionFilter
  5. All of the above
Question 8 Multiple Choice (Multiple Answers)

ASP.Net MVC 2.0 requires below software version?

  1. Visual Studio 2008
  2. Visual Studio 2008 SP1
  3. Visual Studio 2010
  4. All of the above
Question 9 Multiple Choice (Multiple Answers)

Which one is true (select multiple options)?

  1. http://localhost:4356/controllername/actionname
  2. http://localhost:4356/controllername/actionname.aspx
  3. http://localhost:4356/controllername/actionname/inputparameter
  4. http://localhost:4356/controllername/actionname?id=inputparameter
Question 10 Multiple Choice (Multiple Answers)

Controller’s action methods must be (Select multiple options)?

  1. Defined as public method
  2. Should not be static method
  3. Can have ref and out parameters
  4. Can have generic types
Question 11 Multiple Choice (Single Answer)

WCF was introduced with which framework of dontnet?

  1. 3.0
  2. 3.5
  3. 2.0
  4. 4.0
Question 12 Multiple Choice (Single Answer)

what does ABC stands for in WCF?

  1. Address,Binding, Connection
  2. Action,Binding, Contract
  3. Action, Behaviour, Connection
  4. Address,Binding,Contract
Question 13 Multiple Choice (Single Answer)

Which is the default mode for Instancing in WCF?

  1. Singleton
  2. PerSession
  3. PerCall
  4. IsRequired
Question 14 Multiple Choice (Single Answer)

Which is the default Message Exchange Pattern (MEP) ?

  1. OneWay
  2. Request/Response
  3. Duplex
  4. Request
Question 15 Multiple Choice (Single Answer)

What was the code name for WCF?

  1. Indigo
  2. Blue
  3. Red
  4. Violet
Question 16 Multiple Choice (Single Answer)

Which is an invalid contracts in WCF?

  1. FaultContract
  2. OperationContract
  3. ServiceContract
  4. BehaviourContract
Question 17 Multiple Choice (Single Answer)

Which contract is used to document the errors occurred in the service to client?

  1. ErrorContract
  2. FaultContract
  3. MessageContract
  4. OperationContract
Question 18 Multiple Choice (Single Answer)

Which of the following ways can you proactively clean up a database connection's resources?

  1. Execute the DbConnection object's Cleanup method.
  2. Assign Nothing (C# null) to the variable that references the DbConnection object.
  3. Execute the DbConnection object's Close method.
  4. Execute the DbConnection object's Disconnect method.
Question 19 Multiple Choice (Single Answer)

Which method is used to commit all changes in the DataSet or DataTable?

  1. AcceptChanges
  2. Update
  3. GetChanges
  4. Accept
Question 20 Multiple Choice (Single Answer)

Which method is used to create a new row in a Table?

  1. Add()
  2. NewRow()
  3. Read()
  4. ExecuteReader()