Tải bản đầy đủ (.pdf) (6 trang)

Programming with microsoft visual basic 2010 5th edition diane zak test bank

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (186.71 KB, 6 trang )

Chapter 2: Designing Applications

TRUE/FALSE
1. For an application to fulfill the wants and needs of the user, it is essential for the programmer to plan
the application jointly with the user.
ANS: T

PTS: 1

REF: 63

2. The only way to guarantee the success of an application is to actively involve the user in the planning
phase.
ANS: T

PTS: 1

REF: 63-64

3. The first step in the planning phase of a programming solution is to sketch the user interface.
ANS: F

PTS: 1

REF: 64

4. Drawing a sketch of the user interface is performed in the planning phase.
ANS: T

PTS: 1


REF: 64

5. In Western countries, the user interface should be organized so that the information flows either
vertically or horizontally, with the most important information always located in the bottom-left corner
of the interface.
ANS: F

PTS: 1

REF: 69

6. In most cases, an identifying label should be from one to three words only and appear on one line.
ANS: T

PTS: 1

REF: 70

7. The Windows standard is to use sentence capitalization for identifying labels.
ANS: T

PTS: 1

REF: 70

8. Sentence capitalization means you capitalize only the first letter in the first word and in any words that
are customarily capitalized.
ANS: T

PTS: 1


REF: 70

9. When using book title capitalization, you capitalize the first letter in each word, except for articles,
conjunctions, and prepositions that do not occur at either the beginning or the end of the text.
ANS: T

PTS: 1

REF: 70

10. A button’s caption should be entered using book title capitalization.
ANS: T

PTS: 1

REF: 70

11. Labels that identify other controls (such as text boxes) should be right-aligned according to Windows
standards.


ANS: F

PTS: 1

REF: 76

12. It is a good idea when designing the user interface to use a generous amount of graphics to maintain
the user's interest.

ANS: F

PTS: 1

REF: 76

13. When creating printed materials, it is best to use a sans serif font to make the text easier to read.
ANS: F

PTS: 1

REF: 77

14. When creating materials to be displayed on screen, it is best to use a serif font to make the text easier
to read.
ANS: F

PTS: 1

REF: 77

15. Use italics and underlining to emphasize information on a display screen and make it easier to read.
ANS: F

PTS: 1

REF: 77

16. A control’s border is determined by its BorderStyle property.
ANS: T


PTS: 1

REF: 78

17. You should never use a dark color background or a light color font.
ANS: T

PTS: 1

REF: 78

18. The Windows standard recommendation for the BorderStyle property for a text box is FixedSingle.
ANS: F

PTS: 1

REF: 78

19. Once you have placed all of the controls in the desired locations on the form, it is a good idea to
unlock the controls from their current positions.
ANS: F

PTS: 1

REF: 80

20. Pseudocode uses standardized symbols to show the logical steps in a solution to a programming
project.
ANS: F


PTS: 1

REF: 91

21. You can use the Format function to improve the appearance of the numbers displayed in an interface.
ANS: T

PTS: 1

REF: 103

22. Most logic errors are typing errors that occur when entering instructions.
ANS: F

PTS: 1

REF: 105

23. The Code Editor detects most syntax errors as you enter the instructions.
ANS: T

PTS: 1

REF: 105


24. An instruction that is syntactically correct will also be logically correct.
ANS: F


PTS: 1

REF: 105

25. To test an application, you should use both valid and invalid test data.
ANS: T

PTS: 1

REF: 105

MULTIPLE CHOICE
1. Which of the following is the correct sequence of events when designing a solution?
a. Write the code, design the interface, and plan the application.
b. Design the interface, plan the application, and write the code.
c. Plan the application, write the code, and design the interface.
d. Plan the application, design the interface, and write the code.
ANS: D

PTS: 1

REF: 63

2. The programming process begins with a meeting between the programmer and the client. Which of the
following activities would be the last activity in the programming process?
a. Build the user interface
c. Test and debug
b. Code the application
d. Assemble the documentation
ANS: D


PTS: 1

REF: 63

3. The first step in planning an OO application is to ____.
a. draw a sketch of the user interface
b. identify the objects to which tasks will be assigned
c. identify the tasks the application needs to perform
d. identify the event required to trigger an object into performing its assigned tasks
ANS: C

PTS: 1

REF: 64

4. The last step in planning an OO application is to ____.
a. draw a sketch of the user interface
b. identify the objects to which tasks will be assigned
c. identify the tasks the application needs to perform
d. identify the event required to trigger an object into performing its assigned tasks
ANS: A

PTS: 1

REF: 64

5. The number of different colors used on a form should be limited to ____ colors exclusive of black,
white, and gray.
a. two

c. four
b. three
d. five
ANS: B

PTS: 1

REF: 78

6. You can change the background color of a text box by setting its ____ property.
a. BackGround
c. BackColor
b. Color
d. ForeColor
ANS: C

PTS: 1

REF: 78


7. A label control used to display output should use which of the following BorderStyle settings?
a. FixedSingle
c. No BorderStyle (None)
b. Fixed3D
d. Sizable
ANS: A

PTS: 1


REF: 78

8. The ____ property of a control is used to specify the position of the text within the control.
a. AlignText
c. Justify
b. Alignment
d. TextAlign
ANS: D

PTS: 1

REF: 79

9. A ____ provides an area in the form for the user to enter data.
a. text box
c. button
b. label
d. check box
ANS: A

PTS: 1

REF: 80

10. An access key allows the user to select an object using the ____ key in combination with a letter or
number.
a. Shift
c. Alt
b. Tab
d. Backspace

ANS: C

PTS: 1

REF: 81

11. The character used to create an access key by inserting it into a text property is ____.
a. ~
c. &
b. ^
d. <
ANS: C

PTS: 1

REF: 81

12. In Windows applications, pressing the ____ and Tab keys simultaneously will move the focus
backward.
a. Shift
c. Alt
b. Ctrl
d. Ctrl + Shift
ANS: A

PTS: 1

REF: 85

13. To employ an access key, press and hold down the ____ key as you tap the access key.

a. Scroll
c. Alt
b. Backslash
d. Tilde (~)
ANS: C

PTS: 1

REF: 86

14. A control's order of receiving focus is set by changing the ____ property.
a. GetFocus
c. NextControl
b. PrevControl
d. TabIndex
ANS: D

PTS: 1

REF: 82

15. Short English-like phrases written to represent the steps a program must take to solve a particular
problem are called ____.
a. a flowchart
c. object code
b. pseudocode
d. macro code
ANS: B

PTS: 1


REF: 91


16. The symbol used in code for assignment is the ____ symbol.
a. ~
c. <
b. ^
d. =
ANS: D

PTS: 1

REF: 94

17. The ____ method of a control will cause the focus on the screen to move to that control.
a. Focus
c. HighLight
b. GoTo
d. Select
ANS: A

PTS: 1

REF: 96

18. The syntax of the Focus method is ____, where “object” is the name of the object to which you want
the focus sent.
a. object.GetFocus()
c. object.Focus()

b. object.SetFocus()
d. object.FocusThis()
ANS: C

PTS: 1

REF: 96

19. Which of the following symbols is used to place documentation in a program and causes Visual Basic
.NET to ignore the line?
a. //
c. */
b. /*
d. '
ANS: D

PTS: 1

REF: 96

20. In the mathematical expression 4*3+15/3-6, which operation is performed first?
a. +
c. *
b. d. /
ANS: C

PTS: 1

REF: 98-99


21. In the mathematical expression 4*3+15/3-6, which operation is performed last?
a. +
c. *
b. d. /
ANS: B

PTS: 1

REF: 98-99

22. In the mathematical expression 12/6/2, the answer is ____.
a. 1
c. 3
b. 2
d. 4
ANS: A

PTS: 1

REF: 98-99

23. The ____ function temporarily converts a string to a number, and then returns the number.
a. Num
c. Val
Number
b.
d. Value
ANS: C

PTS: 1


REF: 102

24. A(n) ____ is a predefined procedure that performs a specific task and then returns a value.
a. algorithm
c. Sub procedure
b. function
d. class
ANS: B

PTS: 1

REF: 102

25. The ____ function can be used to improve the appearance of the numbers displayed on a screen.


a. Arrange
b. Change
ANS: D

c. Display
d. Format
PTS: 1

REF: 103




×