Deck 2: Designing Applications

Full screen (f)
exit full mode
Question
A control's border is determined by its BorderStyle property.
Use Space or
up arrow
down arrow
to flip the card.
Question
Most invalid data is a result of typing errors that occur when entering instructions.
Question
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.
Question
You should never use a dark color background or a light color font.
Question
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
Question
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
Question
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.
Question
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
Question
The Windows standard is to use sentence capitalization for identifying labels.
Question
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
Question
The first step in the planning phase of a programming solution is to sketch the user interface.
Question
A ____ provides an area in the form for the user to enter data.

A) text box
B) label
C) button
D) check box
Question
An instruction that is syntactically correct will also be logically correct.
Question
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
Question
Labels that identify other controls (such as text boxes)should be right-aligned according to Windows standards.
Question
Pseudocode uses standardized symbols to show the logical steps in a solution to a programming project.
Question
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
Question
To test an application,you should use both valid and invalid test data.
Question
You can change the background color of a text box by setting its ____ property.

A) BackGround
B) Color
C) BackColor
D) ForeColor
Question
In most cases,an identifying label should be from one to three words only and appear on one line.
Question
A control's order of receiving focus is set by changing the ____ property.

A) GetFocus
B) PrevControl
C) NextControl
D) TabIndex
Question
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
Question
How many buttons do you need for the application?

A) one
B) two
C) three
D) four
Question
The symbol used in code for assignment is the ____ symbol.

A) ~
B) ^
C) <
D) =
Question
The ____ function temporarily converts a string to a number,and then returns the number.

A) Num
B) Number
C) Val
D) Value
Question
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()
Question
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
Question
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
Question
In Windows applications,pressing the ____ and Tab keys simultaneously will move the focus backward.

A) Shift
B) Ctrl
C) Alt
D) Ctrl+Shift
Question
In the mathematical expression 4 * 3 + 15 / 3 - 6,which operation is performed last?

A) +
B) -
C) *
D) /
Question
In the mathematical expression 4 * 3 + 15 / 3 - 6,which operation is performed first?

A) +
B) -
C) *
D) /
Question
The ____ function can be used to improve the appearance of the numbers displayed on a screen.

A) Arrange
B) Change
C) Display
D) Format
Question
How many text boxes do you need for the application?

A) three
B) four
C) five
D) six
Question
In the mathematical expression 12 / 6 / 2,the answer is ____.

A) 1
B) 2
C) 3
D) 4
Question
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)
Question
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 (~)
Question
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
Question
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) '
Question
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
Question
The character used to create an access key by inserting it into a text property is ____.

A) ~
B) ^
C) &
D) <
Question
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.
Question
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
Question
Complete the Result column in the chart provided.
Complete the Result column in the chart provided.  <div style=padding-top: 35px>
Question
What are sentence capitalization and book title capitalization? How are they used in developing a user interface?
Question
The following statements should send the output directly to the printer:
PrintForm1.PrintJob = Printing.PrintAction.PrintToPreview
PrintForm2.Print()
Question
Explain how the BorderStyle property is used for label controls and text box controls.
Question
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.
Question
Write a statement that clears the contents of the Text property of the txtLastName control.
Question
The following statements should clear each control:
lblEmpNumber.Txt = String.Empty
lblFirstName = String.""
lblLastName.Text = Empty.String
Question
What is debugging? Explain the difference between a syntax error and a logic error.
Question
The following expression should subtract 10 from the txtPrice control and then multiply the result by .07:
lblSalesTax.Text = Val(txtPrice.Text)- 10 * .07
Question
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
Question
Explain the difference between a string and an empty string.Why would you use an empty string?
Question
What do the TabIndex values determine for the controls of an interface? What is the standard tab order for controls on an interface?
Question
What is a TOE (Task,Object,Event)chart? Describe how it is created and used in the planning phase of an application.
Question
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.
Question
Define the term "flowchart." Define each of the three flowchart symbols and discuss how each is used within a flowchart.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/57
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Designing Applications
1
A control's border is determined by its BorderStyle property.
True
2
Most invalid data is a result of typing errors that occur when entering instructions.
True
3
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.
D
4
You should never use a dark color background or a light color font.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
5
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
6
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
7
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.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
8
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
9
The Windows standard is to use sentence capitalization for identifying labels.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
10
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
Unlock Deck
Unlock for access to all 57 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 57 flashcards in this deck.
Unlock Deck
k this deck
12
A ____ provides an area in the form for the user to enter data.

A) text box
B) label
C) button
D) check box
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
13
An instruction that is syntactically correct will also be logically correct.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
14
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
15
Labels that identify other controls (such as text boxes)should be right-aligned according to Windows standards.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
16
Pseudocode uses standardized symbols to show the logical steps in a solution to a programming project.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
17
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
18
To test an application,you should use both valid and invalid test data.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
19
You can change the background color of a text box by setting its ____ property.

A) BackGround
B) Color
C) BackColor
D) ForeColor
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
20
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 57 flashcards in this deck.
Unlock Deck
k this deck
21
A control's order of receiving focus is set by changing the ____ property.

A) GetFocus
B) PrevControl
C) NextControl
D) TabIndex
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
22
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
23
How many buttons do you need for the application?

A) one
B) two
C) three
D) four
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
24
The symbol used in code for assignment is the ____ symbol.

A) ~
B) ^
C) <
D) =
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
25
The ____ function temporarily converts a string to a number,and then returns the number.

A) Num
B) Number
C) Val
D) Value
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
26
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()
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
27
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
28
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
29
In Windows applications,pressing the ____ and Tab keys simultaneously will move the focus backward.

A) Shift
B) Ctrl
C) Alt
D) Ctrl+Shift
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
30
In the mathematical expression 4 * 3 + 15 / 3 - 6,which operation is performed last?

A) +
B) -
C) *
D) /
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
31
In the mathematical expression 4 * 3 + 15 / 3 - 6,which operation is performed first?

A) +
B) -
C) *
D) /
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
32
The ____ function can be used to improve the appearance of the numbers displayed on a screen.

A) Arrange
B) Change
C) Display
D) Format
Unlock Deck
Unlock for access to all 57 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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
34
In the mathematical expression 12 / 6 / 2,the answer is ____.

A) 1
B) 2
C) 3
D) 4
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
35
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)
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
36
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 (~)
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
37
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
Unlock Deck
Unlock for access to all 57 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) '
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
39
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
40
The character used to create an access key by inserting it into a text property is ____.

A) ~
B) ^
C) &
D) <
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
41
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 57 flashcards in this deck.
Unlock Deck
k this deck
42
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
43
Complete the Result column in the chart provided.
Complete the Result column in the chart provided.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
44
What are sentence capitalization and book title capitalization? How are they used in developing a user interface?
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
45
The following statements should send the output directly to the printer:
PrintForm1.PrintJob = Printing.PrintAction.PrintToPreview
PrintForm2.Print()
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
46
Explain how the BorderStyle property is used for label controls and text box controls.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
47
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.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
48
Write a statement that clears the contents of the Text property of the txtLastName control.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
49
The following statements should clear each control:
lblEmpNumber.Txt = String.Empty
lblFirstName = String.""
lblLastName.Text = Empty.String
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
50
What is debugging? Explain the difference between a syntax error and a logic error.
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
51
The following expression should subtract 10 from the txtPrice control and then multiply the result by .07:
lblSalesTax.Text = Val(txtPrice.Text)- 10 * .07
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
52
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
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
53
Explain the difference between a string and an empty string.Why would you use an empty string?
Unlock Deck
Unlock for access to all 57 flashcards in this deck.
Unlock Deck
k this deck
54
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 57 flashcards in this deck.
Unlock Deck
k this deck
55
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 57 flashcards in this deck.
Unlock Deck
k this deck
56
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 57 flashcards in this deck.
Unlock Deck
k this deck
57
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 57 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 57 flashcards in this deck.