Deck 14: Additional Topics in Visual Basic

Full screen (f)
exit full mode
Question
A StatusStrip control can display date,time,or other informational messages in StatusStripStatusLabel objects.
Use Space or
up arrow
down arrow
to flip the card.
Question
The time will update automatically if it is displayed in a status bar label.
Question
When a toolbar is created using the ToolStrip control,the default number of buttons on the toolbar is 2.
Question
Setting the Uppercase property of a text box to True will force all of the user's entries to be converted to uppercase.
Question
MDI is an acronym for musical device interface.
Question
A form is made into a child window by using code at run time.
Question
A project that has a form specified as a parent can also have forms that are child forms and forms that operate independently.
Question
The ErrorMessage component can be used to display error messages directly on the form next to the field causing the error.
Question
In VB,it is not possible to have multiple child forms.
Question
MDI projects have a parent form and child forms.
Question
To add a code snippet to a project,you select "Insert Snippet" from the context menu available in the Editor window.
Question
Arranging the layout of child windows is controlled by writing code in a Window Menu on the parent form.
Question
Each button on a ToolStrip control has a separate click event.
Question
The DateTimePicker control has a Value property for the date.
Question
To create an MDI parent form,set the form's MDIParent property to True.
Question
When using a ToolStrip control,the images come from the project's Resources.
Question
The MaxLength property can be used to limit the number of characters the user can enter into a text box.
Question
The WebDisplay control can be used to display Web pages on a Windows Form.
Question
When you add a status bar to a form,the StatusStrip control will display two labels,one for date and one for time.
Question
A special type of form is required in order to use a child form with an MDI parent.
Question
WPF applications are similar to Web applications in that they are created as two files,one for the user interface and one for the programming logic.
Question
To design a toolbar that will have images on the button(s),you need to add a _______ control to the form.

A)ToolBar
B)ToolStrip
C)StatusStrip
D)ToolMenu
Question
WPF controls can only be added to Web Forms,not Windows Forms.
Question
To arrange the layout of multiple child documents,the parent's _______ method is used.

A)MdiLayout
B)LayoutMdi
C)MdiArrange
D)ArrangeMdi
Question
You can set the CharacterCasing property of a text box to _______ and the user's data entry will appear in uppercase.

A)Upper
B)Uppercase
C)Capitalized
D)ToUpper
Question
The _______ property of a text box can be used to control the number of characters the user can type into the box.

A)Length
B)InputCharacters
C)CharacterCasing
D)MaxLength
Question
Which of the following actions can the parent's Window menu perform?

A)List the open child windows
B)Allow the user to switch between windows
C)Arrange multiple child windows
D)All of these
Question
XML is a platform-independent format that is not tied to a specific language or vendor.
Question
Which of the following statements regarding MDI parent and child forms is correct?

A)When a parent form is closed,all of its child forms close with it.
B)Child forms can be moved outside of the parent's area.
C)A parent form cannot contain menus.
D)A project can contain only one child form.
Question
MDI is an acronym that stands for _______.

A)Multiple Device Interface
B)Multiple Document Interface
C)Many Document Interlink
D)Match Document Interlink
Question
You can check the e (KeyEventArgs)argument of a control's KeyUp event procedure to determine which key was pressed.
Question
A WPF application is similar to a Windows Forms application in that all code for a window is stored in a single file.
Question
SDI is an acronym that stands for _______.

A)Single Device Interface
B)Single Document Interface
C)Subset Document Interlink
D)Switch Document Interlink
Question
You can view XML files using Notepad,a text editor that comes with Microsoft Windows.
Question
In order to make a form become a parent form in your project,you must set the _______ property to True.

A)MDI
B)Parent
C)IsMdiContainer
D)IsParent
Question
The programmer can allow the user to display the open child windows vertically,horizontally,or cascaded by using the parent's _______.

A)Window method
B)Arrange method
C)LayoutMdi method
D)Menu method
Question
If you create a WPF application in Windows XP,the project will run,but the special effects will not appear.
Question
The _______ component can be used to validate user input.It will display a flashing icon and display a tooltip style message to the user.

A)Validation
B)Validate
C)Error
D)ErrorProvider
Question
The values stored in XML files must be placed in double quotes,not single quotes.
Question
_______ are small samples of code that can show you how to accomplish many programming tasks;they are available from the context menu in the Editor window.

A)SDIs
B)ToolStrips
C)Quickcodes
D)Code snippets
Question
How do you code a button on a toolbar?

A)Create a new event procedure for the button click and write the code in the Click event.
B)Create a new event procedure for the toolbar and write code in the toolbar Click event.
C)Add a ToolStripButton_Click event to the Handles clause for the menu event procedure that matches the button's actions.
D)Both answers,A and C,are correct.
Question
In Visual Studio,WPF stands for _______.

A)Windows Presentation Foundation
B)Windows Performance Functionality
C)Windows Precise Fluidity
D)Windows Preregistration Facility
Question
What are the two calendar controls that can be used to allow the user to select the date from a calendar? Describe each control and define the property that will hold the selected date?
Question
The user interface in WPF uses _______ code rather than HTML.

A)XHTML
B)DHTML
C)XML
D)XAML
Question
If a form that you need to design requires a toolbar and a status bar,which controls are needed to build the form?

A)Image control and the ToolBar control
B)ToolStrip control and StatusStrip control
C)Toolbar control and StatusBar control
D)Toolbar control and Resources control
Question
With _______,you can use WPF controls in a Windows Form application.

A)XAML
B)WPF Interoperability
C)DHTML
D)XML
Question
Identify the control that is used to place a WPF control on a Windows form and describe the process of adding the WPF control.
Question
Which of the following objects can be used for loading and displaying the data from an XML file?

A)XDocument
B)XDisplay
C)XMLDocument
D)XMLDisplay
Question
By default,the only control in the VB toolbox for the category,WPF Interoperability,is the _______.

A)ElementHost
B)Container
C)WPFHost
D)XML
Question
Identify the control that is used to display a Web page on a Windows Form and write the code that uses the Navigate method at run time to display the Microsoft Web site.
Question
Display information in a StatusStrip control by adding ToolStripStatusLabel objects and then setting the ToolStripStatusLabel's _______ property.

A)Text
B)DisplayText
C)LabelText
D)DisplayLabel
Question
_______ is a term used to refer to a XAML Browser Application.

A)XAML
B)XBAP
C)XAMLBAP
D)XMLAPP
Question
The _______ control is the calendar control that displays only the current day and date unless the user drops down the calendar.

A)MonthCalendar
B)DropDownCalendar
C)DateTimePicker
D)None of these
Question
The _______ can make your form resemble a browser window in Internet Explorer.

A)Web control
B)Browser control
C)Internet control
D)WebBrowser control
Question
XML files can only have one _______.

A)attribute
B)sibling
C)root node
D)element
Question
In XML,the contents within a set of tags are referred to as _______.

A)records
B)nodes
C)siblings
D)elements
Question
Designing a WPF page in Visual Studio is similar to ______________,because ____________

A)designing a Windows form,all controls use absolute positioning.
B)designing a Web form,controls use FlowLayout
C)designing a Web form,controls are HTML controls
D)None of these
Question
You can check the _______ in a control's KeyUp event procedure to determine which key was pressed.

A)e.KeyEventArgs
B)e.PressKeyArgs
C)e.KeyCode
D)e.Key
Question
Which of the following lines of code could be used to display the current date as MM/DD/YY in a status bar?

A)DateToolStripStatusLabel.Text = Now.ToShortDateString
B)DateToolStripStatusLabel.Text = Now.ToLongDateString
C)DateToolStripStatusLabel.Text = "MM/DD/YY"
D)DateToolStripStatusLabel.Text = Now.MM/DD/YY
Question
The _______ control is the calendar control that displays a one-month calendar.

A)MonthCalendar
B)DropDownCalendar
C)DateTimePicker
D)None of these
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/60
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 14: Additional Topics in Visual Basic
1
A StatusStrip control can display date,time,or other informational messages in StatusStripStatusLabel objects.
True
2
The time will update automatically if it is displayed in a status bar label.
False
3
When a toolbar is created using the ToolStrip control,the default number of buttons on the toolbar is 2.
False
4
Setting the Uppercase property of a text box to True will force all of the user's entries to be converted to uppercase.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
5
MDI is an acronym for musical device interface.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
6
A form is made into a child window by using code at run time.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
7
A project that has a form specified as a parent can also have forms that are child forms and forms that operate independently.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
8
The ErrorMessage component can be used to display error messages directly on the form next to the field causing the error.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
9
In VB,it is not possible to have multiple child forms.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
10
MDI projects have a parent form and child forms.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
11
To add a code snippet to a project,you select "Insert Snippet" from the context menu available in the Editor window.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
12
Arranging the layout of child windows is controlled by writing code in a Window Menu on the parent form.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
13
Each button on a ToolStrip control has a separate click event.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
14
The DateTimePicker control has a Value property for the date.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
15
To create an MDI parent form,set the form's MDIParent property to True.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
16
When using a ToolStrip control,the images come from the project's Resources.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
17
The MaxLength property can be used to limit the number of characters the user can enter into a text box.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
18
The WebDisplay control can be used to display Web pages on a Windows Form.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
19
When you add a status bar to a form,the StatusStrip control will display two labels,one for date and one for time.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
20
A special type of form is required in order to use a child form with an MDI parent.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
21
WPF applications are similar to Web applications in that they are created as two files,one for the user interface and one for the programming logic.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
22
To design a toolbar that will have images on the button(s),you need to add a _______ control to the form.

A)ToolBar
B)ToolStrip
C)StatusStrip
D)ToolMenu
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
23
WPF controls can only be added to Web Forms,not Windows Forms.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
24
To arrange the layout of multiple child documents,the parent's _______ method is used.

A)MdiLayout
B)LayoutMdi
C)MdiArrange
D)ArrangeMdi
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
25
You can set the CharacterCasing property of a text box to _______ and the user's data entry will appear in uppercase.

A)Upper
B)Uppercase
C)Capitalized
D)ToUpper
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
26
The _______ property of a text box can be used to control the number of characters the user can type into the box.

A)Length
B)InputCharacters
C)CharacterCasing
D)MaxLength
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
27
Which of the following actions can the parent's Window menu perform?

A)List the open child windows
B)Allow the user to switch between windows
C)Arrange multiple child windows
D)All of these
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
28
XML is a platform-independent format that is not tied to a specific language or vendor.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
29
Which of the following statements regarding MDI parent and child forms is correct?

A)When a parent form is closed,all of its child forms close with it.
B)Child forms can be moved outside of the parent's area.
C)A parent form cannot contain menus.
D)A project can contain only one child form.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
30
MDI is an acronym that stands for _______.

A)Multiple Device Interface
B)Multiple Document Interface
C)Many Document Interlink
D)Match Document Interlink
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
31
You can check the e (KeyEventArgs)argument of a control's KeyUp event procedure to determine which key was pressed.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
32
A WPF application is similar to a Windows Forms application in that all code for a window is stored in a single file.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
33
SDI is an acronym that stands for _______.

A)Single Device Interface
B)Single Document Interface
C)Subset Document Interlink
D)Switch Document Interlink
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
34
You can view XML files using Notepad,a text editor that comes with Microsoft Windows.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
35
In order to make a form become a parent form in your project,you must set the _______ property to True.

A)MDI
B)Parent
C)IsMdiContainer
D)IsParent
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
36
The programmer can allow the user to display the open child windows vertically,horizontally,or cascaded by using the parent's _______.

A)Window method
B)Arrange method
C)LayoutMdi method
D)Menu method
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
37
If you create a WPF application in Windows XP,the project will run,but the special effects will not appear.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
38
The _______ component can be used to validate user input.It will display a flashing icon and display a tooltip style message to the user.

A)Validation
B)Validate
C)Error
D)ErrorProvider
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
39
The values stored in XML files must be placed in double quotes,not single quotes.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
40
_______ are small samples of code that can show you how to accomplish many programming tasks;they are available from the context menu in the Editor window.

A)SDIs
B)ToolStrips
C)Quickcodes
D)Code snippets
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
41
How do you code a button on a toolbar?

A)Create a new event procedure for the button click and write the code in the Click event.
B)Create a new event procedure for the toolbar and write code in the toolbar Click event.
C)Add a ToolStripButton_Click event to the Handles clause for the menu event procedure that matches the button's actions.
D)Both answers,A and C,are correct.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
42
In Visual Studio,WPF stands for _______.

A)Windows Presentation Foundation
B)Windows Performance Functionality
C)Windows Precise Fluidity
D)Windows Preregistration Facility
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
43
What are the two calendar controls that can be used to allow the user to select the date from a calendar? Describe each control and define the property that will hold the selected date?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
44
The user interface in WPF uses _______ code rather than HTML.

A)XHTML
B)DHTML
C)XML
D)XAML
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
45
If a form that you need to design requires a toolbar and a status bar,which controls are needed to build the form?

A)Image control and the ToolBar control
B)ToolStrip control and StatusStrip control
C)Toolbar control and StatusBar control
D)Toolbar control and Resources control
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
46
With _______,you can use WPF controls in a Windows Form application.

A)XAML
B)WPF Interoperability
C)DHTML
D)XML
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
47
Identify the control that is used to place a WPF control on a Windows form and describe the process of adding the WPF control.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
48
Which of the following objects can be used for loading and displaying the data from an XML file?

A)XDocument
B)XDisplay
C)XMLDocument
D)XMLDisplay
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
49
By default,the only control in the VB toolbox for the category,WPF Interoperability,is the _______.

A)ElementHost
B)Container
C)WPFHost
D)XML
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
50
Identify the control that is used to display a Web page on a Windows Form and write the code that uses the Navigate method at run time to display the Microsoft Web site.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
51
Display information in a StatusStrip control by adding ToolStripStatusLabel objects and then setting the ToolStripStatusLabel's _______ property.

A)Text
B)DisplayText
C)LabelText
D)DisplayLabel
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
52
_______ is a term used to refer to a XAML Browser Application.

A)XAML
B)XBAP
C)XAMLBAP
D)XMLAPP
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
53
The _______ control is the calendar control that displays only the current day and date unless the user drops down the calendar.

A)MonthCalendar
B)DropDownCalendar
C)DateTimePicker
D)None of these
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
54
The _______ can make your form resemble a browser window in Internet Explorer.

A)Web control
B)Browser control
C)Internet control
D)WebBrowser control
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
55
XML files can only have one _______.

A)attribute
B)sibling
C)root node
D)element
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
56
In XML,the contents within a set of tags are referred to as _______.

A)records
B)nodes
C)siblings
D)elements
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
57
Designing a WPF page in Visual Studio is similar to ______________,because ____________

A)designing a Windows form,all controls use absolute positioning.
B)designing a Web form,controls use FlowLayout
C)designing a Web form,controls are HTML controls
D)None of these
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
58
You can check the _______ in a control's KeyUp event procedure to determine which key was pressed.

A)e.KeyEventArgs
B)e.PressKeyArgs
C)e.KeyCode
D)e.Key
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
59
Which of the following lines of code could be used to display the current date as MM/DD/YY in a status bar?

A)DateToolStripStatusLabel.Text = Now.ToShortDateString
B)DateToolStripStatusLabel.Text = Now.ToLongDateString
C)DateToolStripStatusLabel.Text = "MM/DD/YY"
D)DateToolStripStatusLabel.Text = Now.MM/DD/YY
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
60
The _______ control is the calendar control that displays a one-month calendar.

A)MonthCalendar
B)DropDownCalendar
C)DateTimePicker
D)None of these
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 60 flashcards in this deck.