Workshop


Quiz

1.

To get only the remainder of a division operation, you use which operator?

2.

Which operation is performed first in the following expressionthe addition or the multiplication? x = 6 + 5 * 4

3.

Which Boolean operator performs a logical negation?

4.

The process of appending one string to another is called?

5.

What property can be used to return the month of a given date?

Answers

1.

The (%) operator.

2.

5 * 4 is performed first.

3.

The Not operator (!).

4.

Concatenation

5.

Month

Exercises

1.

Create a project that has a single text box on a form. Assume that the user enters a first name, a middle initial, and a last name into the text box. Parse the contents into three variablesone for each part of the name.

2.

Create a project that has a single text box on a form. Assume that the user enters a valid birthday into the text box. Use the date functions to tell the user exactly how many days old he or she is.




Sams Teach Yourself Microsoft Visual C# 2005 in 24 Hours, Complete Starter Kit
Sams Teach Yourself Visual C# 2005 in 24 Hours, Complete Starter Kit
ISBN: 0672327406
EAN: 2147483647
Year: N/A
Pages: 248
Authors: James Foxall

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net