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.. The only way to guarantee the success of
Trang 1Chapter 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
2 The only way to guarantee the success of an application is to actively involve the user in the planning phase
3 The first step in the planning phase of a programming solution is to sketch the user interface
4 Drawing a sketch of the user interface is performed in the planning phase
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
6 In most cases, an identifying label should be from one to three words only and appear on one line
7 The Windows standard is to use sentence capitalization for identifying labels
8 Sentence capitalization means you capitalize only the first letter in the first word and in any words that are customarily capitalized
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
10 A button’s caption should be entered using book title capitalization
11 Labels that identify other controls (such as text boxes) should be right-aligned according to Windows standards
Trang 2ANS: 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
13 When creating printed materials, it is best to use a sans serif font to make the text easier to read
14 When creating materials to be displayed on screen, it is best to use a serif font to make the text easier
to read
15 Use italics and underlining to emphasize information on a display screen and make it easier to read
16 A control’s border is determined by its BorderStyle property
17 You should never use a dark color background or a light color font
18 The Windows standard recommendation for the BorderStyle property for a text box is FixedSingle
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
20 Pseudocode uses standardized symbols to show the logical steps in a solution to a programming project
21 You can use the Format function to improve the appearance of the numbers displayed in an interface
22 Most logic errors are typing errors that occur when entering instructions
23 The Code Editor detects most syntax errors as you enter the instructions
Trang 324 An instruction that is syntactically correct will also be logically correct.
25 To test an application, you should use both valid and invalid test data
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
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?
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
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
5 The number of different colors used on a form should be limited to colors exclusive of black, white, and gray
6 You can change the background color of a text box by setting its property
Trang 47 A label control used to display output should use which of the following BorderStyle settings?
8 The property of a control is used to specify the position of the text within the control
9 A provides an area in the form for the user to enter data
10 An access key allows the user to select an object using the key in combination with a letter or number
11 The character used to create an access key by inserting it into a text property is
12 In Windows applications, pressing the and Tab keys simultaneously will move the focus backward
13 To employ an access key, press and hold down the key as you tap the access key
14 A control's order of receiving focus is set by changing the property
15 Short English-like phrases written to represent the steps a program must take to solve a particular problem are called
Trang 516 The symbol used in code for assignment is the symbol
17 The method of a control will cause the focus on the screen to move to that control
18 The syntax of the Focus method is , where “object” is the name of the object to which you want the focus sent
19 Which of the following symbols is used to place documentation in a program and causes Visual Basic .NET to ignore the line?
20 In the mathematical expression 4*3+15/3-6, which operation is performed first?
21 In the mathematical expression 4*3+15/3-6, which operation is performed last?
22 In the mathematical expression 12/6/2, the answer is
23 The function temporarily converts a string to a number, and then returns the number
24 A(n) is a predefined procedure that performs a specific task and then returns a value
25 The function can be used to improve the appearance of the numbers displayed on a screen
Trang 6a Arrange c Display