Microsoft TS: Microsoft .NET Framework 2.0 - Web-based Client Development - 070-528무료 덤프문제 풀어보기
You are creating a Web application.
The Web application manages an XML document that contains a catalog of books.
You need to ensure that nodes named Magazine are not added to the catalog.
What should you do?
The Web application manages an XML document that contains a catalog of books.
You need to ensure that nodes named Magazine are not added to the catalog.
What should you do?
정답: C
You are creating a mobile Web Form that dynamically displays news items.
You want to display news items by using an instance of a mobile TextView control named TextViewNews.
You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination
in case a user's device does not display the full text of a news item.
Which code segment should you use?
You want to display news items by using an instance of a mobile TextView control named TextViewNews.
You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination
in case a user's device does not display the full text of a news item.
Which code segment should you use?
정답: C
You want to enable users of a Web application to modify the Web application's UI and behavior.
These modifications must be maintained at the user level so that when users return to the Web application,
the changes are still in effect.
You need to achieve this goal by using the minimum amount of custom code.
What should you do?
These modifications must be maintained at the user level so that when users return to the Web application,
the changes are still in effect.
You need to achieve this goal by using the minimum amount of custom code.
What should you do?
정답: A
You have a Microsoft ASP.NET Web application. The application connects to a Microsoft SQL Server database. The database has a table named Product.
You write the following code segment to create a stored procedure named AddProduct.
CREATE PROCEDURE AddProduct
@Name VARCHAR(50)
AS
BEGIN
INSERT INTO Product(Name) VALUES(@Name);
RETURN SCOPE_IDENTITY();
END;
GO
You write the following code segment that will call the procedure to add a product. (Line numbers are included for reference only.)
01 Dim newProdID As Int32 = 0
02 Using conn As New SqlConnection(connString)
03 conn.Open()
04 Dim cmd As New SqlCommand("AddProduct", conn)
05 cmd.CommandType = CommandType.StoredProcedure
06 cmd.Parameters.Add("@Name", SqlDbType.VarChar)
07 cmd.Parameters("@Name").Value = newName
09 End Using
You need to retrieve the product ID of the new product.
Which code segment should you insert at line 08?
You write the following code segment to create a stored procedure named AddProduct.
CREATE PROCEDURE AddProduct
@Name VARCHAR(50)
AS
BEGIN
INSERT INTO Product(Name) VALUES(@Name);
RETURN SCOPE_IDENTITY();
END;
GO
You write the following code segment that will call the procedure to add a product. (Line numbers are included for reference only.)
01 Dim newProdID As Int32 = 0
02 Using conn As New SqlConnection(connString)
03 conn.Open()
04 Dim cmd As New SqlCommand("AddProduct", conn)
05 cmd.CommandType = CommandType.StoredProcedure
06 cmd.Parameters.Add("@Name", SqlDbType.VarChar)
07 cmd.Parameters("@Name").Value = newName
09 End Using
You need to retrieve the product ID of the new product.
Which code segment should you insert at line 08?
정답: A
You are creating a Web application. The application contains a file named books.xml.
The books.xml file contains the following code fragment. (Line numbers are included for reference only.)
01 <?xml version='1.0'?>
02 <bookstore>
03 <book genre="novel" style="other">
04 <title>The Confidence Man</title>
05 </book>
06 <book genre="novel" style="hardcover">
07 <title>The Handmaid's Tale</title>
08 </book>
09 <book genre="novel" style="other">
10 <title>The Poisonwood Bible</title>
11 </book>
12 </bookstore>
You write the following code segment.
Dim xmlDocument As New XmlDocument()
xmlDocument.Load(Server.MapPath("books.xml"))
Dim newBook As XmlDocumentFragment = xmlDocument.CreateDocumentFragment()
newBook.InnerXml = ("<book genre=""philosophy"" style=""other"" >" &
"<title>The Gorgias</title>" &
"</book>")
Dim rootXmlElement As XmlElement = xmlDocument.DocumentElement
You need to ensure that XmlDocumentFragment contained in the newBook variable is inserted between lines 05 and 06 in the XML document.
Which code segment should you use?
The books.xml file contains the following code fragment. (Line numbers are included for reference only.)
01 <?xml version='1.0'?>
02 <bookstore>
03 <book genre="novel" style="other">
04 <title>The Confidence Man</title>
05 </book>
06 <book genre="novel" style="hardcover">
07 <title>The Handmaid's Tale</title>
08 </book>
09 <book genre="novel" style="other">
10 <title>The Poisonwood Bible</title>
11 </book>
12 </bookstore>
You write the following code segment.
Dim xmlDocument As New XmlDocument()
xmlDocument.Load(Server.MapPath("books.xml"))
Dim newBook As XmlDocumentFragment = xmlDocument.CreateDocumentFragment()
newBook.InnerXml = ("<book genre=""philosophy"" style=""other"" >" &
"<title>The Gorgias</title>" &
"</book>")
Dim rootXmlElement As XmlElement = xmlDocument.DocumentElement
You need to ensure that XmlDocumentFragment contained in the newBook variable is inserted between lines 05 and 06 in the XML document.
Which code segment should you use?
정답: D
You create a Web site for a customer.
You need to deploy the Web site to the customer's server without any of the source files for the Web site.
You do not want the customer to be able to update any of the static pages on the Web site.
Which tool should you use?
You need to deploy the Web site to the customer's server without any of the source files for the Web site.
You do not want the customer to be able to update any of the static pages on the Web site.
Which tool should you use?
정답: A
You are creating a Microsoft ASP.NET Web site.
You need to ensure that the Web site uses cookieless authentication.
Which code fragment should you add to the Web.config file of the Web site?
You need to ensure that the Web site uses cookieless authentication.
Which code fragment should you add to the Web.config file of the Web site?
정답: C
You are creating a Microsoft ASP.NET Web application that uses Web Parts.
You need to ensure that users can modify the properties of Web Part controls. You also need to ensure that modifications are persisted.
What should you do?
You need to ensure that users can modify the properties of Web Part controls. You also need to ensure that modifications are persisted.
What should you do?
정답: A
You write a logging function for a Web Form. You call the logging function from the Page_Unload event handler.
You test the Web Form and notice that the Page_Unload event handler does not call the logging function.
You need to ensure that the logging function is called.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
You test the Web Form and notice that the Page_Unload event handler does not call the logging function.
You need to ensure that the logging function is called.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
정답: A,B
You are creating a Microsoft ASP.NET Web site.
You need to ensure that anonymous users are able to personalize the Web site.
Which code fragment should you add to the Web.config file of the Web site?
You need to ensure that anonymous users are able to personalize the Web site.
Which code fragment should you add to the Web.config file of the Web site?
정답: A