Deck 2: User Interface Design
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
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/74
Play
Full screen (f)
Deck 2: User Interface Design
1
TextBoxes can only display a single line of text,but RichTextBoxes can display text on multiple lines.
False
2
The default setting for the Checked property of a check box is True.
False
3
The object on the form with the lowest TabIndex will have the focus when the program begins.
True
4
Setting the control's ToolTip on ToolTip1 property will make a small label pop up when the user pauses the mouse pointer over the control.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
5
The user can select multiple radio buttons in the same group.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
6
The sequence for tabbing from control to control is determined by the TabIndex properties of the controls.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
7
When a check box is checked,the Checked property is set to True.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
8
A form can contain multiple group boxes.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
9
Labels are used primarily for user input.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
10
During run-time,if a radio button is selected,its Checked property is True.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
11
The FormLocation property determines the position of the form on the user's screen when the project is run.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
12
You can make labels,text boxes,and picture boxes appear to be three-dimensional by setting the BorderStyle property to Fixed3D.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
13
During design time,you can make a check box appear selected by setting its Checked property to False.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
14
Setting the Cancel property of a button to True will allow the user to press Enter to execute the code procedure associated with the button.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
15
If you don't want the focus to stop on a control when the user presses the Tab key,set the TabStop property to True.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
16
If you have several radio buttons,you can make them work together as a group by adding them to a GroupBox.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
17
You are designing a form that will have three groups of radio buttons.You should create three group boxes,and then create the groups of radio buttons inside each of the group boxes.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
18
You can select multiple controls by clicking on the first control and then holding the Ctrl key and clicking on each of the other controls in the group.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
19
Your project requires the user to choose his or her gender.You should display the choices,Male and Female,using check boxes.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
20
If you would like to change the font property of five controls on your form so that they are all the same,you cannot change them as a group,you must change them individually.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
21
Joining two strings of text is called concatenation.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
22
Assume that you are designing a form and it will be necessary for the user to type in his name.You should use a _____________ for inputting the user's name.
A)TextBox
B)Label
C)Button
D)CheckBox
A)TextBox
B)Label
C)Button
D)CheckBox
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
23
The property used to display information in a TextBox is _______.
A)Caption
B)Name
C)Text
D)Appearance
A)Caption
B)Name
C)Text
D)Appearance
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
24
You can change the color of the text in an object by changing the object's ForeColor property.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
25
The text property of a label or text box control can be cleared by using the Delete method.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
26
If you want to display text that can be modified by the user,use the _______.
A)TextBox control
B)Label control
C)Caption control
D)MaskedTextBox control
A)TextBox control
B)Label control
C)Caption control
D)MaskedTextBox control
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
27
Long code statements can be implicitly continued in multiple lines in Visual Basic 2010.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
28
The programmer can modify the appearance of ToolTips when they appear for the user.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
29
In code,you can make the text in a text box display left-aligned by using ________.
A)ObjectName.TextAlign = HorizontalAlignment.Left
B)ObjectName.Alignment = Left
C)ObjectName.Left = True
D)ObjectName.HorizontalAlignment = Left
A)ObjectName.TextAlign = HorizontalAlignment.Left
B)ObjectName.Alignment = Left
C)ObjectName.Left = True
D)ObjectName.HorizontalAlignment = Left
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
30
If you want to display text that cannot be modified by the user,use the _______.
A)TextBox control
B)Label control
C)Caption control
D)MaskedTextBox control
A)TextBox control
B)Label control
C)Caption control
D)MaskedTextBox control
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
31
The _______ must be set to True for text to wrap to a second line in a text box and a rich text box.
A)MultipleLine property
B)Wrapping and the MultipleLine properties
C)WordWrap and Multiline properties
D)MultipleLine
A)MultipleLine property
B)Wrapping and the MultipleLine properties
C)WordWrap and Multiline properties
D)MultipleLine
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
32
Which of the following is the best choice when the user needs to input her social security number?
A)RichTextBox
B)TextBox
C)MaskedTextBox
D)GroupBox
A)RichTextBox
B)TextBox
C)MaskedTextBox
D)GroupBox
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
33
Setting an object's Enabled property to False will make the object invisible to the user.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
34
Which of the following objects is a container?
A)MaskedTextBox
B)GroupBox
C)RadioButton
D)RichTextBox
A)MaskedTextBox
B)GroupBox
C)RadioButton
D)RichTextBox
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
35
Your project will allow the user to choose the background color for the form.You will offer them five choices.You should use _______.
A)check boxes
B)text boxes
C)radio buttons
D)name boxes
A)check boxes
B)text boxes
C)radio buttons
D)name boxes
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
36
In NameTextBox.Text,_______.
A)the property is NameTextBox
B)the property is Text
C)the object is Name
D)the object is Text
A)the property is NameTextBox
B)the property is Text
C)the object is Name
D)the object is Text
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
37
You are designing a form and you need a control that will be used for the user to type a brief summary of his work experience.You want to allow formatting options and multiple lines.The best control for this task would be a _______.
A)RichTextBox
B)TextBox
C)MaskedTextBox
D)GroupBox
A)RichTextBox
B)TextBox
C)MaskedTextBox
D)GroupBox
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
38
You can modify the setting in the _______ property if you want to align the text in a textbox to appear on the left side of the box.
A)AlignLeft
B)Text
C)Left
D)TextAlign
A)AlignLeft
B)Text
C)Left
D)TextAlign
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
39
Assume that you are designing a form where the user will need to select only one item from a group of displayed choices.This can best be accomplished by using _______.
A)check boxes
B)text boxes
C)radio buttons
D)name boxes
A)check boxes
B)text boxes
C)radio buttons
D)name boxes
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
40
The statement: ItemTextBox.Focus(),will place the insertion point in the text box called ItemTextBox.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
41
If you want a form to be centered on the screen when it first appears,you must set the _______ property of the Form.
A)WindowState
B)Maximized
C)StartPosition
D)Centered
A)WindowState
B)Maximized
C)StartPosition
D)Centered
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
42
In order to make a picture appear in a PictureBox control,you must set the ____ property.
A)Image
B)Picture
C)Graphic
D)Icon
A)Image
B)Picture
C)Graphic
D)Icon
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
43
Which of the following statements will clear the contents of a text box named MessageTextBox?
A)MessageTextBox.Text = ""
B)MessageTextBox.Clear()
C)MessageTextBox.Text = String.Empty
D)All of the answers are correct.
A)MessageTextBox.Text = ""
B)MessageTextBox.Clear()
C)MessageTextBox.Text = String.Empty
D)All of the answers are correct.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
44
A hair-styling salon needs help designing a form for the various services that they offer.What would you suggest they use that will display all of the services,and that will allow the customers to choose one or more items?
A)Check boxes
B)Text boxes
C)Radio buttons
D)Rich text boxes
A)Check boxes
B)Text boxes
C)Radio buttons
D)Rich text boxes
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
45
Setting the TabIndex of a control to 0 (zero)will _______.
A)cause the control to appear to the right of the other controls
B)make the control Visible
C)align the control to the left of the other controls
D)set the focus on this control when the program begins running
A)cause the control to appear to the right of the other controls
B)make the control Visible
C)align the control to the left of the other controls
D)set the focus on this control when the program begins running
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
46
If a radio button is currently selected,its _______ property will be True.
A)Checked
B)Enabled
C)Selected
D)Visible
A)Checked
B)Enabled
C)Selected
D)Visible
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
47
Create keyboard access on an object by ______________ in the Text property.
A)using ampersand (&)
B)using at (@)
C)using underscore ( _ )
D)capitalizing the first letter of the word
A)using ampersand (&)
B)using at (@)
C)using underscore ( _ )
D)capitalizing the first letter of the word
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
48
The property used to display something in a PictureBox control is _______.
A)Picture
B)Name
C)Text
D)Image
A)Picture
B)Name
C)Text
D)Image
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
49
As a program runs,the insertion point can be moved from control to control.In order to reset the focus back in a text box named NameTextBox,you should use the code _______.
A)NameTextBox.Focus()
B)NameTextBox = Focus()
C)NameTextBox = Top()
D)NameTextBox.First()
A)NameTextBox.Focus()
B)NameTextBox = Focus()
C)NameTextBox = Top()
D)NameTextBox.First()
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
50
Small labels that pop up when the user pauses the mouse pointer over a control on the form are created by _______.
A)using the Focus method
B)changing the object's Text property to True
C)setting the object's ToolTip on ToolTip1 property
D)setting the object's Value property to True
A)using the Focus method
B)changing the object's Text property to True
C)setting the object's ToolTip on ToolTip1 property
D)setting the object's Value property to True
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
51
You can vertically align a group of controls on your form by first selecting all of the controls to be aligned,and then _______.
A)setting their Size property to the same value
B)choosing Align Lefts from the Layout toolbar
C)selecting "Make Same Size" from the Layout toolbar
D)setting their Height property to the same value
A)setting their Size property to the same value
B)choosing Align Lefts from the Layout toolbar
C)selecting "Make Same Size" from the Layout toolbar
D)setting their Height property to the same value
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
52
Which design time property setting should be used on an object named UserInputTextBox in order to make the insertion point appear in the object when the form first appears?
A)Focus property set to True
B)TabStop property set to Focus
C)TabIndex property set to True
D)TabIndex property set to 0
A)Focus property set to True
B)TabStop property set to Focus
C)TabIndex property set to True
D)TabIndex property set to 0
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
53
The Focus method _______.
A)will adjust the picture clarity on the monitor
B)can be used to clear the contents of a text box
C)allows the programmer to set the Tab order
D)is used to place the insertion point in an object
A)will adjust the picture clarity on the monitor
B)can be used to clear the contents of a text box
C)allows the programmer to set the Tab order
D)is used to place the insertion point in an object
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
54
If the text displayed on a button is "Clear",and the C in the word Clear is underlined,the user can press ______________ to execute the code in the "Clear" button.
A)just the letter C
B)the Ctrl key and the letter C
C)the Alt key and the letter C
D)the Shift key and the letter C
A)just the letter C
B)the Ctrl key and the letter C
C)the Alt key and the letter C
D)the Shift key and the letter C
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
55
If you create a PictureBox that has a picture displayed during design time,but you don't want it to appear when the project runs,you must _______.
A)set the SizeMode property to True
B)set the Visible property to True
C)set the SizeMode property to False
D)set the Visible property to False
A)set the SizeMode property to True
B)set the Visible property to True
C)set the SizeMode property to False
D)set the Visible property to False
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
56
If a text box has a TabIndex lower than all of the other objects,it will _______.
A)appear to the right of the other controls
B)be skipped when the user presses the Tab key
C)be aligned to the left of the other controls
D)have the focus when the program begins running
A)appear to the right of the other controls
B)be skipped when the user presses the Tab key
C)be aligned to the left of the other controls
D)have the focus when the program begins running
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
57
The _______ symbol is used for creating keyboard access on Visual Basic objects.
A)& (ampersand)
B)@ (at)
C)' (apostrophe)
D)_ (underscore)
A)& (ampersand)
B)@ (at)
C)' (apostrophe)
D)_ (underscore)
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
58
Setting the AcceptButton property of a form to a button name will cause the code in that button to be executed when the user presses _______.
A)the Esc key
B)the Enter key
C)the Home key
D)the Tab key
A)the Esc key
B)the Enter key
C)the Home key
D)the Tab key
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
59
Set the _______ property of a label,text box,or picture box to make it appear to be three-dimensional or flat.
A)3D
B)Fixed3D
C)BorderStyle
D)FixedSingle
A)3D
B)Fixed3D
C)BorderStyle
D)FixedSingle
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
60
In order to make a picture expand to fill an image control,you must _______.
A)set the SizeMode property to StretchImage
B)set the Visible property to True
C)set the SizeMode property to AutoSize
D)set the Visible property to False
A)set the SizeMode property to StretchImage
B)set the Visible property to True
C)set the SizeMode property to AutoSize
D)set the Visible property to False
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
61
Explain how to set the tab order of the controls on a form.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
62
The _______ property of a control determines whether or not the control is available or "grayed-out."
A)Enabled
B)Checked
C)Visible
D)Available
A)Enabled
B)Checked
C)Visible
D)Available
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
63
The code: NameTextBox.BackColor = Color.White,will _______.
A)change the color of the border of the NameTextBox control to white
B)cause the NameTextBox control to have a white background
C)change the background color of the form to white
D)change the text in the NameTextBox control to the color,white
A)change the color of the border of the NameTextBox control to white
B)cause the NameTextBox control to have a white background
C)change the background color of the form to white
D)change the text in the NameTextBox control to the color,white
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
64
Which of the following statements makes the visibility of the label match the setting in the check box?
A)CheckBoxName.Enabled = LabelName.Visible
B)LabelName.Checked = CheckBoxName.Visible
C)LabelName.Visible = CheckBoxName.Checked
D)CheckBoxName.Checked=LabelName.Visible
A)CheckBoxName.Enabled = LabelName.Visible
B)LabelName.Checked = CheckBoxName.Visible
C)LabelName.Visible = CheckBoxName.Checked
D)CheckBoxName.Checked=LabelName.Visible
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
65
Use a With and End With statement to write the code that will clear NameTextBox and set the focus in that control.
With NameTextBox
With NameTextBox
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
66
Which of the following is a valid example of concatenation?
A)MessageLabel.Text = MessageLabel.Text & " " & NameTextBox.Text
B)WeatherReportLabel.Text = Today's weather will be & WeatherTextBox.Text
C)CityAndStateLabel.Text = CityTextBox.Text AND StateTextBox.Text
D)"Good Morning," & NameTextBox.Text = GreetingLabel.Text
A)MessageLabel.Text = MessageLabel.Text & " " & NameTextBox.Text
B)WeatherReportLabel.Text = Today's weather will be & WeatherTextBox.Text
C)CityAndStateLabel.Text = CityTextBox.Text AND StateTextBox.Text
D)"Good Morning," & NameTextBox.Text = GreetingLabel.Text
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
67
The ______ symbol is used for concatenation.
A)& (ampersand)
B)@ (at)
C)' (apostrophe)
D)_ (underscore)
A)& (ampersand)
B)@ (at)
C)' (apostrophe)
D)_ (underscore)
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
68
When you want to change several properties of a single control,you can use _______.
A)For and Next statements
B)With and End With statements
C)Property and End Property statements
D)the SelectAll property
A)For and Next statements
B)With and End With statements
C)Property and End Property statements
D)the SelectAll property
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
69
You can break a long line of code into multiple lines by ________ and then continuing writing code on the next line.
A)pressing the Enter key at the end of the line
B)adding a blank space and an ampersand (&)at the end of the line
C)adding a blank space and an underscore ( _ )at the end of the line
D)A or C above
A)pressing the Enter key at the end of the line
B)adding a blank space and an ampersand (&)at the end of the line
C)adding a blank space and an underscore ( _ )at the end of the line
D)A or C above
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
70
What is the component tray? List a control that appears in the component tray.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
71
Use a blank space followed by the ______ symbol for continuing long lines of code to the next line.
A)& (ampersand)
B)@ (at)
C)' (apostrophe)
D)_ (underscore)
A)& (ampersand)
B)@ (at)
C)' (apostrophe)
D)_ (underscore)
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
72
Line and Shape controls _______.
A)are installed in the Visual Basic toolbox by default
B)are included in Microsoft PowerPacks which are not installed in the toolbox by default
C)include the LineShape,OvalShape,and RectangleShape tools
D)cannot be used on forms with group boxes
A)are installed in the Visual Basic toolbox by default
B)are included in Microsoft PowerPacks which are not installed in the toolbox by default
C)include the LineShape,OvalShape,and RectangleShape tools
D)cannot be used on forms with group boxes
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
73
If you would like to change the color of text,you must change the _____________ property.
A)ForeColor
B)BackColor
C)Appearance
D)Background
A)ForeColor
B)BackColor
C)Appearance
D)Background
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
74
The code: NameTextBox.ForeColor = Color.Red,will _______.
A)change the color of the border of the NameTextBox control to red
B)cause the NameTextBox control to have a red background
C)change the background color of the form to red
D)change the text in the NameTextBox control to the color,red
A)change the color of the border of the NameTextBox control to red
B)cause the NameTextBox control to have a red background
C)change the background color of the form to red
D)change the text in the NameTextBox control to the color,red
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck