|
Неправильные ответы в 70-316 TK .
|
|||
---|---|---|---|
#18+
Всем привет. Для начала я хочу выложить ответы в правильности которых я сомневаюсь. Прошу помочь мне в них. QUESTION NO: 49(part 2) You are debugging a financial application for TKGreenBack Inc. You notice that when blnOverdue changes the total charge is incorrect. You want execution to pause at a breakpoint if the value of a variable has changed. Which of the following actions should you perform to stop execution? (Select the best choice.) A. Set an assertion. B. Set a watch for the variable. C. Set a watch for the method which contains the variable. D. Use a Stop statement. E. Stop execution of the code immediately. F. Set a breakpoint with a condition. Answer: D Breakpoints are used to break execution while code is running in the Visual Studio .NET IDE. You can set conditions on breakpoints so that execution will pause only if a given condition is met. One of the conditions that you can set is whether a variable's value has changed. If the value has changed since the last time that the breakpoint was encountered, execution will stop on the line of code with the breakpoint that contains the variable. Setting a watch allows you to view the value of a variable as code executes. А вот мне кажется ответ F . Причем они здесь дали ответ B , а объяснения на ответ выглядят, как-будто они объясняют про ответ F . авторQUESTION NO: 34 You use Visual Studio .NET to create a Windows-based application called TestKingApp, that will be distributed to your customers. You add a setup project to your solution to create a distribution package. You deploy the distribution package on a test computer. However, you discover that the distribution package does not create a shortcut to your application on the Programs menu of the test computer. You need to modify your setup project to ensure that this shortcut will be available on your customers Programs menus. What should you do? A. Navigate to the User’s Programs Menu folder in the File System on Target Machine hierarchy. Add the primary output from your application. B. Navigate to the Application Folder folder in the File System on Target Machine hierarchy. Create a shortcut to your application and move the shortcut to the User’s Programs Menu folder in the same hierarchy. C. Navigate to the Install folder in the Customer Actions hierarchy. Create a custom action that adds the primary output from your application to the User’s Programs Menu folder. D. Navigate to the Install folder in the Custom Actions hierarchy. Create a custom action that adds a shortcut to your application’s executable file to the User’s Programs Menu folder. Answer: B Explanation: We use the File System Editor to create a shortcut to the Application in the Programs Menu folder in the File System on Target Machine hierarchy. Здесь у них ответ B, но объяснения, как будто ответ должен быть A. Понятно, что здесь надо выбрать между A и B . Но вот что? авторQUESTION NO: 96 You use Visual Studio .NET to create a Windows-based application named TestKingAccess. TestKingAccess will be used by five customer service representatives to access a central database. All five representatives use client computers that are connected to the company intranet. All client computers have Windows XP Professional and the .NET Framework installed. When you distribute TestKingAccess, you must ensure that it uses the smallest possible hard disk space on the client computers. What should you do? A. Copy your application to each client computer. Create a shortcut to your application on the desktop of each client computer. B. Copy your application to a shared folder on your company intranet. Create a shortcut to your application on the desktop of each client computer. C. Create a distribution package by using the Visual Studio .NET Setup Wizard. Exclude the dependency for the .NET Framework. Install the distribution package on each client computer. D. Create a distribution package by using the Visual Studio .NET Setup Wizard. Set the distribution package’s Compression property to Optimized for size. Install the distribution package on each client computer. Answer: A Explanation:We can simply copy the application to each client computer and manually create a shortcut to the application. Нам нужно, чтобы было использовано как можно меньше памяти, поэтому может ответ все-таки B ? Ведь приложение будет использовать только 5 клиентов. авторQUESTION NO: 3(part 2) You have recently upgraded your skills to a .Net software engineer. Which of the following debugging operations are not valid using Visual Basic .NET breakpoints? (Select all choices that are correct.) A. Stop execution at a specified line of code when that section of code is executed for the fifth time. B. Stop execution the instant that the value of a given variable changs. C. Stop execution at a specified line of code when the number of times that section of code has been executed is a multiple of 25. D. Stop execution at a specified line of code when a given expression evaluates to Stop. E. Stop execution the instant that the value of a variable changes to False. Answer: B, E Не могу понять. Мы же можем установить брэкпоинты используя условие has changed Так почему здесь B - это неправильный ответ? Мы может установить условие у брэкпоинта равным (!наша переменная) и выбрать is true option , так почему же ответ E не правильный? авторQUESTION NO: 7 You have written an application named SpaceUtilization that uses an assembly named MathLib to calculate vehicle space utilization for Consolidated Parcels. You install your application to the C:\Program Files\SpaceUtilization folder, and install the assembly to the C:\Program Files\MathLib folder. When you try to run the application, it fails with a TypeLoadException. Which of the following actions will not correct the problem? (Each choice represents a complete solution to the problem.) (Select 3 choices.) A. Uninstall the assembly and reinstall it to the C:\Program Files\SpaceUtilization folder. B. Add the MathLib assembly to the GAC. C. Edit the shortcut for the SpaceUtilization application and change the startup path to C:\Program Files\MathLib. D. Add the following entry to the startup section of the C:\Program Files\SpaceUtilization\SpaceUtilization.config file: <assemblyBinding xmlns="urn:schemas-Microsoft-com:asm:v1> <probing privatePath="..\MathLib"> </assemblyBinding> E. Add C:\Program Files\MathLib to the system path. F. Add the following entry to the runtime section of the C:\Program Files\SpaceUtilization\SpaceUtilization.exe.config file: <assemblyBinding xmlns="urn:schemas-Microsoft-com:asm:v1> <probing privatePath="..\MathLib"> </assemblyBinding> G. Uninstall the assembly and reinstall it to the C:\Windows\Microsoft.Net\Framework\MathLib folder. Answer: C, D, E, G В ответе как мне кажется действительно 4 ответа, но тогда почему сказано выбрать 3 ответа? авторQUESTION NO: 66 You use Visual Studio .NET to create a Windows Form named TestKingForm. You add a custom control named BarGraph, which displays numerical data. You create a second custom control named DataBar. Each instance of DataBar represents one data value in BarGraph. BarGraph retrieves its data from a Microsoft SQL Server database. For each data value that it retrieves, a new instance of DataBar is added to BarGraph. BarGraph also includes a Label control named DataBarCount, which displays the number of DataBar controls currently contained by BarGraph. You must add code to one of your custom controls to ensure that DataBarCount is always updated with the correct value. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two) A. Add the following code segment to the ControlAdded event handler for DataBar: this.DataBarCount.Text = this.Controls.Count; B. Add the following code segment to the ControlAdded event handler for DataBar: this.DataBarCount.Text = Parent.Controls.Count; C. Add the following code segment to the ControlAdded event handler for BarGraph: DataBarCount.Text = this.Controls.Count; D. Add the following code segment to the constructor for BarGraph: this.Parent.DataBarCount.Text = this.Controls.Count; E. Add the following code segment to the constructor for DataBar: this.Parent.DataBarCount.Text = this.Controls.Count; F. Add the following code segment to the AddDataPoint method of BarGraph: DataBarCount.Text = this.Controls.Count; Answer: C, E Почему E? Строкой this.Parent.DataBarCount.Text = this.Controls.Count; мы обращаемся к родителю, вытаскиваем у него DataBarCount.Text и почему то устанавливаем равным кол-ву элементов в коллекции дочернего компонента. А у дочернего компонента эта коллекция пуста. Поэтому как мне кажется в случае ответа E будет кол-во будет все время установлено все время в 0. Теперь не правильные ответы: QUESTION NO: 82 You use Visual Studio .NET to create a Windows-based application. The application includes a form named TestKing. You implement print functionality in TestKing by using the native .NET System Class Libraries. TestKing will print a packing list on tractor-fed preprinted forms. The packing list always consists of two pages. The bottom margin of page 2 is different from the bottom margin of page 1. You must ensure that each page is printed within the appropriate margins. What should you do? A. When printing page 2, set the bottom margin by using the PrintPageEventArgs object. B. When printing page 2, set the bottom margin by using the QueryPageSettingEventArgs object. C. Before printing, set the bottom margin of page 2 by using the PrintSetupDialog object. D. Before printing, set the bottom margin of page 2 by using the PrinterSettings object. Answer: A PrintPageEventArgs имеет свойства PageSettings и PageBounds, но они только для чтения. Поэтому ответ B. авторQUESTION NO: 89 You use Visual Studio .NET to create an accounting application called TestKingAccounting, which includes a function named CreditCardValidate. This function contains several dozen variables and objects. To debug CreditCardValidate, you create a breakpoint at the top of the function. You run the accounting application within the Visual Studio .NET IDE and step though the code for CreditCardValidate. You need to examine the contents of the variables and objects in scope on each line of code. However, you want to avoid seeing the contents of all variables and objects within CreditCardValidate. You also need to complete the debugging process as quickly as possible. What should you do? A. Use the Autos window. B. Use the Locals window. C. Use the QuickWatch window. D. From the Command window, print the contents of each variable that you want to examine by using the following code segment: ? <variablename> Answer: B Ответ A. И это неоспаримый факт. авторQUESTION NO: 54 You use Visual Studio .NET to develop a Microsoft Windows-based application. Your application contains a form named CustomerForm, which includes the following design-time controls: • SQLConnection object named TestKingConnection • SQLDataAdapter object named TestKingDataAdapter • DataSet object named CustomerDataSet • Five TextBox controls to hold the values exposed by CustomerDataSet • Button control named saveButton At design time you set the DataBindings properties of each TextBox control to the appropriate column in the DataTable object of CustomerDataSet. When the application runs, users must be able to edit the information displayed in the text boxes. All user changes must be saved to the appropriate database when saveButton is executed. The event handler for saveButton includes the following code segment: TestKingDataAdapter.Update(CustomerDataSet); You test the application. However, saveButton fails to save any values edited in the text boxes. You need to correct this problem. What should your application do? A. Call the InsertCommand method of TestKingDataAdapter. B. CALL THE Update method of TestKingDataAdapter and pass in TestKingConnection. C. Before calling the Update method, ensure that a row position change occurs in CustomerDataSet. D. Reestablish the database connection by calling the Open method of TestKingConnection. Answer: B Дело в том, что такой перегруженной ф-ии, берущей такие параметры нет. Удивительно, что в TestKing'e они не подумали, прежде чем написать такую окалесицу. Вообще все варианты мне кажется не правильными, но из-за того, что на голосовании большинство ответили C, буду все таки за него. авторQUESTION NO: 92 You develop a Windows-based order entry application TestKingEntry by using Visual Studio .NET. TestKingEntry includes a DataSet object. When a customer order exceeds the number of items currently available in stock, TestKingEntry must create two separate entries in a database. The first entry specifies the total number of items in the customer order, as well as the number of items that can be supplied immediately from available stock. The second entry records backorder information, and specifies the number of items that must be supplied when new stock becomes available. Backorder processing is handled by a separate component. You must ensure that all order information in the DataSet object is captured and passed to this component. To do so, you need to create a new DataSet object. Which method should you use? A. DataSet.Clone B. DataSet.Copy C. DataSet.Merge D. DataSet.GetChanges Answer: D Здесь мне кажется ответ правильным - B, но почему то многие, в том числе и TestKing отвечают D. Некоторые на флрумах этот объясняют, как вопрос с подвохом: типо когда здесь говорят в вопросе все данные имеют ввиду измененные. авторQUESTION NO: 102 You develop a Windows-based application to manage inventory for TestKing inc. The application calls a Microsoft SQL Server stored procedure named sp_UpdatePrices. sp_UpdateTKPrices performs a SQL UPDATE statement that increases prices for selected items in an inventory table. It returns an output parameter named @totalprice and a result set that contains all of the records that were updated. @totalprice contains the sum of the prices of all items that were updated. You implement a SqlCommand object that executes sp_UpdateTKPrices and returns the results to a SqlDataReader object. The SqlDataReader object gives you access to the data in the result set. Which is displayed in a list box on your Windows Form. The value of @totalprice must also be displayed in a text box on your Windows Form. You need to write code that will retrieve this value. Which code segment should you use? A. while (reader.Read() { TextBox1.Text = com.Parameters[“@totalprice”].Value.ToString(); } reader.Close(); B. do { TextBox1.Text = com.Parameters[“@totalprice”].Value.ToString(); } while (reader.Read()); reader.Close(); C. TextBox1.Text = com.Parameters[“@totalprice”].Value.ToString(); reader.Close(); D. reader.Close(); TextBox1.Text = com.Parameters[“@totalprice”].Value.ToString(); Answer: C Ну здесь однозначно они ошиблись. :) Сначало надо закрыть соединение, а потом читать. Поэтому ответ D.(даже спорить нечего, потому что это неоспаримо) ... |
|||
:
Нравится:
Не нравится:
|
|||
25.10.2004, 09:17 |
|
Неправильные ответы в 70-316 TK .
|
|||
---|---|---|---|
#18+
Все нижеследующее ИМХО. Как там в тесткинге понятия не имею. Q49. ИМХО правильный F. Q34. B. Вам нужен не primary output на десктопе, а shortcut. Читайте внимательнее условие. Q96. Вопрос спорный. Замечу, что приложение с сетевой шары при настройках по умолчанию может работать некорректно. Local Intranet Zone однако. Q82. Советую обратиться к официальному Training Kit'у, почитать соотв. тему и посмотреть примеры. Там как раз четко указывается на ответ А. Q54. Этот (или похожий?) вопрос в этом форуме уже обсуждался. Поищите по форуму. С - неверный ответ, т.к. Update'у все равно какой row position установлен. Можете проверить экспериментально. То, что я не ответил по другим вопросам, не означает, что я с вами согласен. Было либо лень читать весь вопрос, либо лень разбираться. А вообще, если уж взялись за дампы, то проверяйте их на реальных примерах в студии. ... |
|||
:
Нравится:
Не нравится:
|
|||
25.10.2004, 11:51 |
|
Неправильные ответы в 70-316 TK .
|
|||
---|---|---|---|
#18+
В тесткингах неправильные ответы встречаются довольно часто. IMHO примерно в 5-10% случаев. Когда я готовился к 70-229 то в тесткинге и Ucertify(www.Ucertify.com) встречались совершенно противоположные ответы на тот же самый вопрос. Если вы не согласны с тесткингом, то советую доверять своим знаниям. В любом случее, если даже будете заниматься зубрежкой, 5-10% неправильных ответов не помеха для успешной сдачи экзамена. ... |
|||
:
Нравится:
Не нравится:
|
|||
25.10.2004, 12:30 |
|
|
start [/forum/topic.php?fid=34&msg=32752101&tid=1551820]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
146ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
46ms |
get tp. blocked users: |
2ms |
others: | 24ms |
total: | 265ms |
0 / 0 |