VB.NET EXAM CRAM 2 ERRATA ========================= 70-305 book ----------- p. 37, Description of EnableViewStateMac: "Machine Authentication Check" should be "Message Authentication Check" p. 47 - "#region and #endregion" should be "#Region and #End Region". p. 51, Question 6: "static property" should be "shared property". Both answers B and D are correct; in VB .NET, a shared member of a class can be used either from the class itself or from an instance variable. p. 54, Question 10: Answer A is correct. Replace the explanation for this question with "Answer A is correct. Visual Basic .NET will not disambiguate an ambiguous namespace reference for you. To make the code compile, you must always specify a class unambiguously; in this case, declare the variable as either Partners.BusinessRules or Corporate.BusinessRules. Answers B, C, and D are incorrect because the code can't actually be run. p. 112, description of GetKey should be "Gets an object name from the application state by index" p. 119, Question 8: Change "Later, you replace Draft2.aspx with Draft3.aspx and use the Server.Transfer method to display Draft3.aspx whenever Draft1.aspx is requested." to "Later, you add Draft3.aspx, and use the Server.Transfer method in code behind Draft2.aspx to display Draft3.aspx whenever Draft1.aspx is requested." p. 147, step 2. Add "Set the AutoPostBack property of the ListBox to True." p. 198, Exam Alert - Delete the entire first paragraph of this exam alert. p. 199, first heading on page: "SqlParameter" should be "SqlCommand" p. 218, last sentence above table 7.13: "XmlNode" should be "XmlDocument" p. 218, Table caption (and p. 219. continued table caption): "XmlNode" should be "XmlDocument" p. 219, first code snippet: Add two lines at the start of the code snippet: Dim xd As XmlDocument ' Code to fill and modify document goes here p. 288, Question 1: In answer C and in the explanation, "CurrentUICulture" should be "CurrentCulture". 70-306 book ----------- p. 7, paragraph 1 - "#region and #endregion" should be "#Region and #End Region". p. 8, first code: "Sub.New" should be "Sub New" p. 16, description of the Color structure: "static constructor" should be "static method". p. 24, Question 3 - Answer B is not correct. An inherited class does not have access to private properties of the parent class. p. 26, answer to Question 7 - The answer states that D is both correct and incorrect. In fact, D is correct and E is incorrect. p. 30, Tip: "a z-order property" should be "an implied z-order property". p. 127, Exam Alert: should read "You increment the Position property of a CurrencyManager (for example, one returned from the collection maintained by a BindingContext) to move to the next element, and you decrement the property to move to the previous element." p. 155, Note: Add one more sentence to the end of this note: "You'll still have to close the DataReader in order to have it close the Connection in this case." p. 169 Question 6: First sentence of the question should read "Which ADO.NET object would represent an extracted set of data spanning two virtual tables?" p. 235 2nd full paragraph: "NelpNavigator" should be "HelpNavigator" p. 250, code: if mintLines < nudCopies.Value Then should be if mintLines <= nudCopies.Value Then p. 255, first paragraph: You may experiment with the use of this component by modifying the form used in the previous section to include another Button control named btnPreview and a PrintPreviewDialog component named PrintPreviewDialog1. Set the PrintPreviewDialog component's Document property to the name of the PrintDocument object and add the following code to the form's module: p. 263 Question 9 states that C is both the correct answer and incorrect answer. It should be B is the correct answer. p. 269, Description for Assert should be "Displays a message if a specified condition evaluates to False". p. 271, step 3: The TraceSwitch should be declared as follows: Dim ts As TraceSwitch = _ New TraceSwitch("FactorialTrace", _ "Trace the Factorial Application") The name of the TraceSwitch must match the name used in the config file in step 5 on page 273. 70-310 book ----------- p. 40, 2nd paragraph: "the effect is to put the records in whatever order the database engine decides it wants to use" should be "the effect will be to put the records in order by the fourth column of the result set." p. 45, Step 7 - Delete this step; it isn't necessary. p. 114, code: Sample should read as follows: Private Sub Form1_Load( _ ByVal Sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load ' Register a HTTP Client Channel Dim channel As HttpClientChannel = _ New HttpClientChannel() ChannelServices.RegisterChannel(channel) ' Instantiate the Remote Class r = CType( _ Activator.GetObject(GetType(RandomNumber), _ "http://Myserver/RandomNumber.rem"), _ RandomNumber) End Sub p. 224, Table 9.2, description of SetLastError - By default the value is True. p. 228, question 3, answer B - "extern" should be "external" p. 350, answer key: the correct answer to question 54 is D. p. 364, answer 54: This answer should read: Answer D is correct. If you don't specify the name of the event log that you're writing to, .NET uses the Application event log. The code will create a new event source named MyLog, but that's not the same as creating a new event log. To create a new event log, you can use the EventLog.CreateEventSource method. Answer A is incorrect because the code runs fine. ANswer B is incorrect because WriteEntry does not create a new event log. Answer C is incorrect because WriteEntry does not use a MessageBox.