C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







question


Posted Date: 13 May 2008      Total Responses: 1

Posted By: mahi       Member Level: Bronze     Points: 1


Question 49: A developer plans to use data-bound controls to display data in an ASP.NET application. This will include both list controls and template controls. The data will be supplied through several different data sources.

Which of the following scenarios will require the use of the DataBinder.Eval method to display data?
A. When it is necessary to evaluate late-bound data-binding expressions
B. When the data source does not support the IList interface
C. When binding any data to a list control
D. When the data source does not support the IEnumerable interface
E. When the data must be bound to non-database content

Question 50: Which of the following statements accurately describe a function of the SQL Server 2000 trigger in the script below?

CREATE TRIGGER conditionalinsert
ON Sales
AFTER INSERT AS
IF
(SELECT COUNT(*) FROM Titles, Inserted
WHERE Titles.title_id = Inserted.title_id) <> @@ROWCOUNT
BEGIN
DELETE Sales FROM Sales, Inserted
WHERE Sales.title_id = Inserted.title_id AND
Inserted.title_id NOT IN
(SELECT title_id
FROM Titles)
PRINT 'Only sales records with matching title_ids added.'
END
A. When unacceptable titles have been inserted, the transaction is not rolled back.
B. When unacceptable titles have been inserted, the trigger deletes the unwanted rows from the Titles table.
C. When unacceptable titles have been inserted, the trigger deletes the unwanted rows from the Sales table.
D. When the number of rows in the Sales table exceeds the number of rows in the Titles table, the trigger deletes rows from the Sales table.
E. The trigger displays the message when a row from the Sales table is deleted.

Question 51: An application needs to parse the contents of XML files before displaying the contents on the console. The files do not need to be validated but an exception needs to be thrown if the files are not well-formed and the parsing must be done as quickly as possible. Which of the following solutions meet these requirements?
A. Load the files through an XMLTextReader object, displaying the contents to the console as they're parsed.
B. Load the files through an XMLTransform object, displaying the contents to the console as they're parsed.
C. Load the files into an XMLDocument object and then iterate over the DOM's nodes to display the contents on the console.
D. Load the files into an XMLDataDocument object and then iterate over the DOM's nodes to display the contents on the console.
E. Load the files through an XMLValidatingReader object, displaying the contents to the console as they're parsed.





Responses

Author: Aravind PK    14 May 2008Member Level: GoldRating:     Points: 2
Ques 50: (D)




Post Reply
You must Sign In to post a response.
Next : questions..........
Previous : plz give me the answers?
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

internet fax

Contact Us    Privacy Policy    Terms Of Use