Que.1.
Which of the following statements is true?
A: CommitChanges is a method of
SqlDataContext.
B: CommitChanges is a method of
DataContext.
C: CommitChanges is a method of
DbDataContext.
D: CommitChanges is a method of OleDbData Context
Right
Answer: B
Que.2.
If you want to access a web service method ,which attribute it must have ?
A: [WebMethod]
B: [PageMetod]
C: [Web.Service]
D: [WebSupport]
Right
Answer: A
Que.3.
An UpdatePanel 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 the UpdatePanel.
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 ID of the Button
control.
Right
Answer: D
Que.4.
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
Right
Answer: A
Que.5.
In which Event you can set the value of a Theme?
A: Page_Load
B: Page_Render
C: Page_PreRender
D: Page_PreInit
Right
Answer: D
Que.6.
Which of the following statements is true?
A: LINQ to SQL works with any database.
B: LINQ to SQL works with SQL Server.
C: LINQ to SQL is a CLR feature.
D: LINQ to SQL is a SQL Server feature.
Right
Answer: B
Que.7.
Which of the following are value types?
A: String
B: System.Value
C: System.Drawing
D: System.Drawing.Point
Right
Answer: D
Que.8.
How many readers can simultaneously read data with ReaderWriterLock if there is
no writer lock apply?
A: 9
B: 11
C: 13
D: No Limit
Right
Answer: D
Que.9.
Which interface you will use wrap an AJAX client control into a custom server
control?
A: IScriptManager
B: IScriptControl
C: IScriptAJAX
D: None
Right
Answer: A
Que.10.
Which control is required for every page that have AJAX Extensions for ASP.NET
A: UpdatePanel
B: ScriptManager
C: ContentPanel
D: None
Right
Answer: B
Que.11.
Choose the correct one.
int[]
numbers = { 9,10, 0,11 };
var
nums =
from
n in numbers
select
n + 1;
foreach
(var i in nums)
{
Console.
Write (i+”,”);
}
A: 10, 11,1,12,
B: 10,11,12,13,
C: 9, 10, 0, 11
D: None of these
Right
Answer: A
Que.12.
What is the file extension of web service in ASP.NET
A: .ascx
B: .asmx
C: .aspx
D: .docx
Right
Answer: B
Que.13.
What LINQ expressions are used to shape results in a query?
1.where
2.select
3.join
4.group
A: 2,4
B: 1,2
C: 3,4
D: None of A,B,C
Right
Answer: A
Que.15.
If you are using the DataSet and you have to display the data in sorted order
what will you do?
A: Use Sort method of DataTable
B: Use Sort method of DataSet
C: Use DataViev object with each sort
D: Use datapaging and sort the data.
Right
Answer: C
Que.16.
Which LINQ statement is used to merge two data sources to perform queries?
A: where
B: select
C: join
D: group
Right
Answer: C
Que.17.
Which of the following are reference types?
A: String
B: Exception
C: Class
D: All choices are correct.
Right
Answer: D
Que.18.
Which method is used to dynamically register client script from code?
A: Page.ClientScript.RegisterClientScriptBlock
B: RegisterScript
C: Page.ClientScript
D: None
Right
Answer: A
Que.18.
Which method is used to dynamically register client script from code?
A: Page.ClientScript.RegisterClientScriptBlock
B: RegisterScript
C: Page.ClientScript
D: None
Right
Answer: A
Que.19.
Which interface defines the basic extension methods for LINQ?
A: IComparable< T>
B: IList
C: IEnumerable
D: IQueryable< T>
Right
Answer: C
Que.20.
What types of shapes can LINQ query results be shaped into?
1.Collections
of primitive types
2.Collections
of complex types
3.Single
types
4.Collections
of anonymous types
A: 1, 2, 4
B: 1,2,3
C: 1,3,4
D: None of A,B,C
Right
Answer: A
No comments:
Post a Comment