
VERCO.JSC CÔNG TY CỔ PHẦN TÁI CẤU TRÚC DOANH NGHIỆP VIỆT
Trụ sở : Tầng 1 tòa Sunrise Building 2, KĐT Sài Đồng, Long Biên, Hà Nội
Điện thoại: 0438.533 533 – Fax: 0436.525 808 – Web: verco.vn
Số:……………
Hà Nội, ngày…….tháng……..năm
2017
WEB APP WITH VB.NET
Câu hỏi 1:
You are a Web developer for FSS. You create an ASP.NET application that accesses
sales and marketing data. The data is stored in a Microsoft SQL Server 2000 database
on a server named TestK01. The company purchases a factory automation software
application. The application is installed on TestK01, where it creates a second instance
of SQL Server 2000 named Factory and a database named FactoryDB. You connect to
FactoryDB by using Windows Integrated authentication. You want to add a page to
your ASP.NET application to display inventory data from FactoryDB. You use a
SqlConnection object to connect to the database. You need to create a connection string
to FactoryDB in the instance of SQL Server named Factory on TestK01.
Which string should you use?
A. “Server=TestK01;Data Source=Factory;
Initial Catalog=FactoryDB;Integrated Security=SSPI”
B. “Server= TestK01;Data Source=Factory;
Database=FactoryDB;Integrated Security=SSP1”
C. “Data Source= TestK01\Factory;Initial Category=Factory;
Integrated Security=SSP1”
D. “Data Source= TestK01\Factory;Database=FactoryDB;
Integrated Security=SSP1”
Answer: D
Câu hỏi 2:
You are creating an ASP.NET application for FSS’s Internet Web site. You want to
create a toolbar that will be displayed at the top of each page in the Web site. The
toolbar will contain only static HTML code. The toolbar will be used in only your
application. You plan to create the toolbar as a reusable component for your
application. You need to create the toolbar as quickly as possible.
What should you do?
A. Create a new Web Control Library project.
Create the toolbar within a Web custom control.
B. Add a new Web user control to your ASP.NET project.
Create the toolbar within the Web user control.
C. Add a new Web Form to your ASP.NET project.
Use HTML server controls to design the toolbar within the Web Form and save the Web
Form with an .ascx extension.
D. Add a new component class to your ASP.NET project.
Use HTML server controls to design the toolbar within the designer of the component class.
Bình luận