Wiley.com
Print this page Share

MCSD Certification Toolkit (Exam 70-483): Programming in C#

ISBN: 978-1-118-61209-5
648 pages
May 2013
MCSD Certification Toolkit (Exam 70-483): Programming in C# (1118612094) cover image

Description

A perfectly crafted prep guide that prepares you for the MCSD 70-483

The MCSD 70-483 exam is the entry-level Microsoft certification exam for C# developers and this must-have resource offers essential coverage of the exam that will test your competency in C# programming. Each chapter covers one of the core subject domains that comprise the exam. Among the authors are experienced trainers who advised Microsoft on the development of its certification programs, affording them a unique understanding of both the objectives and what it takes to master them. This invaluable knowledge is passed to you so that you will not only be prepared to take the exam, but also become a better C# developer

  • Features a step-by-step lab tutorial for each lesson covered in the book, encouraging you to practice what you've just learned in order to reinforce your learning
  • Includes an accompanying website that includes more than 100 simulated test questions and answers
  • Shares solutions to the hands-on labs presented in the book
  • Contains complete sample code
  • Offers a unique author approach that not only teaches you how to answer a set of exam questions but also provides you with an understanding of the underlying concepts and skills needed to succeed as a professional C# programmer

MCSD Certification Toolkit is all you need to fully prepare for exam 70-483!

See More

Table of Contents

Introduction xxvii

Chapter 1: Introducing the Programming C# Certification 1

Chapter 2: Basic Program Structure 19

Chapter 3: Working with the Type System 59

Chapter 4: Using Types 113

Chapter 5: Creating and Implementing Class Hierarchies 161

Chapter 6: Working with Delegates, Events, and Exceptions 575

Chapter 7: Multithreading and Asynchronous Processing 577

Chapter 8: Creating and Using Types with Reflection, Custom Attributes, the CodeDOM, and Lambda Expressions 578

Chapter 9: Working with Data 361

Chapter 10: Working with Language Integrated Query (LINQ) 431

Chapter 11: Input Validation, Debugging, and Instrumentation 469

Chapter 12: Using Encryption and Managing Assemblies 527

Appendix: Answers to Sample Test Questions 571

Index 587

See More

Author Information

Tiberiu Covaci is a Senior Trainer and Mentor, a Microsoft MVP, and an ASP Insider. He speaks about Microsoft technologies at conferences and user groups around the world.

Gerry O'Brien is a program manager at Microsoft. He has authored or coauthored several books.

Rod Stephens is a Microsoft MVP and the author of more than 20 books and 250 articles.

Vincent Varallo is the author of ASP.NET 3.5 Enterprise Application Development with 2008 and has been developing applications in the .NET Framework for more than 10 years.

See More

Downloads

Download TitleSizeDownload
Complete code downloads and sample test questions for MCSD Certification Toolkit 6.48 MB Click to Download
Cheat Sheets and Key Terms from MCSD Certification Toolkit 536.53 KB Click to Download
See More

Errata

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
2 Error in Chapter 2 Code
Chapter 2 source code should read:

// sample propety syntax 
class Student { 
private firstName; 
public string FirstName 
{ 
get {return firstName;} 
set { firstName = value;} 
}
}
05/23/2013
1 Error in Text
Currently reads:

"toward your MCPD certification"

Should read:

"toward your MCSD certification"
06/30/2013
20 Error in Text
Currently reads: You will learn what statements are and how to construct them your code.
Should read: You will learn what statements are and how to construct them in your code.
08/13/2013
2 28 Errata in Text
The comment in the code currently reads:
//if the value in num mod 2 is equal to zero, the operator will return
//the string even indicating an even number, otherwise it will return
//the string false
The last line should read:
//the string odd
16-Jan-17
2 29 Error in Code
Code currently reads: WriteLine

Code in chapter currently reads: Writeline

These should both read: WriteLine

05/29/2013
2 33 Error in Text
Paragraph following Code Lab Analysis:

Currently reads: "and then waiting for you press a key"
Should read: "and then waiting for you to press a key"
06/07/2013
38 Error in Code
Code currently reads: WriteLine

Code in chapter currently reads: Writeline

These should both read: WriteLine

05/29/2013
40 Error in Text
Second paragraph currently reads:

...operators like ++, ==, +=, *=, and so on...

Should read:

...operators like ++, --, +=, *=, and so on...
05/21/2013
42 Error in Text
Paragraph 2 currently reads:

... ~DH is the decrement ...

Should read:

... -- is the decrement ...
05/21/2013
49 Error in Code
10th line of the Code Lab should read:
?(int i = 10; i > 0; i--)?
05/31/2013
49 Error in Code
page 49:

Currently reads: (int i = 10; i > 0; i~DH)

Should read: (int i = 10; i > 0; i--)
07/03/2013
50 Error in Text and Source Code
On page 50 and in the source code for the lab:

Currently reads: "foeach over an array of integers"

Should read: "foreach over an array of integers"
06/25/2013
50 Error in Code
In the Serialization project, in the Program.cs file:

The following line should be added after line 40:
streamWriter.Close();
07/22/2013
3 61 Error in Text
Table 3-2:
The entry for type "long" needs a minus sign, "-", in front of the first number.
It should read: "-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807"
06/14/2013
61 Error in Text
Table 3-2:

Column 3 heading currently reads: Size
Column 3 heading should read: Size/Precision
07/03/2013
3 62 Error in Text
First sentence in first paragraph:

Currently reads: "date"
should read: "data"
("...to be of the specific data type")
Then, in the "Advice From the Experts Section", 4th line:

Currently reads: "on"
Should read: "in"
("However, data types in C#")
06/14/2013
65 Error in Text
Type for myDecimal, myFloat and myLong:

Currently read: sizeof(byte)
Should read: sizeof
07/03/2013
3 67, 69-70 Error in Code
Variable for public string currently reads: lastname
Should read: lastName
05/29/2013
67, 70 Error in Text
Currently read: lastname

Should read: lastName
07/03/2013
69 Error in Text
Second sentence of third paragraph (middle of page)

Currently reads: "Visual Studio throws and error"
Should read: "Visual Studio throws an error"
08/22/2013
74 Error in Code
Last curly brace is currently: {

Should be: }
05/29/2013
74 Error in Text
Currently reads: for you enumeration values
Should read: for your enumeration values
07/12/2013
78 Error in Text
Chapter 3 Table 3-3, "description" field for "private" modifier:

Currently reads: "enables access only with the body of the class"
Should read: "enables access only within the body of the class"
08/22/2013
83 Error in Text
"Note" field on top of page, second sentence:

Currently reads: "Also, a compiler warning will be generated if you omit a return statement or a method that indicates a return type other than void."

Should read: "Also, a compiler warning will be generated if you omit a return statement for a method that indicates a return type other than void."
08/22/2013
87 Error in Text
First sentence of the 5th paragraph:

Currently reads: "to show that its value is Fred"
Should read: "to show that its value is John"
08/22/2013
3 88 Error in Text
First sentence reads: "and number and type of arguments"
"arguments" should be changed to "parameters"
08/22/2013
3 88 Error in Text
5th sentence of 1st paragraph:

Currently reads: "but the kind or parameter"
Should read: "but the kind of parameter"
08/22/2013
3 88 Error in Code
In first block of example code:

Currently reads: "public double calcArea(double radius)"
Should read: "public double calcArea(double r)"
08/22/2013
3 90 Error in Text
4th sentence in 1st paragraph:

Currently reads: "flexibility in how you create out objects in code"
Should read: "flexibility in how you create objects in code"
08/22/2013
3 90 Text correction: Error under "Abstract and Overwritten Methods"
The first two sentences in the last paragraph on the page, "In OOP concepts, an abstract method is one that declares a method signature but no implementation. It is also known as a virtual method, which means it isn?t considered a real method because it has no implementation."

should read:

"In OOP concepts, an abstract method is one that declares a method signature but no implementation. It must be implemented in the concrete class. It is similar to a virtual method with the following distinctions: a virtual method does not have to contain an implementation, but it may, and can be overridden in the concrete class."
2/21/14
91 Error in Text
Currently reads: "is has a GPA of"
Should read: "has a GPA of"
07/03/2013
97 Error in Code
Currently reads:
private firstName;

Should read:
private string firstName;
06/14/2013
97 Error in Text
Currently reads: "sample propety syntax"
Should read: "sample property syntax"
07/03/2013
3 99 Error in Text
2nd sentence of last paragraph:

Currently reads: "for the age and GPA values"
Should read: "for the Age and GPA values"
08/22/2013
3 103 Error in Text
1st sentence of 2nd paragraph

Currently reads: "is done through the use a generic type"
Should read: "is done through the use of a generic type"
08/22/2013
106; 572 Error in Text, Chapter 3, Test Question 1 and Answer 1
Currently reads: int
Should read: uint
06/07/2013
3 108 Error in Text
Chapter 3, Test Question 15:

Currently reads:
How are the values passed in generic methods?

Should read:
How are object values passed in generic methods?
06/18/2013
111 Error in Text
Currently reads: "Must be access using an index"
Should read: "Must be accessed using an index"
07/03/2013
119 Error in Text
Currently reads: "convert data on one type"

Should read: "convert data of one type"
08/05/2013
122 Error in Code
Currently reads: persons[0] = new Person(0);

Should read: persons[0] = new Person();
08/06/2013
126 Error in Code
Currently reads:
decimal amount = decimal.Parse("$123,456.78", NumberStyles.AllowCurrencySymbol);

Should read:
decimal amount = decimal.Parse("$123,456.78", NumberStyles.Currency);
08/05/2013
4 126 Error in Code
Currently reads:
    decimal amount = decimal.Parse("$123,456.78", 
        NumberStyles.AllowCurrencySymbol); 
Should be:
    decimal amount = decimal.Parse("$123,456.78", 
        NumberStyles.Currency); 
05/28/2013
4 127 Error in Text
"Banker's Rounding" box, 2nd sentence of 2nd paragraph:

Currently reads: "and ToUInt32(-3.3) returns 3, which is less than zero"
Should read: "and ToUInt32(-3.3) returns -3, which is less than zero"
08/22/2013
128 Error in Code
Currently reads:
    '// Unpack the two values. 
Should be:
    // Unpack the two values. 
05/28/2013
132 Error in Text
Second Paragraph:

Currently reads:

The method returns a unit indicating the length of the string that the method deposited in the lpszLongPath buffer.

Should Read:

The method returns a unit indicating the length of the string that the method deposited in the lpszShortPath buffer.
11/13/2013
4 154 Chapter 4 Question Explained
Chapter 4, Question 2:

Currently reads:

2. Which of the following statements is true for widening conversion?

a. Any value in the source type can fit into the destination type.
b. The conversion will not result in loss of magnitude but may result in some loss of precision.
c. An explicit cast is optional
d. All of the above.

Answer D is incorrect. Explanation:

My problem with the answer is, you are saying that a widening conversion may cause loss of precision, while at the same time you are saying that any value in the source type can fit in the destination type. If the value in the source type can fit in the destination type; then where is the loss of precision coming from?

This is almost a philosophical question. Microsoft defines a widening conversion to be one where there is no loss of magnitude but there may be a loss of precision. In particular, the decimal data type has more digits of precision than a float so even though float values span the range of values that a decimal can hold, they cannot always match the precision.

For example, consider this code:

decimal d = 1.2345678901234567890m;
float f = (float)d;
Console.WriteLine(d);
Console.WriteLine(f);

The result is: 1.2345678901234567890
1.234568

So the float can hold the value but it loses precision.

I'm not sure I would have done it this way but I can see Microsoft's point.

More specifically, for testing purposes, if a Microsoft exam asks whether the decimal --> float conversion is widening or narrowing, the correct answer is widening. See the entry on this page for decimal:

Widening and Narrowing Conversions
05/23/2013
4 154 Chapter 4 Question Explained
Question reads:

Which of the following statements generates a string containing the text "Veni, vidi, vici"?

a. String.Format("{0}, {1}, {2}", Veni, vidi, vici)
b. String.Format("{1}, {2}, {3}", "Veni", "vidi", "vici")
c. String.Format("{2}, {0}, {3}", "vidi", "Venti", "Veni", "vici")
d. String.Format("{Veni, vidi, vici}")

Answer:
C. String.Format("{2}, {0}, {3}", "vidi", "Venti", "Veni", "vici")

This question is an exercise in reading the code very carefully. Answer A would work except there are no quotes around the strings Veni, vedi, veci in the parameter list. Unless there are variables with those names, this statement won't compile.
05/23/2013
4 Error in Chapter 4, Exercise 19
The question should be: "Which of the following methods formats the variable value as currency?" with the word
value
should be formatted as code.
05/28/2013
162 Error in Text
Currently reads: "resouirces"
Should read: "resources"
08/05/2013
5 164 Error in Text
The last paragraph on the bottom of page 164 says you can create an Employee class that has no constructors even if its parent class has no parameterless constructor.
This is no longer true and should be deleted.
05/28/2013
179 Error in Text
Currently reads: "unsorted on the left and sorted on the right"
Should read: "sorted on the left and unsorted on the right"
08/05/2013
194 Error in Text
Currently reads: "// Keep track if whether resources"
Should read: "// Keep track of whether resources"
08/05/2013
198 Error in Text
Shape class's declaration currently includes the IComparable interface.

The decalration should be:
class Shape : IDisposable
05/28/2013
207 Error in Text
Currently reads: "The code is in the chapter 11..."
Should read: "The code is in the chapter 6..."
08/05/2013
208 Error in Text
The definition of a delegate reads:
"private delegate float FunctionDelegate(float x);"

Should read:
"private delegate int FunctionDelegate(float x);"
05/31/2013
220 Error in Text
Currently reads: "MessageBoxIcon.Asterisk"
Should read: "MessageBoxIcon.Information"
08/05/2013
6 256 Error in Text
On page 256, question 11, the choices should be:

a. public MovedEventHandler Moved;
b. public event MovedEventHandler Moved;
c. public event Action Moved;
d. Both b and c are correct.
05/28/2013
258 Error in Text
Question 21, option b. reads:

"b. Give it event handlers with parameters that match those defined by the System.Exception class."

Should read:

"b. Give it Constructors with parameters that match those defined by the System.Exception class."
05/23/2013
261 Error in Code
Currently reads: "IsInfinity, IsInfinity, IsInfinity "
Should read: "IsInfinity, IsNegativeInfinity, IsPositiveInfinity"
08/05/2013
262 Error in Text
Currently reads: "doesn't throw OverflowExceptions when an arithmetic operation"
Should read: "doesn't throw OverflowExceptions when an integer arithmetic operation"
08/05/2013
265 Error in Text
Currently reads:
"number of transistors that can be fit on the same surface"

Should read:
"number of transistors that can fit on the same surface"
07/29/2013
266 Error in Text
Currently reads:
"Finally, the chapter by describes cancellations in .NET Framework"

Should read:
"Finally, the chapter describes cancellations in .NET Framework"
07/29/2013
271 Error in Code
Code reads: "RunSequencial" twice.
Should read: "RunSequential" every time.
07/29/2013
271 Error in Text
Currently reads: "nonsens divisions"
Should read: "nonsense divisions"
07/29/2013
6 Error in Chapter 6, Exercise 9
The last choice currently has "a" as the parameter after "string"
Should have "s" and read:

    d.    note = (string s) => MessageBox.Show(s);
05/28/2013
300 Error in Text
Currently reads: "when the thread is don executing"
Should read: "when the thread is done executing"
07/29/2013
301 Error in Text
Third line after the CountdownEvent Class section:

Currently reads: "Before .NET this was implemented"
Should read: "Before .NET 4.0 this was implemented"

*Note: Version 4.0 was specified for .NET.
07/29/2013
303 Error in Code
Page 303 in the code lab:

Participants is misspelled as paricipants two times.

Currently reads: "b => { // This method is only called when all the paricipants arrived."
...
"Console.WriteLine("{0} paricipants are at rendez-vous point {1}."

Should read:
"b => { // This method is only called when all the participants arrived."
...
"Console.WriteLine("{0} participants are at rendez-vous point {1}."
07/29/2013
326 Error in Text
There are two Table 8-4s. The Table 8-4 on p. 326 should have been Table 8-5.
06/07/2013
326 Error in Text
In Table 8-4:

Property name currently reads: IsArry
Should read: IsArray
08/05/2013
327 Error in Code
First line in the sample code and seventh line output (error appears 2x):

Currently reads: "AssmeblyQualifiedName"
Should read: "AssemblyQualifiedName"
08/05/2013
330 Error in Text
In the last line on the page, the variable name should be in camel case:

Currently reads: _internalfield
Should read: _internalField
08/05/2013
336 Error in Text
The following text should be added as the first sentence of the last paragraph on the page:

The GetCustomAttributes method takes one parameter which is set to true, to get all the custom attributes in the inheritance chain, or false, to get only the custom attributes defined for this class.
08/06/2013
340 Error in Text
Currently reads: "The the property"
Should read: "The property"
08/05/2013
347 Error in Code
On the 21st and 38th lines (error appears 2x):

Currently reads: CodeConditonStatement
Should read: CodeConditionStatement
08/05/2013
359 Error in Text
In the definition of "load-from context":

Currently reads: "in the pat passed"
Should read: "in the path passed"
08/05/2013
364 Error in Code
(Error appears 3x)

The variable is declared as: "orginal"
Should be: "original"
08/05/2013
372 Error in Text
The line just above Table 9-6:

Currently reads: "System.Collections.ArrayList"
Should read: "System.Collections.Dictionary"
08/05/2013
374 Error in Text
In the last line of the second paragraph:

Currently reads; "used properties and method..."
Should read: "used properties and methods..."
08/05/2013
376 Error in Text
Step 3:

Currently reads: "in the code behind the page"
Should read: "in the code-behind the page"
08/05/2013
377 Error in Text
The first line in the first paragraph:

Currently reads: "This list can only contain object that are of"
Should read: "This list can only contain objects that are of"
08/05/2013
383 Error in Text
Currently reads: BEST PRACTICES: Prevent Errors When Reading a Records

Should read: BEST PRACTICES: Prevent Errors When Reading Records
12/23/2013
385 Error in Text
Last sentence in the third paragraph:

Currently reads: "This is also a different from"
Should read: "This is also different from"
08/05/2013
388 Error in Code
Currently reads: "//Updat"
Should read: "//Update"
08/05/2013
390 Error in Text
Second to last sentence in the last paragraph:

Currently reads: "which is a collection of the each type"
Should read: "which is a collection of each type"
08/05/2013
390 Error in Text
Currently Reads: Click the arrow next to the NorthwindsModel.edmx file in the Solution Explore to view all the files that were created for you.

Should Read: Click the arrow next to the NorthwindsModel.edmx file in the Solution Explorer to view all the files that were created for you.
12/23/2013
392 Error in Code
In the second code snippet:

The label currently reads: CategorName
Should read: CategoryName
07/12/2013
11 Error in Chapter 11, Exercise 3
Exercise 3. The question should read:

"Which of the following methods should you use to verify that a TextBox contains an integer value?"
05/28/2013
402 Error in Text
Last paragraph, 6th line:

Currently reads: were
Should be: was
07/12/2013
408 Error in Code
The comments and Debug.WriteLine statements before the foreach loops should be switched so they match the loops.

//DirectoryInfo
DirectoryInfo directoryInfo =
new DirectoryInfo(@"c:\");
//Files
Debug.WriteLine("Files");
foreach (FileInfo fileInfo in
directoryInfo.GetFiles())
{
    Debug.WriteLine(fileInfo.Name);
}

//Directories
Debug.WriteLine("Directories");
foreach (DirectoryInfo di in
directoryInfo.GetDirectories())
{
    Debug.WriteLine(di.Name);
}

07/12/2013
4 Error in Chapter 4, Exercise 3 (for download)
First choice currently labeled: "v"
Should be: "a"
05/28/2013
415 Error in Code
Currently reads: SearchDirectory

Should read: SearchDirectoryAsync
07/12/2013
420 Error in Text
In the last line of the second paragraph: Currently reads: ISeriliazable Should reads: ISerializable
07/12/2013
424 Error in Text
Questions 12 and 16 are identical.
07/12/2013
460 Error in Text
Currently reads: && StateName == StateName
Should read: StateName == other.StateName
07/12/2013
466 Error in Text
First bullet point under Language Integrated Query LINQ:

Currently reads: queries
Should reads: queried
07/12/2013
482-483 Error in Code
(Error appears 3x--bottom of page 482 through the top of page 483)

Currently reads: "^[2-9][0-9]{2}-\d{3}$"
Should read: "^[2-9][0-9]{2}-\d{4}$"

Currently reads: "^[2-9][0-8]\d-[2-9][0-9]{2}-\d{3}$"
Should read: "^[2-9][0-8]\d-[2-9][0-9]{2}-\d{4}$"

Currently reads: "^([2-9][0-8]\d-)?[2-9][0-9]{2}-\d{3}$"
Should read: "^([2-9][0-8]\d-)?[2-9][0-9]{2}-\d{4}$"

08/05/2013
489 Error in Code
"CalculateGrandTotal()" is repeated. It should only appear once.
08/05/2013
493 Error in Text
Currently reads: "returnu true"
Should read: "return true"
08/05/2013
503 Error in Text
Currently reads: "Figure 115"
Should read: "Figure 11-5"
08/05/2013
527 Error in Text
Currently reads: "you will look in details at how"
Should read: "you will look in detail at how"
08/05/2013
532-533 Error in Text
Page 532-533, this has already been corrected in the ebook file, the errata should be corrected to read:

"chipper" should read "cipher"
Error appears 3x

Page 532 prior to step 1:
Currently reads: "plain text into chipper text"
Should read: "plain text into cypher text"

Page 533 prior to step 1:
Currently reads: "workflow of decrypting chipper text"
Should read: "workflow of decrypting cypher text"

page 533 step 4:
Currently reads: "which is the chipper data"
Should read: "which is the cypher data"
08/05/2013
533 Error in Text
Currently reads: cryptoAlgorythm
Should read: cryptoAlgorithm
08/05/2013
536 Error in Text
Currently reads: "the data the goes through"
Should read: "the data that goes through"
08/05/2013
538 Error in Text
Currently reads: "Hashing is the process of mapping binary data"
Should read: "Hashing is the process of mapping data"
08/05/2013
541 Error in Text
The word "the" appears erroneously in two sentences on this page.

Currently reads: "Calculates the hash for the a byte"
Should read: "Calculates the hash for a byte"

Currently reads: "for the a stream"
Should read: "for a stream"
08/06/2013
543 Error in Text
Currently reads: "when two parties wants to communicate"
Should read: "when two parties want to communicate"
08/06/2013
551 Error in Text
Currently reads: "The resulting assembly could be a process assemblies"
Should read: "The resulting assembly could be process assemblies"
08/06/2013
556 Error in Text
Currently reads: "you must to introduce the password you just set in the previous step"
Should read: "you must introduce the password you just set in the previous step"
08/06/2013
562 Error in Text
Currently reads: "run the following commend"
Should read: "run the following command"
08/06/2013
566, 585 Error in Text
Question 6

Currently reads:
Which of the following code will you use to encrypt an array called encryptedData that can be encrypted by the current user, and without using any entropy?

Should read:
Which of the following code will you use to decrypt an array called encryptedData that was encrypted by the current user without using any entropy?
06/18/2013
Appendix, Chapter 2 571 Error in Answer to Chapter 2, Test Question 1
Currently reads:

1. You want to declare an integer variable called myVar and assign it the value 0. How can you accomplish this?

Answer given:
b. myVar = 0;

Correct answer:
d. int myVar = 0;
05/23/213
571 Error in Answer to Chapter 2, Test Question 2
Question 2 states:
You need to make a logical comparison where two values must return true in order for your code to execute the correct statement. Which logical operator enables you to achieve this?

Answer given: "D. &&"

However, both answers "D. &&" and "C. &" are correct.
05/23/2013
6 577 Error in Answer to Chapter 6, Test Question 14
For Exercise 14, the correct answer should be "b, c."
05/28/2013
11 584 Error in Answer to Chapter 11, Test Question 2
In Exercise 2, the correct answer should be "c, e."
05/28/2013
669 Error in Text
In Chapter 2, Question 9:

Currently reads: "} while value > 10;"

Should read: "} while (value > 10)"
05/31/2013
25 Error in Text
Currently reads: "you can assign literals only to variables of constants
Should read: "you can assign literals only to variables or constants"
05/31/213
53 Text Correction: Error in Code
Question 9:
Currently reads:
"value > 10" should read:
"(value > 10)"
12/19/14
493 Text Correction: Error in Code
Last line in of the code should read:
rowTextBoxes[row,2];
currently reads:
rowTextBoxes[row,1];
04/02/15
493 Text Correction
In the second sentence in the first paragraph after the code, the text reads:
"In any value is suspicious"
should read:
"If any value is suspicious."
04/02/15
493 Text Correction
In the second sentence in the first paragraph after the code, the text reads:
"In any value is suspicious"
should read:
"If any value is suspicious."
04/02/15
7 578 Text Correction
Answer for Chapter 7 question 4 at the top of the page:
d . You create a new thread and set its property
should be:
d . You create a new thread and set its property IsThreadPool to true.
04/02/15
281 Text Correction
3rd sentence in last paragraph:
currently reads:
"Sometimes a thread it is interrupted"
should reaD:
"Sometimes a thread is interrupted"
05/01/15
127 Text Correction
The third paragraph in the "Banker's Rounding" sidebar says:
The Math.Round method uses banker's rounding by default but also enables you to use parameters to indicate if it should round toward 0 instead.
That should read:
The Math.Round method uses banker's rounding by default but also enables you to use parameters to indicate if it should round away from 0 instead.
04/02/15
270 Text Correction
3rd bullet down:
currently reads:
"tread"
should be:
"thread"
05/01/15
279 Text Correction
DoIntensiveCalculations method, in the comments:
currently reads:
"nonsens"
should read:
"nonsense"
05/01/15
282 Text Correction
The first paragraph under the Introducing Task heading:
currently reads:
"System.Treading.Tasks"
It should be:
"System.Threading.Tasks."
05/01/15
282 Text Correction
The second sentence in the first paragraph under the Introducing Task heading reads:
"The tasks are as well a way to abstract..."
It should read:
"Tasks are also a way to abstract away the need for threads from the programmer."
05/01/15
311 Text Correction
In the 3rd paragraph of the Summary section:
currently reads:
"WhenAnll"
should be:
"WhenAll"
05/01/15
314 Text Correction
Ch7 question 10:
currently reads:
"...to signal and EventWaitHandle"
should read:
"...to signal an EventWaitHandle"
05/01/15
383 Text Correction
The last sentence before the ExecuteScalar sub-header reads:
"If all you need is the schema for a query rather than the data, you can call the ExecuteDataReader method ..."
It should read:
"... you can call the ExecuteReader method ..."
05/01/15
337 Text Correction
currently reads:
class MyTestClass()
Should be:
class MyTestClass
05/01/15
338 Text Correction: Error in Code
The second code statement on page 338 is:
MyCustomAttribute attribute =
(MyCustomAttribute)myTestClassType.GetCustomAttribute(
typeof(MyCustomAttribute), false);
It should be:
MyCustomAttribute attribute =
(MyCustomAttribute)myTestClassType.GetCustomAttributes(
typeof(MyCustomAttribute), false)[0];
05/01/15
577 Text Correction: Error in Code
Currently reads:
6 577 Error in Answer to Chapter 6, Test Question 14 For Exercise 14, the correct answer should be "b, c."
Should be:
6 Error in Answer to Chapter 6, Additional Sample Test Question 14 For Exercise 14, the correct answer should be "b, c."
05/01/15
584 Text Correction: Error in Code
currently reads:
11 584 Error in Answer to Chapter 11, Test Question 2 In Exercise 2, the correct answer should be "c, e."
Should look like this:
11 Error in Answer to Chapter 11, Additional Sample Test Question 2 In Exercise 2, the correct answer should be "c, e."
05/01/15
106 Text Correction
Chapter 3, Test Question 1:
Answer d reads:
4,294,967,296
It should read:
2,147,483,647
05/01/15
106 Text Correction
Page 106, question 1:
Answer D should be "4,294,967,295"
05/01/15
518 Errata in text
Page 518, In question 3:

Should read:

If the user enters some invalid data on a form and then clicks the form's Accept button, which of the following actions would be appropriate for the program to take?
29-Sep-15
Pg 66 66 Errata in text
On page 66, in the best practice box:

Currently Reads:
"incrementing an int value that is signed might go from 32,767 to -32,767"

Should read:
"incrementing a short value that is signed might go from 32,767 to -32,768"
06-Oct-15
Page 355 and 579 errata in code
In test question number 10 there is an error in code for answer D.

Currently Reads:
Assembly.ReflectionOnlyLoad(("System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");

Should Read:
Assembly.ReflectionOnlyLoad("System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
09-Oct-15
101 Errata in Code
Line of code that reads:
private int[] ip;

Should Read:
private int[] ip = new int[32];
11-Dec-15
See More
Back to Top