Question: 1
You work as the developer in an IT company. Recently your company has a big customer. The customer runs a large supermarket chain. You're appointed to provide technical support for the customer. Now according to the customer requirement, you are creating an auditing application to display the trusted ClickOnce applications. The applications are installed on a computer. Now you need the auditing application to display the origin of each trusted application. In the options below, which code segment should you use?
A. ApplicationTrustCollection trusts;trusts = ApplicationSecurityManager.UserApplicationTrusts; foreach (ApplicationTrust trust in trusts) { Console.WriteLine(trust.ToString());}
B. ApplicationTrustCollection trusts;trusts = ApplicationSecurityManager.UserApplicationTrusts; foreach (ApplicationTrust trust in trusts) { Console.WriteLine(trust.ExtraInfo.ToString());}
C. ApplicationTrustCollection trusts;trusts = ApplicationSecurityManager.UserApplicationTrusts; foreach (object trust in trusts) { Console.WriteLine(trust.ToString());}
D. ApplicationTrustCollection trusts;trusts = ApplicationSecurityManager.UserApplicationTrusts; foreach (ApplicationTrust trust in trusts) { Console.WriteLine(trust.ApplicationIdentity.FullName);}
Answer: D
Question: 2
You work as the developer in an IT company. Recently your company has a big customer. The customer runs a large supermarket chain. You're appointed to provide technical support for the customer. There's an SQL query that takes one minute to execute. You execute the SQL query asynchronously by using the following code:
AsyncResult ar = cmd.BeginExecuteReader();
When you're executing the SQL query is executing, you have to execute a method named DoWork(). It takes one second for the method to execute. When the SQL query is executing, DoWork() must run as many times as possible. In the options below, which code segment should you use?
A. while (ar.AsyncWaitHandle == null) { DoWork();}dr = cmd.EndExecuteReader(ar);
B. while (Thread.CurrentThread.ThreadState == ThreadState.Running) { DoWork();}dr cmd.EndExecuteReader(ar);
C. while (!ar.IsCompleted) { DoWork();}dr = cmd.EndExecuteReader(ar);
D. while (!ar.AsyncWaitHandle.WaitOne()) { DoWork();}dr = cmd.EndExecuteReader(ar);
Answer: C
It's a good news to you that our site provides you everything you need to get your certification, let's take Microsoft 70-559(UPGRADE: MCAD Skills to MCTS Web Apps Using MS .NET Frwrk) for example. We all know it's a hot exam in IT industry, many people fail in the test after a long time hard working. Do you know why? They just spend time on the things that are unrelated!Best wishes for your Microsoft certification and your bright future!
0 件のコメント:
コメントを投稿