레이블이 70-561-VB인 게시물을 표시합니다. 모든 게시물 표시
레이블이 70-561-VB인 게시물을 표시합니다. 모든 게시물 표시

2014년 5월 8일 목요일

70-561-VB자격시험, 70-297인증덤프

IT인증자격증은 여느때보다 강렬한 경쟁율을 보이고 있습니다. Microsoft 인증70-561-VB시험을 통과하시면 취직 혹은 승진이나 연봉협상에 많은 도움이 되어드릴수 있습니다. Microsoft 인증70-561-VB시험이 어려워서 통과할 자신이 없다구요? ITExamDump덤프만 있으면 이런 고민은 이제 그만 하지않으셔도 됩니다. ITExamDump에서 출시한 Microsoft 인증70-561-VB덤프는 시장에서 가장 최신버전입니다.

ITExamDump을 선택함으로 100%인증시험을 패스하실 수 있습니다. 우리는Microsoft 70-297시험의 갱신에 따라 최신의 덤프를 제공할 것입니다. ITExamDump에서는 무료로 24시간 온라인상담이 있으며, ITExamDump의 덤프로Microsoft 70-297시험을 패스하지 못한다면 우리는 덤프전액환불을 약속 드립니다.

우리사이트가 다른 덤프사이트보다 우수한 점은 바로 자료들이 모두 전면적이고 적중률과 정확입니다. 때문에 우리ITExamDump를 선택함으로Microsoft인증70-297시험준비에는 최고의 자료입니다. 여러분이 성공을 위한 최고의 자료입니다.

시험 번호/코드: 70-561-VB
시험 이름: TS: MS .NET Framework 3.5, ADO.NET Application Development
당신이 구입하기 전에 시도
일년동안 무료 업데이트
100% 환불보장약속 70-561-VB기출문제
100% 합격율 보장
Q&A: 99 문항 70-561-VB자격시험
업데이트: 2014-05-07

70-561-VB기출문제: >>펼쳐보기

시험 번호/코드: 70-297
시험 이름: Designing a Microsoft Windows Server 2003 Active Directory and Network Infrastructure
당신이 구입하기 전에 시도
일년동안 무료 업데이트
100% 환불보장약속 70-297덤프자료
100% 합격율 보장
Q&A: 142 문항 70-297응시료
업데이트: 2014-05-07

70-297덤프자료: >>펼쳐보기

여러분은Microsoft 70-297인증시험을 패스함으로 IT업계관련 직업을 찿고자하는 분들에게는 아주 큰 가산점이 될수 있으며, 성덩한 IT업계사업자와 한걸음 가까와 집니다.

여러분은 우리. ITExamDump의Microsoft 70-297시험자료 즉 덤프의 문제와 답만 있으시면Microsoft 70-297인증시험을 아주 간단하게 패스하실 수 있습니다.그리고 관련 업계에서 여러분의 지위상승은 자연적 이로 이루어집니다. ITExamDump의 덤프를 장바구니에 넣으세요. 그리고 ITExamDump에서는 무료로 24시간 온라인상담이 있습니다.

네트워크 전성기에 있는 지금 인터넷에서Microsoft 인증70-297시험자료를 많이 검색할수 있습니다. 하지만 왜ITExamDump덤프자료만을 믿어야 할가요? ITExamDump덤프자료는 실제시험문제의 모든 유형에 근거하여 예상문제를 묶어둔 문제은행입니다.시험적중율이 거의 100%에 달하여Microsoft 인증70-297시험을 한방에 통과하도록 도와드립니다.

70-297 덤프무료샘플다운로드하기: http://www.itexamdump.com/70-297.html

NO.1 You are designing the top-level organizational unit (OU) structure to meet the administrative
requirements. What should you do?
A.Create a top-level OU named New York. Place all user and computer accounts from New York in the
New York OU.
B.Create a top-level OU named Chicago. Place all user and computer accounts from Chicago in the
Chicago OU.
C.Create a top-level OU named Coho. Place all user and computer accounts that are assigned to the
Coho Vineyard customer project in the Coho OU.
D.Create a top-level OU named Sales. Place all user and computer accounts from the sales department
in the Sales OU.
Answer: C

Microsoft 시험문제   70-297 IT시험덤프   70-297 자료   70-297 교육

NO.2 You are designing a strategy to provide Internet access to all users. What should you do?
A.Configure Internet Connection Sharing on all client computers.
B.Configure Automatic Private IP Addressing (APIPA) on all client computers.
C.Configure one server as a Routing and Remote Access VPN server.
D.Configure one server as a Routing and Remote Access NAT router.
Answer: D

Microsoft 자격증자료   70-297 자격증자료   70-297 인증

NO.3 You are designing a strategy to upgrade the DHCP servers after the new Active Directory structure is in
place. Who can authorize the DHCP servers? (Choose all that apply.)
A.chief information officer
B.IT support staff in Boston
C.IT support staff in New York
D.network administrator in Chicago
E.network administrator in New York
Answer: A

Microsoft 교재   70-297 최신덤프   70-297 교재   70-297 Dump   70-297 최신버전덤프   70-297 IT덤프

NO.4 You are designing a strategy to provide the required security for the Payroll server.You need to identify
the actions that you should perform to achieve this goal.What should you do?
To answer,move the appropriate actions from the list of actions to the answer area,and arrange them in
the appropriate order.(Use only actions that apply.)

NO.5 Exhibit, Existing Domain Model
Overview
Graphic Design Institute is a graphical design company that creates animated graphics for several
advertising companies and move theaters.
The hours of operation are 8:00 A.M. to 5:00 P.M., Monday through Friday.
Physical Locations
The company??s main office is located in Los Angeles. The company has five branch offices in the
following locations:
? Atlanta
? Dallas
? Denver
? New York
? San Francisco
The number of users in each office is shown in the following table.
Office Number of users
Los Angeles 550
Atlanta 300
Dallas 30
Denver 210
Planned Changes
To meet new security and customer requirements, the company wants to implement a Windows Server
2003 Active Directory environment.
Existing Environment
Business Processes
Graphic Design Institute consists of the following primary departments:
? Human Resources (HR)
? Finance
? Information Technology (IT)
? Advertising
? Movies
? Animation
The IT department is responsible for all network management.
Users often work on multiple projects at the same time. A strong administrative structure based on each
user??s office location and department is being used
Infrastructure
Directory Services
The existing domains and trust relationships are shown in the Existing Domain Model exhibit.
The company has one Windows 2000 domain located in the Los Angeles office. The name of the domain
is
graphicdesigninstitute.com. The domain is a Windows 20000 mixed-mode domain that contains Windows
2000 Server computers configured as domain controllers, Windows NT Server 4.0 computers configured
as BDCs, and Windows 2000 Server computers configured as member servers.
Currently, this domain is the only Active Directory domain. The domain consists of the following three
top-level OUs:
? Movies
? Animation
? Advertising
The default site configuration has been implemented in the existing Active Directory environment.
Problem statements
The following business problems must be considered:
? There is currently no enforcement of frequent password changes and logon hours.
? The ISP can only supply a single subnet, which consists of 32 IP addresses, for the Internet link.
? It is very difficult to manage users and groups and their necessary permissions.
? The finance and HR department cannot agree on a mutual security policy to implement.
? NetBIOS name resolution is saturating the WAN links.
Interviews
Chief Execute Offices
Graphic Design Institute has lost a number of contracts due to deadlines that have not been met.
Decreasing the amount of time we spend administering the network, along with increasing the amount of
time we spend on customers, is my primary reason for requesting the upgrade of the entire network.
Funds are available for critical hardware requirements. I do not want any downtime for users. I also
want strict business hours enforced. Employees should not be at the office or work from home outside
normal business hours.
Chief Information Officer
Currently, we have problems as a result of all the merges and acquisitions. I want all the servers to be
installed with Windows Server 2003 to resolve these problems. I also want all client computers upgraded
to Windows XP Professional over the next two years.
The current IT response level is leading to a lot of lost production hours. Each office will continue to
manage its own users and computers, with the exception of the finance and HR departments, which have
their own requirements. We need to ensure that no production time is lost as a result of an interruption
in the network connectivity.
Network Administrator
We are currently expected to resolve issues within 24 hours, although this sometimes is not achieved.
Because most high-level administrative work can only be done when users are not in the office, network
administrators often work after hours or on weekends.
Domain administrators are responsible for managing the private IP addresses of every computer that
belongs to their respective domains.
Help desk staff exists in each branch office to assist users with software-related problems, as well as with
basic network problems. Each domain has its own help desk staff with personnel located in each office. In
the future, the help desk staff will be responsible for resetting passwords if users forget them.
Office Worker
Only selected users have Internet access. This prevents us from remaining competitive because we
cannot
perform the necessary research about new technologies or software available.
Business Requirements
Business Drivers
The following business requirements must be considered:
? A single internal namespace is required to minimize administrative effort.
? A Web site exists outside the firewall to provide company contact information.
Organizational Goals
The following organizational requirements must be considered:
? The new design must accommodate the finance and HR departments, which have requirements
not addressed by the company??s planned password policy.
? All computers must have the latest service packs and hot fixes installed. In addition, computers in
the advertising department must be updated to have the latest versions of graphics and audio
drivers installed.
Security
The following security requirements must be considered:
? Specific security groups must be set up to address security requirements.
? Security must be based on departments and groups of individuals within the departments.
? Users in the finance department need access to payroll information on a server named Payroll,
which is located in the HR department.
Customer Requirements
The following customer requirements must be considered:
? A new service-level agreement that requires a response from the IT department to users within
one hour must go into effect.
? Personal information about employees must remain secure.
? All client computers, regardless of office location, must be able to access all other computers.
Technical Requirements
Active Directory
The following Active Directory requirements must be considered:
? The company requires a new Active Directory environment that enables the security requirements
of various departments to be met. This must be accomplished by installing a Windows Server 2003
on all domain controllers.
? A completely decentralized administrative approach will be used. Each group of administrators
will be responsible for its own departmental environment.
? Only one operations master role will be allowed per domain controller. This is required for fault
tolerance.
? DNS replication of the forest root domain must be limited to forest domain controllers only.
Network Infrastructure
The following infrastructure requirements must be considered:
? A new Routing and Remote Access solution must be installed:
? A DHCP solution that is fault tolerant within each office must be implemented
? All WAN links must be fault tolerant
? Name resolution must be localized on the local network
Answer:
11. You are designing an Active Directory forest structure to meet the business and technical
requirements. What should you do?
A.Create a single forest that has one domain. Use organizational units (OUs) to separate the
departments.
B.Create a single forest that has multiple domains to represent every department.
C.Create a single forest that has three domains: one for finance, one for HR, and one for the remaining
departments.
D.Create multiple forests that has a single domain in each forest to represent the departments.
Answer: C

Microsoft 덤프   70-297 자료   70-297

NO.6 Overview
Litware, Inc., is a corporate management company that manages the internal operations for its business
customers.
Internal operations include sales, accounting, and payroll.
Physical Locations
Litware, Inc., has two main offices in the following locations:
? New York
? Chicago
Each office has approximately 300 users.
The New York office has a branch office in Boston. The Boston office has approximately 100 users.
Staff in the Boston exclusively office work on projects for customers in the New York office. The Boston
office has no customers of its own.
Planned Changes
As part of its initiative to streamline the IT environment and increase network security, the company has
decided to implement a Windows Server 2003 Active Directory environment.
The New York office is currently in negotiations to secure Contoso, Ltd., as a new customer.
Business Processes
Litware, Inc., manages the business operations for eight business customers. For each customer,
Litware,
Inc. has a dedicated staff that works exclusively with that customer.
Users require access only to project data for the customers to which they have been directly assigned.
The
New York and Chicago offices are responsible for their own customers and maintain them separately.
Each individual customer project is listed in the following table.
Customers name Managed by
Alpine Ski House New York
Baldwin Museum of Science Chicago
Coho Vineyard New York
Fabrikam, Inc. New York
Humongous Insurance Chicago
Lucerne Publishing New York
Wingtip Toys Chicago
Woodgrove Bank Chicago
The chief information officer is the only person who is authorized to implement any changes that will
impact the entire company. Roles and responsibilities in the IT department are shown in the following
table.
Directory Services
Currently, Litware, Inc., has two Windows NT 4.0 domains configured a shown in the Existing Domain
Model exhibit.
The New York domain contains user and computer accounts for both the New York and Boston offices.
The Chicago domain contains user and computer accounts for the Chicago office.
Litware, Inc., users require access only to project data for the customers to which they have been directly
assigned. They also require access to internal company resources, such as a time-building application
that is hosted in the New York office.
Accounting auditors and executives require access to data from all customer projects to perform
quarterly reports, account reviews, and billing verifications. Account auditors and executives are located
in both New York and Chicago offices, and frequently travel between offices.
Network Infrastructure
The existing network infrastructure is shown in the Existing Network Infrastructure exhibit.
All Internet access is provided through a proxy server located in the New York office. The proxy server
provides Internet name resolution on behalf of the client computers.
Currently, all servers run Windows NT Server 4.0 with the latest service pack installed. A time-billing
application is installed on a Microsoft SQL Server computer named SQL1. SQL1 is managed by the
network administrators in the New York office, and is accessed by all Litware, Inc., users.
The company??s servers, including their domain membership, physical locations, and network functions,
are shown in the following table.
Server name Domain Office Functions
DC1 New York New York PDC, DHCP server
DC2 New York New York BDC, WINS server
DC3 New York Boston BDC, DHCP server,
WINS
server
Member
server
Fileserver1 New York New York ,DHCP server, file
server
Fileserver2 New York New York Member server,
WINS server,
file
server
Fileserver3 Chicago Chicago Member server
DHCP server,
file
server
Fileserver4 Chicago Chicago Member server,
WINS server,
file
server
SQL1 New York New York Member server,
SQL Server
computer,
timebilling
application
server
Most required network resources are available locally.
All client computers in the company run Windows 2000 Professional.
Problem Statements
The following business problems must be considered:
? Contoso, Ltd., requires that the new Active Directory infrastructure is completely in place prior to
obtaining the contract.
? Administrative authority for network administrators in the New York and Chicago offices must
remain equal.
Chief Executive Officer
The addition of Contoso, Ltd., as a customer will likely increase annual revenue by 50 percent.
Additional funds and resources have been allocated to secure this contract. All efforts should be made to
demonstrate to the Contoso, Ltd., representatives that we will address all of their security concerns. This
will be done on part though a migration to the Windows Server 2003 Active Directory environment.
Any short-term costs associated with a technology deployment are acceptable if they allow for growth
and flexibility in the future.
Chief Information Officer
A Web-based interface for the time-billing application will be implemented in the near future. The
current network administrators in the New York and Chicago offices perform their jobs well.
To reduce the burden on IT staff, trusted individuals within the organization should be identified to help
reduce the IT administrative burden.
Office Worker
We want to be able to access the internal network from our home computers.
Business Drivers
The following business requirements must be considered:
? The company wants access to the network to remain easy and intuitive. A company policy now
states that user logon names and e-mail addresses should be identical. Currently, each user has an
e-mail address made up of that user??s first initial and last name, and an additional domain name
indicating the region that manages that user??s account. For example, the user Nicole Caron from
the New York office has the e-mail address of ncaron@ny.litwareinc.com. The user Luis Bonifaz
from Chicago has the e-mail address of lbonifaz@chi.litwareinc.com.
? The domain name litwareinc.com has been registered.
? To ensure reliability in the event of a single WAN link failure, users should continue to
authenticate on the network. Additionally, all domains should be fault tolerant in the event of a
single domain controller failure.
? VPN access will be provided to enable user access to customer data outside of regular business
hours. VPN connections will be assigned through the New York office.
Organizational Goals
The following organizational requirements must be considered:
? As part of the negotiations between Contoso, Ltd., and the New York office, Litware, Inc., has
agreed to ensure that all users who require access to Contoso, Ltd., data must have complex
passwords that are a minimum of 10 characters in length.
? The company has also agreed that management of Contoso, Ltd., data must be completely isolated
from all other Litware, Inc., data. This included the ability to manage security of Contoso, Ltd.,
resources. There will be no exceptions.
? Planning for other aspects of how Contoso, Ltd., will integrate with the Litware, Inc., environment
is premature at this point. However, a quick migration solution for the existing environment must
be identified to allow for this anticipated growth.
? Litware, Inc., account auditors and executives from the New York and Chicago offices will require
limited access to Contoso, Ltd., data.
Security
The following security requirements must be considered:
? A new Web-based interface will be implemented for the time-billing application running on SQL1.
This application will use IIS, and will require the use of IP filtering that uses computer host names
for security purposes.
? Only authorized computers within the internal Litware, Inc., network will be given access to the
time-billing application.
Active Directory
The following Active Directory requirements must be considered:
? The network administrators in the Chicago and New York offices will retain their current
responsibilities, such as the management of user accounts, servers, and domain controllers for
their regions. There should be no overlap between their administrative authority.
? There is a need to allow trusted individuals responsible for each customer project to manage user
account information. Responsibilities will include the ability to reset passwords and define
personal user information on user accounts, such as phone numbers and addresses. The trusted
individuals will be allowed to manage only user accounts within the customer project to which
they have been assigned.
Network Infrastructure
The following infrastructure requirements must be considered:
? Users in the Chicago office access Internet-based resources frequently. This Internet-related
traffic accounts for most of the bandwidth used between the Chicago and New York offices.
Bandwidth utilization between these two offices is currently a cause for concern. Network traffic
between the Chicago and New York offices must be minimized whenever possible.
? Because of the Boston office??s data access requirements, a high level of availability and reduced
latency between the New York and Boston offices is required. Bandwidth utilization between the
Boston and New York offices is minimal and is not a concern in the foreseeable future.
? A Windows Server 2003 computer will provide VPN access to the network by using both L2TP
and PPTP. Usage statistics will be gathered over time to identify which users establish VPN
connections to the network, and the duration of their connections. These usage statistics will help
the company track trends and plan for future growth.
? The network administrator in Chicago has extensive knowledge of DNS, and will manage the
implementation of the DNS infrastructure for the Litware. Inc., network.
? The DNS structure must be secured against any unauthorized modifications, but also must be easy
to maintain and manage.
Answer:

NO.7 You need to identify the number of servers that will be used specifically for operations master roles.
How many servers should you recommend?
A.5
B.11
C.14
D.17
E.20
Answer: B

Microsoft Dump   70-297 Dump   70-297 기출문제

NO.8 You are designing a forest and domain structure to address the concerns of Contoso, Ltd., and to meet
the business and technical requirements. You want to use the minimum number of domains and forests
that are required. Which domain structure should you use?
A.one forest and two domains
B.one forest and three domains
C.one forest and four domains
D.two forests and three domains
E.two forests and four domains
Answer: E

Microsoft   70-297 후기   70-297 인증   70-297 자격시험   70-297 IT자격증시험

2013년 7월 27일 토요일

Microsoft 070-542-VB 070-502-VB 70-536-VB 70-561-VB 최신덤프

Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB시험은 인기있는 IT자격증을 취득하는데 필요한 국제적으로 인정받는 시험과목입니다. Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB시험을 패스하려면 ITExamDump의Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB덤프로 시험준비공부를 하는게 제일 좋은 방법입니다. ITExamDump덤프는 IT전문가들이 최선을 다해 연구해낸 멋진 작품입니다. Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB덤프구매후 업데이트될시 업데이트버전을 무료서비스료 제공해드립니다.


ITExamDump 의 Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB덤프는Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB시험에 도전장을 던진 분들이 신뢰할수 있는 든든한 길잡이 입니다. Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB시험대비 덤프뿐만아니라 다른 IT인증시험에 대비한 덤프자료도 적중율이 끝내줍니다. Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB시험이나 다른 IT인증자격증시험이나ITExamDump제품을 사용해보세요.투자한 덤프비용보다 훨씬 큰 이득을 보실수 있을것입니다.


인터넷에는Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB시험대비공부자료가 헤아릴수 없을 정도로 많습니다.이렇게 많은Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB공부자료중 대부분 분들께서 저희ITExamDump를 선택하는 이유는 덤프 업데이트가 다른 사이트보다 빠르다는 것이 제일 큰 이유가 아닐가 싶습니다. ITExamDump의 Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB덤프를 구매하시면 덤프가 업데이트되면 무료로 업데이트된 버전을 제공받을수 있습니다.


ITExamDump의Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB덤프공부가이드에는Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB시험의 가장 최신 시험문제의 기출문제와 예상문제가 정리되어 있어Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB시험을 패스하는데 좋은 동반자로 되어드립니다. Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB시험에서 떨어지는 경우Microsoft인증 070-542-VB 070-502-VB 70-536-VB 70-561-VB덤프비용전액 환불신청을 할수 있기에 보장성이 있습니다.시험적중율이 떨어지는 경우 덤프를 빌려 공부한 것과 같기에 부담없이 덤프를 구매하셔도 됩니다.


시험 번호/코드: 070-542-VB

시험 이름: Microsoft (MS Office SharePoint Server 2007-Application Development)

시험 번호/코드: 070-502-VB

시험 이름: Microsoft (TS: MS.NET Frmewrk3.5, Wndws Presentation Fndation App Dev)

시험 번호/코드: 70-536-VB

시험 이름: Microsoft (TS:MS.NET Framework 2.0-Application Develop Foundation)

시험 번호/코드: 70-561-VB

시험 이름: Microsoft (TS: MS .NET Framework 3.5, ADO.NET Application Development)

ITExamDump 는 아주 우수한 IT인증자료사이트입니다. 우리ITExamDump에서 여러분은Microsoft 070-542-VB 070-502-VB 70-536-VB 70-561-VB인증시험관련 스킬과시험자료를 얻을수 있습니다. 여러분은 우리ITExamDump 사이트에서 제공하는Microsoft 070-542-VB 070-502-VB 70-536-VB 70-561-VB관련자료의 일부분문제와답등 샘플을 무료로 다운받아 체험해볼 수 있습니다. 그리고ITExamDump에서는Microsoft 070-542-VB 070-502-VB 70-536-VB 70-561-VB자료구매 후 추후 업데이트되는 동시에 최신버전을 무료로 발송해드립니다. 우리는Microsoft 070-542-VB 070-502-VB 70-536-VB 70-561-VB인증시험관련 모든 자료를 여러분들에서 제공할 것입니다. 우리의 IT전문 팀은 부단한 업계경험과 연구를 이용하여 정확하고 디테일 한 시험문제와 답으로 여러분을 어시스트 해드리겠습니다.


070-502-VB 덤프무료샘플다운로드하기: http://www.itexamdump.com/070-502-VB.html


NO.1 You are creating a Windows Presentation Foundation application.
You create a window for the application. The application contains an audio file named
AudioFileToPlay.wav.
You need to ensure that the following requirements are met:
The audio file is played each time you click the client area of the window.
The window provides optimal performance when the audio file is being played.
What should you do?
A. Add the following XAML line of code to the window.
<MediaElement Source="AudioFileToPlay.wav" />
B. Add the following code segment to the window constructor method in the code-behind file.
Dim player As New SoundPlayer()
player.SoundLocation = "AudioFileToPlay.wav"
player.Play()
C. Add the following code segment to the window MouseDown method in the code-behind file.
Dim player As New MediaElement()
player.Source = New Uri("AudioFileToPlay.wav", UriKind.Relative)
player.LoadedBehavior = MediaState.Manual
player.Play()
D. Add the following XAML code fragment to the window.
<Window.Triggers>
<EventTrigger RoutedEvent="Window.MouseDown">
<EventTrigger.Actions>
<SoundPlayerAction Source="AudioFileToPlay.wav"/>
</EventTrigger.Actions>
</EventTrigger>
</Window.Triggers>
Answer: D

Microsoft최신덤프   070-502-VB   070-502-VB최신덤프   070-502-VB

NO.2 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The XAML page for the application will display employee information from an XML file. The following code
fragment is an excerpt from the XML file.
<Employee>
<Manager FirstName="Adam" LastName="Barr" Photo="E1.jpg"/>
<Engineer FirstName="Mu" LastName="Han" Photo="E2.jpg"/>
...
</Employee>
The file is exposed as a resource named employees.
You add the following templates under the Window.Resources element.
<DataTemplate x:Key="Manager">
<Image Source="{Binding XPath=@Photo}" Height="50"/>
</DataTemplate>
<DataTemplate x:Key="Engineer">
<Image Source="{Binding XPath=@Photo}" Height="40"/>
</DataTemplate>
You need to ensure that the selection of templates is dependent on the XML element being rendered.
Which two tasks should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following ListBox control to the XAML code fragment for the window.
<ListBox ItemsSource="{Binding
Source={StaticResource employees}, XPath=/Employee/*}"/>
B. Add the following template to the Windows.Resources element.
<HierarchicalDataTemplate x:Key="Employee" ItemsSource=
"{Binding XPath=/Employee/*}">
<TextBlock Text="Employees" FontSize="20" />
</HierarchicalDataTemplate>
C. Add the following template to the Windows.Resources element.
<HierarchicalDataTemplate x:Key="Employee" ItemsSource=
"{Binding XPath=*}">
<TextBlock Text="Employees" FontSize="20" />
</HierarchicalDataTemplate>
D. Add the following ListBox control to the XAML code fragment for the page.
<ListBox ItemsSource="{Binding Source=
{StaticResource employees}, XPath=/Employee/*}">
<ListBox.ItemTemplateSelector>
<local:EmployeeTemplateSelector
xmlns:local="clr-namespace:AppNamespace"/>
</ListBox.ItemTemplateSelector>
</ListBox>
E. Add the following class to the code-behind file.
Public Class EmployeeTemplateSelector
Inherits DataTemplateSelector
Public Overloads Overrides Function _
SelectTemplate(ByVal item As Object, _
ByVal container As DependencyObject) As DataTemplate
Dim data As XmlElement = TryCast(item, XmlElement)
Return TryCast(DirectCast(container, _
FrameworkElement).FindResource(data.LocalName), DataTemplate)
End Function
End Class
Answer: D AND E

Microsoft dumps   070-502-VB   070-502-VB최신덤프   070-502-VB   070-502-VB

NO.3 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You create a window for the application.
You need to ensure that the following requirements are met:
An array of strings is displayed by using a ListBox control in a two-column format.
The data in the ListBox control flows from left to right and from top to bottom.
What should you do?
A. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="2"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following VB.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
B. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
C. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myListView.ItemsSource = arrayOfString
D. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
</Grid>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
Answer: A

Microsoft   070-502-VB   070-502-VB최신덤프   070-502-VB기출문제   070-502-VB

NO.4 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You add a CommandBinding element to the Window element. The command has a keyboard gesture
CTRL+H. The Window contains the following MenuItem control.
<MenuItem Header="Highlight Content"
Command="local:CustomCommands.Highlight" />
You need to ensure that the MenuItem control is disabled and the command is not executable when the
focus shifts to a TextBox control that does not contain any text.
What should you do?
A. Set the IsEnabled property for the MenuItem control in the GotFocus event handler for the TextBox
controls.
B. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
ByVal e As CanExecuteRoutedEventArgs)
Dim txtBox As TextBox = CType(sender, TextBox)
e.CanExecute = (txtBox.Text.Length > 0)
End Sub
C. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
ByVal e As CanExecuteRoutedEventArgs)
Dim txtBox As TextBox
txtBox = CType(e.Source, TextBox)
e.CanExecute = (txtBox.Text.Length > 0)
End Sub
D. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
ByVal e As CanExecuteRoutedEventArgs)
Dim Menu As MenuItem = CType(e.Source, MenuItem)
Dim txtBox As TextBox = CType(Menu.CommandTarget, TextBox)
Menu.IsEnabled = (txtBox.Text.Length > 0)
End Sub
Answer: C

Microsoft최신덤프   070-502-VB   070-502-VB기출문제   070-502-VB최신덤프   070-502-VB   070-502-VB dumps

NO.5 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5. Your project contains a folder named Data.
You add a .MP3 file named song.mp3 in the Data folder. You set the Build Action property of the
application to Resource.
You need to access the .MP3 file from one of the application classes.
Which code segment should you use?
A. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetContentStream(uri)
Dim stream As Stream = sri.Stream
B. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.LoadComponent(uri)
Dim stream As Stream = sri.Stream
C. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetRemoteStream(uri)
Dim stream As Stream = sri.Stream
D. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetResourceStream(uri)
Dim stream As Stream = sri.Stream
Answer: D

Microsoft시험문제   070-502-VB   070-502-VB   070-502-VB

NO.6 You are converting a Windows Forms application to a Windows Presentation Foundation (WPF)
application. You use Microsoft .NET Framework 3.5 to create the WPF application.
The WPF application will reuse 30 forms of the Windows Forms application.
The WPF application contains the following class definition.
Public Class OwnerWindow
Implements System.Windows.Forms.IWin32Window
Private handle_Renamed As IntPtr
Public Property Handle() As IntPtr _
Implements System.Windows.Forms.IWin32Window.Handle
Get
Return handle_Renamed
End Get
Set(ByVal value As IntPtr)
handle_Renamed = value
End Set
End Property
End Class
You write the following code segment in the WPF application. (Line numbers are included for reference
only.)
01 Public Function LaunchWindowsFormsDialog(ByVal dialog As _
02 System.Windows.Forms.Form, ByVal wpfParent As Window) As _
03 System.Windows.Forms.DialogResult
04 Dim helper As New
05 System.Windows.Interop.WindowInteropHelper(wpfParent)
07 Dim owner As New OwnerWindow()
08
09 End Function
You need to ensure that the application can launch the reusable forms as modal dialogs.
Which code segment should you insert at line 08?
A. owner.Handle = helper.Owner
Dim db As New System.Windows.Forms.DialogResult()
Return db
B. owner.Handle = helper.Owner
Return dialog.ShowDialog(owner)
C. owner.Handle = helper.Owner
Dim result As Nullable(Of Boolean) = wpfParent.ShowDialog()
If result.HasValue Then
Return If(result.Value, System.Windows.Forms.DialogResult.OK, _
System.Windows.Forms.DialogResult.Cancel)
Else
Return System.Windows.Forms.DialogResult.Cancel
End If
D. owner.Handle = helper.Handle
Dim result As Nullable(Of Boolean) = wpfParent.ShowDialog()
If result.HasValue Then
Return If(result.Value, System.Windows.Forms.DialogResult.OK, _
System.Windows.Forms.DialogResult.Cancel)
Else
Return System.Windows.Forms.DialogResult.Cancel
End If
Answer: B

Microsoft   070-502-VB   070-502-VB시험문제   070-502-VB dumps   070-502-VB   070-502-VB dumps

NO.7 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application uses several asynchronous operations to calculate data that is displayed to the user. An
operation named tommorowsWeather performs calculations that will be used by other operations.
You need to ensure that tommorowsWeather runs at the highest possible priority.
Which code segment should you use?
A. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Normal, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
B. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.DataBind, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
C. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Send, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
D. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Render, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
Answer: C

Microsoft   070-502-VB덤프   070-502-VB시험문제

NO.8 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You include functionality in the application to troubleshoot the window behavior.
You need to display a list of UI elements at a position in the window that is decided by the mouse click.
You also need to ensure that the list of elements is displayed in a message box.
Which code segment should you include in the code-behind file?
A. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
controlsToDisplay = CType(sender, UIElement).ToString()
MessageBox.Show(controlsToDisplay)
End Sub
B. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
For i = 0 To VisualChildrenCount - 1
controlsToDisplay += GetVisualChild(i).ToString() + "\r\n"
Next
MessageBox.Show(controlsToDisplay)
End Sub
C. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
Dim myVisual As Visual()
For i = 0 To VisualTreeHelper.GetChildrenCount(CType(sender, _
Visual)) - 1
myVisual(i) = CType(VisualTreeHelper.GetChild(CType(sender, _
Visual), i), Visual)
controlsToDisplay += myVisual.GetType().ToString() + "\r\n"
Next
MessageBox.Show(controlsToDisplay)
End Sub
D. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
Dim pt As Point = e.GetPosition(Me)
VisualTreeHelper.HitTest(Me, Nothing, _
New HitTestResultCallback(AddressOf HitTestCallback), _
New PointHitTestParameters(pt))
MessageBox.Show(controlsToDisplay)
End Sub
Private Function HitTestCallback(ByVal result As HitTestResult) As _
HitTestResultBehavior
controlsToDisplay += result.VisualHit.GetType().ToString() + "\r\n"
Return HitTestResultBehavior.Continue
End Function
Answer: D

Microsoft   070-502-VB   070-502-VB시험문제   070-502-VB   070-502-VB dumps

NO.9 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application has a window that programatically displays an image. The window contains a grid named
theGrid.
The window displays images in their actual size. You want the images to be 200 pixels wide. You write the
following code segment.
01 Dim theImage As New Image()
02 theImage.Width = 200
03 Dim theBitmapImage As New BitmapImage()
04
05 theImage.Source = theBitmapImage
06 theGrid.Children.Add(theImage)
You need to ensure that the application meets the following requirements:
The window uses the least amount of memory to display the image.
The image is not skewed.
Which code segment should you insert at line 04?
A. theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.DecodePixelWidth = 200
B. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage. End Init()
C. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.DecodePixelWidth = 200
theBitmapImage. End Init()
D. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage. End Init()
theBitmapImage.DecodePixelWidth = 200
theBitmapImage.DecodePixelHeight = 200
Answer: C

Microsoft   070-502-VB   070-502-VB dumps

NO.10 You have created a Windows Presentation Foundation application by using Microsoft .NET Framework

NO.11 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You plan to use the application to preview video files.
You write the following XAML code fragment.
<Window
x:Class="myClass" xmlns=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="myWindow" Height="300" Width="300">
<StackPanel Background="Black">
<StackPanel HorizontalAlignment="Center"
Orientation="Horizontal">
<Button Name="btnPlay" Margin="10" Content="Play" />
</StackPanel>
</StackPanel>
</Window>
You need to ensure that the application plays only the first 10 seconds of a video that you want to preview.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement" Stretch="Fill" />
B. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement"
Source="MediaFileSelected.wmv" Stretch="Fill" />
C. Create the following method in the code-behind file.
Public Sub PlayMedia(ByVal sender As Object, _
ByVal args As RoutedEventArgs)
myMediaElement.Play()
End Sub
D. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline Source="MediaFileSelected.wmv"
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
E. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
Answer: A AND D

Microsoft자격증   070-502-VB pdf   070-502-VB시험문제   070-502-VB인증   070-502-VB최신덤프

NO.12 You create a form by using Windows Presentation Foundation and Microsoft .NET Framework 3.5. The
form contains a status bar.
You plan to add a ProgressBar control to the status bar.
You need to ensure that the ProgressBar control displays the progress of a task for which you cannot
predict the completion time.
Which code segment should you use?
A. progbar.IsIndeterminate = True
B. progbar.IsIndeterminate = False
C. progbar.HasAnimatedProperties = True
D. progbar.HasAnimatedProperties = False
Answer: A

Microsoft   070-502-VB시험문제   070-502-VB   070-502-VB   070-502-VB자격증

NO.13 You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET
Framework 3.5.
The application contains a window that programatically displays an image. The window contains a Grid
control named theGrid. You write the following code segment. (Line numbers are included for reference
only.)
09 theGrid.Children.Add(theImage);
01 Dim theImage As New Image()
02 theImage.Width = 200
03 Dim theBitmapImage As New BitmapImage()
04 theBitmapImage.BeginInit()
05 theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
06 theBitmapImage.DecodePixelWidth = 200
07 theBitmapImage.EndInit()
08
09 theGrid.Children.Add(theImage)
You need to crop an elliptical region of the image such that the ellipse is centered at the location X=75
and Y=50.
Which code segment should you insert at line 08?
A. Dim croppedBitmap As New CroppedBitmap(theBitmapImage, _
New Int32Rect(75, 50, 105, 50))
theImage.Source = theBitmapImage
B. Dim croppedBitmap As New CroppedBitmap()
croppedBitmap.Source = theBitmapImage
croppedBitmap.SourceRect = New Int32Rect(75, 50, 105, 50)
theImage.Source = theBitmapImage
C. theImage.Source = theBitmapImage
Dim clipGeometry As New EllipseGeometry(New Point(75, 50), 50, 25)
theImage.Clip = clipGeometry
D. theImage.Source = theBitmapImage
Dim clipGeometry As New EllipseGeometry()
clipGeometry.Center = New Point(75, 50)
theImage.Clip = clipGeometry
Answer: C

Microsoft자료   070-502-VB   070-502-VB dump   070-502-VB pdf

NO.14 You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET
Framework 3.5.
The WPF application has a Grid control named rootGrid.
You write the following XAML code fragment.
<Window x:Class="MCP.HostingWinFormsControls"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/
presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="HostingWinFormsControls"
Loaded="Window_Loaded">
<Grid x:Name="rootGrid">
</Grid>
</Window>
You need to ensure that each time the WPF window opens, a Windows Forms control named
MyCustomFormsControl is added to rootGrid.
Which code segment should you use?
A. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim host As New WindowsFormsHost()
Dim formsControl As New MyCustomFormsControl()
host.Child = formsControl;
rootGrid.Children.Add(host);
End Sub
B. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim host As New ElementHost()
Dim formsControl As New MyCustomFormsControl()
host.Child = formsControl;
rootGrid.Children.Add(host);
End Sub
C. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim formsControl As New MyCustomFormsControl()
formsControl.CreateControl()
Dim target As New HwndTarget(formsControl.Handle)
Dim formsElement As UIElement = TryCast(target.RootVisual, _
UIElement)
rootGrid.Children.Add(formsElement)
End Sub
D. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim formsControl As New MyCustomFormsControl()
formsControl.CreateControl()
Dim source As HwndSource = HwndSource.FromHwnd(formsControl.Handle)
Dim formsElement As UIElement = TryCast(source.RootVisual, _
UIElement)
rootGrid.Children.Add(formsElement)
End Sub
Answer: A

Microsoft인증   070-502-VB기출문제   070-502-VB자격증

NO.15 You are creating Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application has a TreeView class that builds the directory tree for a given directory.
You write the following class that represents a directory.
Class Folder
Public ReadOnly Property Name() As String
Get
...
End Get
End Property
Public ReadOnly Property Subfolders() As List(Of Folder)
Get
...
End Get
End Property
End Class
You write the following code segment. (Line numbers are included for reference only.)
01 Dim tree As New TreeView()
02 Dim folder As New Folder("C:\")
03
04 Dim labelFactory As New
05 FrameworkElementFactory(GetType(TextBlock))
06
07 template.VisualTree = labelFactory
08 tree.ItemTemplate = template
09 tree.ItemsSource = folder.Subfolders
You need to ensure that the TreeView class displays nodes that correspond to the child folders of the C:\
drive.
Which code segments should you insert at lines and 06?
A. 1. Insert the following code segment at line 03.
Dim template As New HierarchicalDataTemplate(folder)
template.ItemsSource = New Binding("Subfolders")
2. Insert the following code segment at line 06.
labelFactory.SetBinding(TextBlock.TextProperty, New Binding("Name"))
B. 1. Insert the following code segment at line 03.
Dim template As New HierarchicalDataTemplate(GetType(Folder))
template.ItemsSource = New Binding("Subfolders")
2. Insert the following code segment at line 06.
labelFactory.SetBinding(TextBlock.TextProperty, New Binding("Name"))
C. 1. Insert the following code segment at line 03.
Dim template As New HierarchicalDataTemplate("Folder")
template.ItemsSource = New Binding("Name")
2. Insert the following code segment at line 06.
labelFactory.SetBinding(TextBlock.TextProperty, _
New Binding("Subfolders"))
D. 1. Insert the following code segment at line 03.
Dim template As New HierarchicalDataTemplate("Folder")
template.ItemsSource = New Binding("Folder.Subfolders")
2. Insert the following code segment at line 06.
labelFactory.SetBinding(TextBlock.TextProperty, _
New Binding("Folder.Name"))
Answer: B

Microsoft   070-502-VB dump   070-502-VB자격증

NO.16 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application will display documents by using an instance of the FlowDocumentPageViewer class. The
instance is named fdpv. Users can highlight and annotate the content of the documents.
You need to ensure that annotations made to a document are saved and rendered when the document is
displayed again.
Which code segment should you use?
A. Protected Sub OnTextInput(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = _
New XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
B. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
C. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = New _
XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
D. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = New _
XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Disable()
AnnotationStream.Close()
End If
End Sub
Answer: C

Microsoft덤프   070-502-VB   070-502-VB dump   070-502-VB   070-502-VB덤프   070-502-VB

NO.17 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You write the following code segment (Line numbers are included for reference only).
01 Dim content As Object
02 Dim fileName As String = "theFile"
03 Using xamlFile As New FileStream(fileName & ".xaml", _
04 FileMode.Open, FileAccess.Read)
06 content = TryCast(XamlReader.Load(xamlFile), Object)
07 End Using
08 Using container As Package = Package.Open(fileName & ".xps", _
09 FileMode.Create)10 11 End Using
You need to ensure that the following requirements are met:
The application converts an existing flow document into an XPS document.
The XPS document is generated by using the flow document format.
The XPS document has the minimum possible size.
Which code segment should you insert at line 10?
A. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As XpsSerializationManager = New _
System.Windows.Xps.XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.SaveAsXaml(paginator)
End Using
B. Using xpsDoc As New XpsDocument(container, _CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.Commit()
End Using
C. Using xpsDoc As New XpsDocument(container, _CompressionOption.Maximum)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
D. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
Answer: C

Microsoft덤프   070-502-VB덤프   070-502-VB덤프   070-502-VB   070-502-VB자격증

NO.18 5. The application, named EnterpriseApplication.exe, runs over the network.
You add the WindowSize parameter and the WindowPosition parameter to the Settings.settings file by
using the designer at the User Scope Level. The dimensions and position of the window are read from the
user configuration file.
The application must retain the original window size and position for users executing the application.
You need to ensure that the following requirements are met:
The window dimensions for each user are saved in the user configuration file.
User settings persist when a user exits the application.
Which configuration setting should you use?
A. Private Sub OnClosing(ByVal sender As Object, ByVal e _
As System.ComponentModel.CancelEventArgs)
My.Settings.Default.WindowPosition = New Point(Me.Left, Me.Top)
My.Settings.Default.WindowSize = New Size(Me.Width, Me.Height)
My.Settings.Default.Save()
End Sub
B. Private Sub OnClosing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim appKey As RegistryKey = _
Registry.CurrentUser.CreateSubKey("Software\EnterpriseApplication")
Dim settingsKey As RegistryKey = _
appKey.CreateSubKey("WindowSettings")
Dim windowPositionKey As RegistryKey = _
settingsKey.CreateSubKey("WindowPosition")
Dim windowSizeKey As RegistryKey = _
settingsKey.CreateSubKey("WindowSize")
windowPositionKey.SetValue("X", Me.Left)
windowPositionKey.SetValue("Y", Me.Top)
windowSizeKey.SetValue("Width", Me.Width)
windowSizeKey.SetValue("Height", Me.Height)
End Sub
C. Private Sub OnClosing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim doc As New System.Xml.XmlDocument()
doc.Load("EnterpriseApplication.exe.config")
Dim nodePosition As System.Xml.XmlNode = _
doc.SelectSingleNode("//setting[@name='WindowPosition']")
nodePosition.ChildNodes(0).InnerText = String.Format("{0},{1}", _
Me.Left, Me.Top)
Dim nodeSize As System.Xml.XmlNode = _
doc.SelectSingleNode("//setting[@name='WindowSize']")
nodeSize.ChildNodes(0).InnerText = String.Format("{0},{1}", _
Me.Width, Me.Height)
doc.Save("UserConfigDistractor2.exe.config")
End Sub
D. Private Sub Window_Closing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim sw As New StreamWriter("EnterpriseApplication.exe.config", True)
sw.WriteLine("<EnterpriseApplication.Properties.Settings>")
sw.WriteLine("<setting name=""WindowSize"" serializeAs=""String"">")
sw.WriteLine(String.Format("<value>{0},{1}</value>", Me.Width, _
Me.Height))
sw.WriteLine("</setting>")
sw.WriteLine("<setting name=""WindowPosition"" _
serializeAs=""String"">")
sw.WriteLine(String.Format("<value>{0},{1}</value>", Me.Left, _
Me.Top))
sw.WriteLine("</setting>")
sw.WriteLine("</UserConfigProblem.Properties.Settings>")
sw.Close()
End Sub
Answer: A

Microsoft덤프   070-502-VB최신덤프   070-502-VB시험문제   070-502-VB기출문제
3. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application defines a BrowserWindow class. Each instance of the BrowserWindow class allows the
user to browse a Web site in a separate window. When a new browser window is opened, the user is
redirected to a predefined URL.
You write the following code segment.
01 Private Sub OpenNewWindow(ByVal sender As Object, _
02 ByVal e As RoutedEventArgs)
03 Dim newWindowThread As New Thread(New _
04 ThreadStart(AddressOf NewThreadProc))
05
06 newWindowThread.Start()
07 End Sub
08 Private Sub NewThreadProc()
09 10 End Sub
You need to ensure that the following requirements are met:
The main window of the application is not blocked when an additional browser window is created.
The application completes execution when the main window of the application is closed.
What should you do?
A. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
newWindow.Show()
Dim app As New Application()
app.Run(newWindow)
B. Insert the following code segment at line 05.
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
newWindowThread.SetApartmentState(ApartmentState.STA)
Dim newWindow As New BrowserWindow()
newWindow.Show()
Dim app As New Application()
app.Run(newWindow)
C. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = False
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
System.Windows.Threading.Dispatcher.Run()
newWindow.Show()
D. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
newWindow.Show()
System.Windows.Threading.Dispatcher.Run()
Answer: D

Microsoft dump   070-502-VB   070-502-VB기출문제   070-502-VB

NO.19 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application contains a data source and a TextBox control named txtUnitPrice. The Text property of
the txtUnitPrice control is bound to the data source by using two-way binding.
You write the following code segment.
01 Private Sub OverridePrice(ByVal newPrice As Decimal)
02
03 txtUnitPrice.Text = newPrice
04 End Sub
You need to ensure that after the OverridePrice method is called, changes to the data source do not
propagate to txtUnitPrice.
Which code segment should you insert at line 02?
A. txtUnitPrice.Clear()
B. txtUnitPrice.DataContext = Nothing
C. BindingOperations.ClearBinding(txtUnitPrice, TextBox.TextProperty)
D. Dim binding As Binding = BindingOperations.GetBinding(txtUnitPrice, _
TextBox.TextProperty)
binding.NotifyOnSourceUpdated = False
Answer: C

Microsoft   070-502-VB시험문제   070-502-VB   070-502-VB

NO.20 You are creating a Windows Presentation Foundation application for a car dealer. You use
Microsoft .NET Framework 3.5 to create the application.
You are creating a window that will display a list of available cars. The list will be sorted on the basis of the
Make property.
You try to run the XAML code fragment for the window. The following section of the code fragment does
not compile. (Line numbers are included for reference only.)
01 <Window.Resources>
02 ...
03 <CollectionViewSource x:Key="vw"
04 Source="{StaticResource cars}">
05 <CollectionViewSource.SortDescriptions>
06 <SortDescription PropertyName="Make" />
07 </CollectionViewSource.SortDescriptions>
08 </Window.Resources>
You receive the following error message: "Type 'SortDescriptions' was not found."
You need to ensure that the XAML code fragment sorts the list of available cars correctly.
What should you do?
A. Replace line of the XAML code fragment with the following code fragment.
<componentModel:SortDescription PropertyName="Make" xmlns:componentModel=
"clr-namespace:System.ComponentModel;assembly=System"/>
B. Replace line of the XAML code fragment with the following code fragment.
<componentModel:SortDescription PropertyName="Make" xmlns:componentModel=
"clr-namespace:System.ComponentModel;assembly=WindowsBase"/>
C. Add the following code segment immediately after the IntializeComponent method call in the
constructor.
Dim view As BindingListCollectionView = _
TryCast(CollectionViewSource.GetDefaultView(lst.ItemsSource), _
BindingListCollectionView)
If view IsNot Nothing Then
view.SortDescriptions.Add(New SortDescription("Make", _
ListSortDirection.Ascending))
End If
D. Remove lines through from the XAML code fragment. Add the following code segment
immediately after the InitializeComponent method call in the constructor.
Dim view As BindingListCollectionView = _
TryCast(CollectionViewSource.GetDefaultView(lst.ItemsSource), _
BindingListCollectionView)
If view IsNot Nothing Then
view.SortDescriptions.Add(New SortDescription("Make", _
ListSortDirection.Ascending))
End If
Answer: B

Microsoft pdf   070-502-VB   070-502-VB   070-502-VB최신덤프   070-502-VB