Deck 2: Designing Applications
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/60
Play
Full screen (f)
Deck 2: Designing Applications
1
An access key allows the user to select an object using the ____ key in combination with a letter or number.
A)Shift
B)Tab
C)Alt
D)Backspace
A)Shift
B)Tab
C)Alt
D)Backspace
C
2
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.
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.
D
3
A label control used to display output should use which of the following BorderStyle settings?
A)FixedSingle
B)Fixed3D
C)No BorderStyle (None)
D)Sizable
A)FixedSingle
B)Fixed3D
C)No BorderStyle (None)
D)Sizable
A
4
A label control's ____ property determines whether the control automatically sizes to fit its current contents.
A)TextAlign
B)Fit
C)MiddleCenter
D)AutoSize
A)TextAlign
B)Fit
C)MiddleCenter
D)AutoSize
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
5
You should never use a dark color background or a light color font.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
6
Labels that identify other controls (such as text boxes)should be right-aligned according to Windows standards.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
7
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.
B)Code the application.
C)Test and debug.
D)Assemble the documentation.
A)Build the user interface.
B)Code the application.
C)Test and debug.
D)Assemble the documentation.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
8
The ____ property of a control is used to specify the position of the text within the control.
A)AlignText
B)Alignment
C)Justify
D)TextAlign
A)AlignText
B)Alignment
C)Justify
D)TextAlign
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
9
A ____ provides an area in the form for the user to enter data.
A)text box
B)label
C)button
D)check box
A)text box
B)label
C)button
D)check box
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
10
You can hide a control on a form while an application is running by changing the Visible property from False to True.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
11
The first step in the planning phase of a programming solution is to sketch the user interface.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
12
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 to perform its assigned tasks
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 to perform its assigned tasks
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
13
The number of different colors used on a form should be limited to ____ colors exclusive of black,white,and gray.
A)two
B)three
C)four
D)five
A)two
B)three
C)four
D)five
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
14
The Windows standard is to use sentence capitalization for identifying labels.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
15
Most invalid data is a result of typing errors that occur when entering instructions.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
16
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 to perform its assigned tasks
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 to perform its assigned tasks
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
17
To test an application,you should use both valid and invalid test data.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
18
In most cases,an identifying label should be from one to three words only and appear on one line.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
19
An instruction that is syntactically correct will also be logically correct.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
20
A control's border is determined by its BorderStyle property.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
21
Short English-like phrases written to represent the steps a program must take to solve a particular problem are called ____.
A)flowcharts
B)pseudocode
C)object code
D)macro code
A)flowcharts
B)pseudocode
C)object code
D)macro code
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
22
In the mathematical expression 12 / 6 / 2,the answer is ____.
A)1
B)2
C)3
D)4
A)1
B)2
C)3
D)4
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
23
Your first step in developing the application is to ____.
A)draw a sketch of the user interface
B)meet with the client
C)assemble the documentation
D)plan the application
A)draw a sketch of the user interface
B)meet with the client
C)assemble the documentation
D)plan the application
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
24
In the mathematical expression 4 * 3 + 15 / 3 - 6,which operation is performed last?
A)+
B)-
C)*
D)/
A)+
B)-
C)*
D)/
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
25
To employ an access key,press and hold down the ____ key as you tap the access key.
A)Scroll
B)Backslash
C)Alt
D)Tilde (˜)
A)Scroll
B)Backslash
C)Alt
D)Tilde (˜)
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
26
The character used to create an access key by inserting it into a text property is ____.
A)˜
B)^
C)&
D)<
A)˜
B)^
C)&
D)<
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
27
Which of the following statements formats the contents of the txtSalesTax control with a percent sign and two digits to the right of the decimal?
A)txtSalesTax.Text = Format(txtSalesTax, "Percent")
B)txtSalesTax.Text = Format(txtSalesTax, "Fixed")
C)txtSalesTax.Text = Format(txtSalesTax.Text, "Percent")
D)txtSalesTax.Text = Format("Percent", txtSalesTax.Text)
A)txtSalesTax.Text = Format(txtSalesTax, "Percent")
B)txtSalesTax.Text = Format(txtSalesTax, "Fixed")
C)txtSalesTax.Text = Format(txtSalesTax.Text, "Percent")
D)txtSalesTax.Text = Format("Percent", txtSalesTax.Text)
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
28
A(n)____ is a predefined procedure that performs a specific task and then returns a value.
A)algorithm
B)function
C)Sub procedure
D)class
A)algorithm
B)function
C)Sub procedure
D)class
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
29
How many buttons do you need for the application?
A)one
B)two
C)three
D)four
A)one
B)two
C)three
D)four
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
30
In the mathematical expression 4 * 3 + 15 / 3 - 6,which operation is performed first?
A)+
B)-
C)*
D)/
A)+
B)-
C)*
D)/
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
31
The ____ values determine the order in which each control receives the focus.
A)GetFocus
B)PrevControl
C)NextControl
D)TabIndex
A)GetFocus
B)PrevControl
C)NextControl
D)TabIndex
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
32
The symbol used in code for assignment is the ____ symbol.
A)˜
B)^
C)<
D)=
A)˜
B)^
C)<
D)=
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
33
How many text boxes do you need for the application?
A)three
B)four
C)five
D)six
A)three
B)four
C)five
D)six
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
34
The ____ method of a control will cause the focus on the screen to move to that control.
A)Focus
B)GoTo
C)HighLight
D)Select
A)Focus
B)GoTo
C)HighLight
D)Select
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
35
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()
B)object.SetFocus()
C)object.Focus()
D)object.FocusThis()
A)object.GetFocus()
B)object.SetFocus()
C)object.Focus()
D)object.FocusThis()
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
36
If the user enters $20 in the txtPrice control and 4 in the txtQuantity control,the Val(txtPrice.Text)* Val(txtQuantity.Text)expression will evaluate to ____.
A)0
B)40
C)80
D)none of the above
A)0
B)40
C)80
D)none of the above
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
37
The ____ function can be used to improve the appearance of the numbers displayed on a screen.
A)Arrange
B)Change
C)Display
D)Format
A)Arrange
B)Change
C)Display
D)Format
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following symbols is used to place documentation in a program and causes the computer to ignore the remaining content on the line?
A)//
B)/*
C)*/
D)'
A)//
B)/*
C)*/
D)'
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
39
The ____ function temporarily converts a string to a number,and then returns the number.
A)Num
B)Number
C)Val
D)Value
A)Num
B)Number
C)Val
D)Value
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
40
In Windows applications,pressing the ____ and Tab keys simultaneously will move the focus backward.
A)Shift
B)Ctrl
C)Alt
D)Ctrl+Shift
A)Shift
B)Ctrl
C)Alt
D)Ctrl+Shift
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
41
Write a statement that clears the contents of the Text property of the txtLastName control.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
42
Complete the Result column in the chart provided.


Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
43
What is a TOE (Task,Object,Event)chart? Describe how it is created and used in the planning phase of an application.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
44
Define the term "flowchart." Define each of the three flowchart symbols and discuss how each is used within a flowchart.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
45
What is debugging? Explain the difference between a syntax error and a logic error.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
46
What do the TabIndex values determine for the controls of an interface? What is the standard tab order for controls on an interface?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
47
Write a statement that adds the contents of the txtNum1 control to the contents of the txtNum2 control,and then multiplies the result by 5.The result is displayed in the lblResult control.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
48
The following statement should subtract the contents of the txtEndInventory control from the contents of the txtBeginInventory control,and then divide the difference by 2:
Val(txtEndInventory)- Val(txtBeginInventory)\ 2
Val(txtEndInventory)- Val(txtBeginInventory)\ 2
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
49
Write a statement that displays the net pay in the lblNetPay control so that it is formatted with a dollar sign and two decimal places.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
50
The following expression should subtract 10 from the txtPrice control and then multiply the result by .07:
lblSalesTax.Text = Val(txtPrice.Text)- 10 * .07
lblSalesTax.Text = Val(txtPrice.Text)- 10 * .07
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
51
Which of the following statements would calculate and display the total fee?
A)TotalFee.Text = Val(txtNumberSessions) * Val(txtRate)
B)TotalFee.Text = NumberSessions.Text * Rate.Text
C)lblTotalFee.Text = Val(txtNumberSessions.Text) * Val(txtRate.Text)
D)TotalFee = NumberSessions * Rate
A)TotalFee.Text = Val(txtNumberSessions) * Val(txtRate)
B)TotalFee.Text = NumberSessions.Text * Rate.Text
C)lblTotalFee.Text = Val(txtNumberSessions.Text) * Val(txtRate.Text)
D)TotalFee = NumberSessions * Rate
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
52
Explain the difference between a string and an empty string.Why would you use an empty string?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
53
List the four steps you should follow when planning an object-oriented application.Be sure to put the steps in the proper numeric order (1 through 4).
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
54
Which of the following statements is true about printing the estimate?
A)You must specify whether the estimate will be sent directly to the printer or to a PrintPreview window.
B)The PrintForm tool displays on the form.
C)The printing task requires only one code statement.
D)You cannot keep the buttons on the interface from appearing on the printed estimate.
A)You must specify whether the estimate will be sent directly to the printer or to a PrintPreview window.
B)The PrintForm tool displays on the form.
C)The printing task requires only one code statement.
D)You cannot keep the buttons on the interface from appearing on the printed estimate.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
55
What is an access key? What are three reasons access keys should be set in a Windows application?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
56
Describe four GUI design tips that follow the Windows standards for the use of graphics,fonts,and color.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
57
Explain how the BorderStyle property is used for label controls and text box controls.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
58
The following statements should send the output directly to the printer:
PrintForm1.PrintJob = Printing.PrintAction.PrintToPreview
PrintForm2.Print()
PrintForm1.PrintJob = Printing.PrintAction.PrintToPreview
PrintForm2.Print()
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
59
The following statements should clear each control:
lblEmpNumber.Txt = String.Empty
lblFirstName = String.""
lblLastName.Text = Empty.String
lblEmpNumber.Txt = String.Empty
lblFirstName = String.""
lblLastName.Text = Empty.String
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
60
What are sentence capitalization and book title capitalization? How are they used in developing a user interface?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck