当前位置:MCPD(70-536)题库

问题:

[单选] 您正在开发的应用程序使用的队列名为 MyQueue 的类对象。此队列的类对象将用于存储在应用程序运行时,用户发送的消息。您想在队列开始访问消息,在处理用户的消息,而不删除它。你应该做什么?()

A . 使用MyQueue对象Enqueue方法
B . 使用MyQueue对象的Contains方法
C . 使用MyQueue对象的Dequeue方法
D . 使用MyQueue对象的Peek方法。

You have an enterprise subordinate certification authority (CA). The CA issues smart card logon  certificates.   Users are required to log on to the domain by using a smart card.   Your companys corporate security policy states that when an employee resigns, his ability to log on to the network must be immediately revoked.   An employee resigns.   You need to immediately prevent the employee from logging on to the domain.  What should you do() Revoke the employees smart card certificate.。 Disable the employees Active Directory account.。 Publish a new delta certificate revocation list (CRL).。 Reset the password for the employees Active Directory account.。 “二十八字史论” Your company uses Active Directory integrated DNS. USers require access to the internet. You run a network capture. You notice the DNS server is sending DNS name resolution queries to a server named f. root-servers.net.You need to prevent the DNS server from sending queries to f.root-servers.net The server must be able to resolve names for internet hosts. Which two actions should you perform? ()  Enable forwarding to your ISPs DNS servers.。 Disable the root hints on the DNS server。 Disable the netmask ordering option on the DNS server。 Configure Reverse Lookup zones for the IP subnets on the network。 Which of the following would provide good baseline documentation to have on hand whenanalyzing potential problems?(Choose all that apply.)() User authentication ID and password。 User profile。 Output of debug。 Output of show interface。 Result of ping。 Output of show process cpu。 婴儿眼睛发育特点不包括()。 眼睛发育不完善。 眼睛调节能力强。 眼球前后径长。 眼睛容易近视。 您正在开发的应用程序使用的队列名为 MyQueue 的类对象。此队列的类对象将用于存储在应用程序运行时,用户发送的消息。您想在队列开始访问消息,在处理用户的消息,而不删除它。你应该做什么?()
参考答案:

  参考解析

peek是用来确定你read的文件是否结束了,如果结束了会返回int型 -1 , 举个例子,你可以在输出每一行之前检查一下文件是否结尾,如果没结束就输出此行。 StreamReader sr = new StreamReader(@"c:\1.txt") while (sr.Peek() > -1) { Console.WriteLine(sr.ReadLine()); }

在线 客服