Deck 2: Designing Applications

ملء الشاشة (f)
exit full mode
سؤال
A control's border is determined by its BorderStyle property.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Most invalid data is a result of typing errors that occur when entering instructions.
سؤال
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.
سؤال
You should never use a dark color background or a light color font.
سؤال
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
سؤال
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
سؤال
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.
سؤال
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
سؤال
The Windows standard is to use sentence capitalization for identifying labels.
سؤال
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
سؤال
The first step in the planning phase of a programming solution is to sketch the user interface.
سؤال
A ____ provides an area in the form for the user to enter data.

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

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

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

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

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

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

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

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

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

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

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

A) 1
B) 2
C) 3
D) 4
سؤال
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)
سؤال
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(n)____ is a predefined procedure that performs a specific task and then returns a value.

A) algorithm
B) function
C) Sub procedure
D) class
سؤال
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) '
سؤال
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
سؤال
The character used to create an access key by inserting it into a text property is ____.

A) ~
B) ^
C) &
D) <
سؤال
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.
سؤال
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
سؤال
Complete the Result column in the chart provided.
Complete the Result column in the chart provided.  <div style=padding-top: 35px>
سؤال
What are sentence capitalization and book title capitalization? How are they used in developing a user interface?
سؤال
The following statements should send the output directly to the printer:
PrintForm1.PrintJob = Printing.PrintAction.PrintToPreview
PrintForm2.Print()
سؤال
Explain how the BorderStyle property is used for label controls and text box controls.
سؤال
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.
سؤال
Write a statement that clears the contents of the Text property of the txtLastName control.
سؤال
The following statements should clear each control:
lblEmpNumber.Txt = String.Empty
lblFirstName = String.""
lblLastName.Text = Empty.String
سؤال
What is debugging? Explain the difference between a syntax error and a logic error.
سؤال
The following expression should subtract 10 from the txtPrice control and then multiply the result by .07:
lblSalesTax.Text = Val(txtPrice.Text)- 10 * .07
سؤال
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
سؤال
Explain the difference between a string and an empty string.Why would you use an empty string?
سؤال
What do the TabIndex values determine for the controls of an interface? What is the standard tab order for controls on an interface?
سؤال
What is a TOE (Task,Object,Event)chart? Describe how it is created and used in the planning phase of an application.
سؤال
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.
سؤال
Define the term "flowchart." Define each of the three flowchart symbols and discuss how each is used within a flowchart.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/57
auto play flashcards
العب
simple tutorial
ملء الشاشة (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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
9
The Windows standard is to use sentence capitalization for identifying labels.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
11
The first step in the planning phase of a programming solution is to sketch the user interface.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
13
An instruction that is syntactically correct will also be logically correct.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
15
Labels that identify other controls (such as text boxes)should be right-aligned according to Windows standards.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
16
Pseudocode uses standardized symbols to show the logical steps in a solution to a programming project.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
18
To test an application,you should use both valid and invalid test data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
20
In most cases,an identifying label should be from one to three words only and appear on one line.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
23
How many buttons do you need for the application?

A) one
B) two
C) three
D) four
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
24
The symbol used in code for assignment is the ____ symbol.

A) ~
B) ^
C) <
D) =
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
30
In the mathematical expression 4 * 3 + 15 / 3 - 6,which operation is performed last?

A) +
B) -
C) *
D) /
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
31
In the mathematical expression 4 * 3 + 15 / 3 - 6,which operation is performed first?

A) +
B) -
C) *
D) /
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
33
How many text boxes do you need for the application?

A) three
B) four
C) five
D) six
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
34
In the mathematical expression 12 / 6 / 2,the answer is ____.

A) 1
B) 2
C) 3
D) 4
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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 (~)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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) '
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
40
The character used to create an access key by inserting it into a text property is ____.

A) ~
B) ^
C) &
D) <
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
43
Complete the Result column in the chart provided.
Complete the Result column in the chart provided.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
44
What are sentence capitalization and book title capitalization? How are they used in developing a user interface?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
45
The following statements should send the output directly to the printer:
PrintForm1.PrintJob = Printing.PrintAction.PrintToPreview
PrintForm2.Print()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
46
Explain how the BorderStyle property is used for label controls and text box controls.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
48
Write a statement that clears the contents of the Text property of the txtLastName control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
49
The following statements should clear each control:
lblEmpNumber.Txt = String.Empty
lblFirstName = String.""
lblLastName.Text = Empty.String
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
50
What is debugging? Explain the difference between a syntax error and a logic error.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
53
Explain the difference between a string and an empty string.Why would you use an empty string?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
57
Define the term "flowchart." Define each of the three flowchart symbols and discuss how each is used within a flowchart.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.