【正文】
ose the attribute that should be used on the method.。你正在運(yùn)行一個(gè)方法來調(diào)用COM組件,并且必須使用聲明性安全運(yùn)行時(shí),明確要求全面執(zhí)行堆棧審核。在允許任何呼叫者執(zhí)行方法之前,它們必須有對(duì)于COM互操作信任的必要級(jí)別。選擇應(yīng)該使用的方法屬性。A. Use this attribute: [SecurityPermission (SecurityAction::Demand,Flags=SecurityPermissionFlag::UnmanagedCode)]B. Use this attribute: [SecurityPermission (SecurityAction::LinkDemand,Flags=SecurityPermissionFlag::UnmanagedCode)]C. Use this attribute: [SecurityPermission (SecurityAction::Assert, Flags =SecurityPermissionFlag::UnmanagedCode)]D. Use this attribute: [SecurityPermission (SecurityAction::Deny,Flags =SecurityPermissionFlag::UnmanagedCode)]點(diǎn)評(píng):2 Question 26 You work as the application developer at . You are developing a new method that must encrypt confidential data. The method must use the Data Encryption Standard (DES) algorithm. Your new method takes these parameters:。你正在開發(fā)一個(gè)新方法,必須加密機(jī)密數(shù)據(jù)。該方法必須使用數(shù)據(jù)加密標(biāo)準(zhǔn)(DES)算法。你的新方法使用了這些參數(shù):1. A byte array, named message, that must be encrypted by applying the DES algorithm.一個(gè)叫message的字節(jié)數(shù)組,必須采用DES算法加密。2. A key, named key, which will be used to encrypt the data.密鑰,用于對(duì)數(shù)據(jù)進(jìn)行加密。3. The initialization vector, named iv.初始化容器,名為iv。Once the data is encrypted, it must be added to the MemoryStream object. Choose the code segment which will encrypt the specified data and add it to the MemoryStream object.一旦數(shù)據(jù)被加密,它必須被添加到MemoryStream對(duì)象中。選擇代碼段,將指定的數(shù)據(jù)進(jìn)行加密,并將其添加到MemoryStream對(duì)象。A. DES des = new DESCryptoServiceProvider ()。 = 。ICryptoTransform crypto = (key, iv)。MemoryStream cipherStream = new MemoryStream ()。CryptoStream cryptoStream = new CryptoStream (cipherStream, crypto,)。 (message, 0, )。B. DES des = new DESCryptoServiceProvider ()。ICryptoTransform crypto = (key, iv)。MemoryStream cipherStream = new MemoryStream ()。CryptoStream cryptoStream = new CryptoStream (cipherStream, crypto,)。 (message, 0, )。C. DES des = new DESCryptoServiceProvider ()。ICryptoTransform crypto = ()。MemoryStream cipherStream = new MemoryStream ()。CryptoStream cryptoStream = new CryptoStream (cipherStream, crypto,)。 (message, 0, )。D. DES des = new DESCryptoServiceProvider ()。ICryptoTransform crypto = (key, iv)。MemoryStream cipherStream = new MemoryStream ()。CryptoStream cryptoStream = new CryptoStream (cipherStream, crypto,)。 (message, 0, )。點(diǎn)評(píng):AB 第二行 調(diào)用了解密的的方法C 第二行 加密方法沒有傳參數(shù)2 Question 27 You work as the application developer at . uses Visual 2005 as its application development platform. You use a Windwos XP Professional client puter named Client01 as your development puter.You are developing a .NET Framework Windows Forms application on Client01. TheWindows Forms application will be used by regional offices of in various are required to customize the application so that the language, calendar and cultural conventions are changed based on the user39。s operating system settings. You additionally are required to identify the .Net Framework class that should be used for this requirement. What should you do?你在CER 。CER 。你使用 WindowsXP專業(yè)版客戶端名為Client01的計(jì)算機(jī)作為你的開發(fā)計(jì)算機(jī)。你在Client01的電腦上正在開發(fā)一個(gè)NET Framework 。該Windows窗體應(yīng)用程序?qū)⑹褂迷贑ER 。你需要定制的應(yīng)用程序,使語言,日歷和文化慣例的基礎(chǔ)上改變用戶的操作系統(tǒng)設(shè)置。 Framework類,應(yīng)該用這一要求。你應(yīng)該怎么做?A. The CultureInfo class should be used.B. The TextInfo class should be used.C. The DateTimeFormtaInfo should be used.D. The CharUnicodeInfo should be used.E. The RegionInfo should be used.點(diǎn)評(píng):CultureInfo表示文化類,定義了日歷、數(shù)字和日期的格式,以及和文化一起使用的排序字符串。2 Question28 You work as the application developer at . has its headquarters inHuston and a branch office in London.。,倫敦設(shè)有辦事處。You are developing a new application that will print a report. When the report is generated andprinted by users in the London branch office, the report must show the current date in theMexican Spanish format.你正在開發(fā)一款新的應(yīng)用程序,將打印報(bào)告。當(dāng)在倫敦分行的辦公人員生成并打印報(bào)表后,報(bào)告必須以墨西哥西班牙語格式顯示當(dāng)前日期。Which of the following code segments will acplish the task?下面的代碼段將完成任務(wù)嗎?A. DateTimeFormatInfo dtfi = new CultureInfo (esMX, false).DateTimeFormat。DateTime dt = new DateTime (, ,)。string dateString = ()。B. Calendar cal = new CultureInfo (esMX, false).Calendar。DateTime dt = new DateTime (, ,)。Strong dateString = ()。C. string dateString = GetMonthName ()。D. string dateString = (esMX)。點(diǎn)評(píng):B 2 Question 29 Which method illustrates how to retrieve information for the current culture of the application?哪一種方法演示了如何檢索應(yīng)用程序的當(dāng)前區(qū)域性的信息?(Choose all that apply.)(多項(xiàng)選擇。)A. Create a new instance of the CultureInfo class, and instantiate it with no values specified inthe constructor.創(chuàng)建CultureInfo類的新對(duì)象,指定無參的構(gòu)造函數(shù)初始化。B. Use the CurrentCulture property of the CurrentThread property of the Thread instance.CurrentCulture 獲取或設(shè)置當(dāng)前線程的區(qū)域性C. Create a new instance of the CultureInfo class, and use an invariant(不變) culture.創(chuàng)建CultureInfo類的新實(shí)例,并使用一個(gè)不變的文化D. Create an instance of the CultureInfo class using a specific culture, and check theCurrentCulture property.使用指定的文化創(chuàng)建CultureInfo類的一個(gè)實(shí)例,并查驗(yàn)CurrentCulture的屬性。點(diǎn)評(píng): Question 30 You work as the application developer at . You are creating a new application named at App01. App01 will be used for a business partner. The Company business partner has offices in Hong Kong. You must write the code segment which will show all negative currency values by using a minus sign.Choose the code segment which you should use.你在 。正在創(chuàng)建一個(gè)叫App01的新的應(yīng)用程序。 。本公司業(yè)務(wù)合作伙伴在香港設(shè)有辦事處。你必須寫代碼段:通過負(fù)號(hào)顯示所有的負(fù)貨幣值。選擇下面正確的代碼A. NumberFormatInfo culture = new CultureInfo (zhHK).NumberFormat。 = 1。return (C, culture)。B. NumberFormatInfo culture = new CultureInfo (zhHK).NumberFormat。 = 1。return (C, culture)。C. CultureInfo culture = new CultureInfo (zhHK)。return ((0), culture)。D. CultureInfo culture = new CultureInfo (zhHK)。return ((), culture)。點(diǎn)評(píng):NumberFormat 定義適合區(qū)域性的,顯示數(shù)字、貨幣和百分比的格式。NumberNegativePattern 獲取或設(shè)置負(fù)數(shù)值的格式模式CurrencyNegativePattern 獲取或設(shè)置負(fù)貨幣值的格式模式。3 Question 31 You work as the appl