Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
Exam
: Microsoft 70-316
Title
: DEV & IMPLEMENT WIN
BASED APPS W/MS
VISUAL C#.NET &MS
VS.NET
Version : Demo
Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
1. You develop a kiosk application that enables users to register for an e-mail account in your domain. Your
application contains two TextBox controls named textName and textEmail.
Your application is designed to supply the value of textEmail automatically. When a user enters a name in
textName, an e-mail address is automatically assigned and entered in textEmail. The ReadOnly property of
textEmail is set to True.
Your database will store each user's name. It can hold a maximum of 100 characters for each name.
However, the database can hold a maximum of only 34 characters for each e-mail address. This limitation
allows 14 characters for your domain, @proseware.com, and 20 additional characters for the user's name.
If a user enters a name longer than 20 characters, the resulting e-mail address will contain more characters
than the database allows. You cannot make any changes to the database schema.
You enter the following code in the Leave event handler of textName:
textEmail.Text = textName.Replace(" ",".") +
"@proseware.com";
Now you must ensure that the automatic e-mail address is no longer than 34 characters. You want to
accomplish this goal by writing the minimum amount of code and without affecting other fields in the
database.
What should you do?
A. Set the textName.Size property to "1,20".
B. Set the textEmail.Size property to "1,34".
C. Set the textName.AutoSize property to True.
D. Set the textEmail.AutoSize property to True.
E. Set the textName.MaxLength property to 20.
F. Set the textEmail.MaxLength property to 34.
G. Change the code in textName_Leave to ensure that only the first 20 characters of textName.Text are
used.
H. Use an ErrorProvider control to prompt a revision if a user enters a name lon