Chapter 11 No matter how thoroughly you test an application

subject Type Homework Help
subject Pages 4
subject Words 714
subject Authors Diane Zak

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Chapter 11: Testing, Testing…1, 2, 3 (Selecting Test Data)
TRUE/FALSE
1. The last step in the problem-solving process is to rigorously test the program before releasing it to the
user.
2. A program should be tested with a set of sample data that includes both valid and invalid data.
3. Invalid data typically is the result of the user making a typing error, entering the data in an incorrect
format, or neglecting to make a required entry.
4. Typically, you should never include the number 0 in test data.
5. If the application’s code contains a selection structure, use values that will test each path.
6. When the KeyPress event occurs, a character corresponding to the pressed key is sent to the KeyPress
event’s e parameter, which appears between the square brackets in the event’s procedure header.
7. You refer to the Backspace key on your computer keyboard using the ControlChars.Back constant.
8. The Delspace key is necessary for editing the text box entry.
9. Whenever you make a change to an application’s code, you should retest the application using the test
data listed in the test data chart.
10. Programmers can use a special dialog box, called a dialog box, to display messages to the user.
11. When you are satisfied that an application is functioning correctly, you can release it to the beta
engineers.
page-pf2
12. Most large and complex applications are beta tested by paid engineers before being sold in the
marketplace.
13. When entering data in a text box, it is not uncommon for a user to inadvertently include a space
character at the end of the entry.
14. When the computer processes the Trim method, it makes a temporary copy of the string in memory,
and then performs the necessary trimming on the copy only.
15. The Trim method automatically removes any spaces from the original string.
MULTIPLE CHOICE
1. ____ data is data that the program is expecting the user to enter.
a.
Invalid
c.
Valid
b.
Constructed
d.
Inferred
2. ____ data is data that the program is not expecting the user to enter.
a.
Invalid
c.
Constructed
b.
Valid
d.
Inferred
3. Use a ____ to record an application’s test data and the expected results.
a.
script
c.
test data plan
b.
test data chart
d.
flowchart
4. A control’s ____ event occurs each time the user presses a key while the control has the focus.
a.
KeyUp
c.
KeyDown
b.
KeyPress
d.
KeyStillDown
5. To prevent a text box from accepting an inappropriate character, you first use the e parameter’s ____
property to determine the pressed key.
a.
KeyFind
c.
Key.Text
b.
Key.Char
d.
KeyChar
6. You use the e parameter’s ____ property to cancel the pressed key if it is an inappropriate one.
page-pf3
a.
Handled
c.
Opened
b.
Unhandled
d.
Fixed
7. You create a message box using the ____ method.
a.
MessageBox.Text
c.
MessageBox.Show
b.
MessageBox.Display
d.
MessageBox.PopUp
8. No matter how thoroughly you test an application, chances are it still will contain some errors, called
____.
a.
mosquitoes
c.
hoppers
b.
bugs
d.
problems
9. ____ are encouraged to use the application as often as possible, because some bugs surface only after
months of use.
a.
Beta testers
c.
Beta users
b.
Primary users
d.
Primary testers
10. When a beta tester finds a bug in the application, she submits a(n) ____ to the programmer.
a.
update request
c.
error log
b.
problem report
d.
bug report
11. Setting a text box control’s ____ property to 1 limits the text box entry to one character only.
a.
Length
c.
MaxLength
b.
Max
d.
Entry
12. You can use the txtType control’s ____ event to prevent the text box from accepting the space
character.
a.
Key
c.
KeyPress
b.
Pressed
d.
StillPressed
13. You can use the ____ method to remove any spaces that appear before and after the data in the
variable.
a.
Trim
c.
Right
b.
Left
d.
RmPad
14. In the method call string.Trim, string typically is either the Text property of a control or ____.
a.
any variable of a character-based type
c.
the name of your program
b.
the literal string
d.
the name of a String variable
page-pf4
15. The syntax of the trim method is ____.
a.
string trim
c.
Trim.string
b.
string.Trim
d.
trim string

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.