1. Which of the following mechanisms are not suitable for
returning a single row from a DataTable containing a large number of
records?
Answers:
<Extension()> _
Public Function AppendTest(ByVal s As String, ByVal suffix As String)
Return s & suffix
End Function
Answers:
Answers:
Answers:
Answers:
Console.WriteLine(CBool(If(1>2, “True”, “False”)))
Answers:
Dim values() As String = {“1”, “2”, “3”, “4”}
Dim valueList As New List(Of String)
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Private Sub Sample(ByVal number As Integer, Optional ByVal bool As Boolean = True)
End Sub
Answers:
Answers:
Answers:
Answers:
Answers:
Public Class Animal
Public Overridable Sub MakeNoise()
End Sub
End Class
Public Class Cat
Answers:
Public Class Fruit
End Class
Public Class Apple
Inherits Fruit
End Class
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
- DataTable.Rows.Find
- DataTable.Rows.Select
- DataTable.Select
- Enumerating across DataTable.Rows
<Extension()> _
Public Function AppendTest(ByVal s As String, ByVal suffix As String)
Return s & suffix
End Function
Answers:
- Dim s As String = “test” s = s.AppendTest(s, “suffix”)
- Dim s As String = “test” s = s.AppendTest(“suffix”)
- Dim s As String = “test” s = AppendTest(s, “suffix”)
- Dim s As String = “test” s = AppendTest(“suffix”)
Answers:
- int
- double
- string
- long
- float
Answers:
- Server validation should only be used when there is no client side validation.
- All data should be validated on the server side.
- Client Side validation typically provides a faster response (feedback) time than server validation
- A page can not be posted back unless all client validation has passed.
Answers:
- The connection to the database must remain valid for the life of the data objects
- All tables in a dataset must come from the same database.
- A given instance of a DataTable can be in only one DataSet
- Changes made to multiple tables within a DataSet can easily be transferred to a new DataSet which contains only the changes
- Content from multiple DataSets can easily be combined into a single DataSet that contains the net result of all changes.
Console.WriteLine(CBool(If(1>2, “True”, “False”)))
Answers:
- Throws an InvalidCastException
- TRUE
- FALSE
- None of the above
Dim values() As String = {“1”, “2”, “3”, “4”}
Dim valueList As New List(Of String)
Answers:
- valueList.Insert(values)
- valueList = values
- valueList.Add(values)
- valueList.AddRange(values)
Answers:
- There is no supported application level means to determine if a specific amount of memory is available.
- using static methods of System.Runtime.MemoryFailPoint and checking the return value
- creating an instance of System.Runtime.MemoryFailPoint and monitoring for an InsufficientMemoryException
- creating an instance of System.Runtime.MemoryFailPoint and monitoring for an OutOfMemoryException
Answers:
- <%# %>
- <%– –%>
- <!– –>
- <# >
Answers:
- AddHandler Sample.SomeEvent AddressOf MyEventHandler Public Sub MyEventHandler
- AddHandler Sample.SomeEvent, AddressOf Sample.SomeEvent
- Private WithEvents sample As New Sample Public Sub MyEventHandler(sender As Object, e As EventArgs) Handles sample.SomeEvent
- Private WithEvents sample As New Sample Public Sub MyEventHandler() Handles sample.SomeEvent
Answers:
- It performs a Boolean AND operation, evaluating both operands
- It performs a Boolean AND operation, evaluating the left-hand side only if the right-hand side is false
- It performs a Boolean AND operation, evaluating the right-hand side only if the left-hand side is false
- It performs a Boolean AND operation, evaluating the right-hand side only if the left-hand side is true
- None of the above
Answers:
- System.DateTime
- System.TimeSpan
- System.Globalization.Calender
- System.Globalization.CultureInfo
Answers:
- Including .Net code within the script element with the runat attribute set to server
- Including .Net code within the code element
- Including .Net code using the @code directive on the page
- Including .Net code within the execute attribute of the individual control
Answers:
- Use the DataRowCollection.Remove method to immediately delete the row.
- Use the DataRowCollection.Remove method to mark the row for deletion when DataRow.AcceptChanges is called.
- Use the DataRow.Delete method to immediately delete the row.
- Use the DataRow.Delete method to mark the row for deletion when DataRowAcceptChanges is called.
Answers:
- PreInit
- Init
- PreLoad
- PreRender
- Render
Answers:
- A certificate must be installed on the server.
- The certificate must match the web address to prevent a browser warning or error
- The certificate must be issued by an authority recognized by the client computer to prevent a browser warning or error
- Once issued, a certificate is always valid until the expiration date.
Answers:
- VB allows non-type template parameters
- VB supports explicit specialization
- VB allows the type parameter to be used as the base class for the generic type
- VB allows a generic type parameter itself to be a generic
- VB enforces that all codes are valid for all types of parameters
Answers:
- Structures cannot implement interfaces
- Structures cannot inherit from a base structure
- Structures cannot have events
- Structures cannot have overrideable methods
Answers:
- Init
- PreLoad
- Load
- PreRender
- Render
Private Sub Sample(ByVal number As Integer, Optional ByVal bool As Boolean = True)
End Sub
Answers:
- Sample(1, True)
- Sample(1)
- Sample(bool:=False)
- Sample(bool:=False, number:=1)
- Sample(bool:=False, 1)
Answers:
- Administrator
- IUSER_MachineName (where the MachineName is the actual computer name)
- ASPNET
- Guest
Answers:
- asp:ScriptManager
- asp:AjaxManager
- asp:PageManager
- asp:ClientScriptManager
Answers:
- A hidden variable within the page that is included with each round tip.
- A cookie which resides on the client’s computer
- A server side in-process memory cache
- Instance member variables of the Page class
Answers:
- It must be enabled in the web.config of the ASP.Net application.
- Forms Authentication must be enabled in the web.config of the ASP.Net Application
- Cookies must be enabled in the browser
- A redirection url must be supplied for successful login.
- All of the above.
Public Class Animal
Public Overridable Sub MakeNoise()
End Sub
End Class
Public Class Cat
Answers:
- Once overridden, the base class members are inaccessible rom the derived class.
- Public Sub Test() Animal.MakeNoise() End Sub
- Public Sub Test() MyBase.MakeNoise() End Sub
- Public Sub Test() CType(Me, Animal).MakeNoise() End Sub
Public Class Fruit
End Class
Public Class Apple
Inherits Fruit
End Class
Answers:
- Dim list As New List(Of Fruit) list.Add(New Apple) list.Add(New Fruit) Dim apple As Apple = list(0)
- Dim list As New List(Of Fruit) list.Add(New Apple) list.Add(New Fruit) Dim fruit As Fruit = list(0)
- Dim list As New List(Of Apple) list.Add(New Apple) list.Add(New Fruit) Dim apple As Apple = list(0)
- Dim list As New List(Of Apple) list.Add(New Apple) list.Add(New Fruit) Dim fruit As Fruit = list(0)
Answers:
- There is a size limitation on the parameters that can be passed
- A query string is used to pass the parameters.
- By default, JSON formatting is used for serialization
- By default, XML formatting is used for serialization
- The data is automatically deserialized into .NET types before the actual Web Service method is invoked.
Answers:
- Load
- LoadComplete
- PreRender
- Init
Answers:
- Dim result = (From r In dt Select r.Field(Of Int32)(“Value”)).Max
- Dim result = Select r.Field(Of Int32)(“Value”)).Max From dt
- Dim result = Select Max(“Value”) From dt.AsEnumerable
- Dim result = Aggregate r In dt Into Max(r.Field(Of Integer)(“value”))
Answers:
- ServiceContract
- OperationContract
- DataContract
- MessageContract
Answers:
- UserControl can directly express rendering information via markup; a Custom Server control can not.
- UserControl does not require the use of the @Register directive; a Custom Server control does require it.
- UserControl can make use of script based validation; a Custom Server control can not.
- UserControl can represent complete compositate hierarchy; a Custom Server control can not.
Answers:
- WebUIValidation.js
- ClientValidation.js
- AspNetValidation.js
- USerValidation.js
Answers:
- Dim key As String = “test” Dim result = From r In Dt Where r(0) = key Select r(1)
- Dim key As String = “test” Dim result = From r In dt.AsEnumerable Where r(0) = key Select r(1)
- Dim key As String = “test” Dim result = Select r(1) From r In Dt Where r(0) = key
- Dim key As String = “test” Dim result = Select r(1) From r In Dt.AsEnumerable Where r(0) = key
Answers:
- 2:2:2
- 3:2:2
- 3:2:1
- 2:2:1
No comments:
Post a Comment