Deck 14: Windows Forms Gui: a Deeper Look
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/124
العب
ملء الشاشة (f)
Deck 14: Windows Forms Gui: a Deeper Look
1
To add a control,the user must write the code that instantiates the control object from a class.
False
2
The form acts as a container for components and controls.
True
3
A(n)_________ is a component with a graphical part.
A)Interface
B)Component
C)Form
D)Control
A)Interface
B)Component
C)Form
D)Control
D
4
The benefit of using a ComboBox is to:
A)combine two controls together to get the benefits of both
B)create a combination of events to occur when normally only one would
C)have a drop-down box
D)All of the above
A)combine two controls together to get the benefits of both
B)create a combination of events to occur when normally only one would
C)have a drop-down box
D)All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
5
Events in Visual Basic can be:
A)generated within the code of the program
B)started with a click on a button,or other control
C)generated by keyboard input
D)All of the above
A)generated within the code of the program
B)started with a click on a button,or other control
C)generated by keyboard input
D)All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
6
The active window is the one that has the focus.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
7
A component is an instance of a class that inherits from a form.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
8
A Panel is used to:
A)group or store components
B)display text
C)create a border around components
D)add style to a form
A)group or store components
B)display text
C)create a border around components
D)add style to a form
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
9
Custom controls can be created but cannot be inserted into the toolbox.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
10
Many of the components used for Windows apps in Visual Basic are defined in namespace:
A)System
B)System.Windows.Forms
C)System.Windows.UI
D)System.Web.UI
A)System
B)System.Windows.Forms
C)System.Windows.UI
D)System.Web.UI
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
11
Events occur when the user clicks the mouse,types on the keyboard or interacts with controls.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
12
Users can input and display dates through:
A)the MonthCalendar control
B)the DateTimePicker control
C)the CalendarTime control
D)a and b
A)the MonthCalendar control
B)the DateTimePicker control
C)the CalendarTime control
D)a and b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
13
A GUI allows the user to interact with a program visually.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
14
An example of a component would be:
A)a button
B)a timer
C)a form
D)All of the above
A)a button
B)a timer
C)a form
D)All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
15
Labels allow input to be typed into them.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
16
ListBoxes and ComboBoxes are identical other than the fact that ComboBoxes have a drop-down list.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
17
All of the Visual Basic controls and components can be found in the tool box.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
18
Delegates act as:
A)ways of sorting events
B)a go-between for objects raising events and the methods that handle the events
C)masks for methods that handle events
D)a way to call many methods at once
A)ways of sorting events
B)a go-between for objects raising events and the methods that handle the events
C)masks for methods that handle events
D)a way to call many methods at once
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
19
A ComboBox can display info and also have user-input info.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
20
LinkLabels are used to:
A)organize a group of labels
B)bring the user to a desired location
C)allow multiple labels to be modified during runtime all at once
D)All of the above
A)organize a group of labels
B)bring the user to a desired location
C)allow multiple labels to be modified during runtime all at once
D)All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
21
Docking and anchoring accomplish the same task.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
22
You can use the TabIndex property to determine the order in which tabbing will occur.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
23
_____________ causes controls to remain at a fixed distance from the sides of the container even when the control is resized.
A)Anchoring
B)Docking
C)Focusing
D)None of the above
A)Anchoring
B)Docking
C)Focusing
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
24
Once an event is raised,every method referenced by the delegate is called.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
25
The correct syntax for an event handler is eventName_controlName.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
26
The Form class defines the methods that handle each event within the Form class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
27
Which of the following does not describe an event where the user interacts with the GUI?
A)booting up a machine
B)scrolling through a document
C)closing a window
D)clicking on a file
A)booting up a machine
B)scrolling through a document
C)closing a window
D)clicking on a file
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
28
By looking up a control's class and clicking the events section,you can determine all the events and the arguments that a control has.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
29
_____________ can set the dimensions of a control to the dimensions of the parent container at all times.
A)Anchoring
B)Docking
C)Focusing
D)None of the above
A)Anchoring
B)Docking
C)Focusing
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
30
The Enabled property does not allow the control to perform actions when it's set to false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
31
The Padding property specifies the distance between the docked control and the Form edges.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
32
Docking and anchoring are easy ways to:
A)allow a form to change sizes without altering the layout too much.
B)prevent users from changing the layout of the window.
C)prevent a user from resizing the form.
D)All of the above
A)allow a form to change sizes without altering the layout too much.
B)prevent users from changing the layout of the window.
C)prevent a user from resizing the form.
D)All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
33
The _____ key can be pressed to transfer the focus between several controls quickly.
A)Tab
B)Shift
C)Ctrl
D)Alt
A)Tab
B)Shift
C)Ctrl
D)Alt
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
34
Most of the code to create a GUI is written by the programmer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
35
Many controls already have predefined delegates corresponding to every event they can generate.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
36
Property Anchor allows you to prevent form alterations by the user.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
37
How should the event-handler method for the control OutputLabel and the event Click be named?
A)OutputLabel_Click
B)Click
C)OutputLabel.Click
D)None of the above.
A)OutputLabel_Click
B)Click
C)OutputLabel.Click
D)None of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
38
How can event handlers be generated?
A)by double-clicking on components
B)explicitly writing the code for the event
C)using the Properties window
D)All of the above
A)by double-clicking on components
B)explicitly writing the code for the event
C)using the Properties window
D)All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
39
Each event is allowed only one event handler method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
40
An active control is one that:
A)can move about the screen.
B)is most commonly clicked by the user
C)has the focus
D)changes,whether it is color or another property,on an event.
A)can move about the screen.
B)is most commonly clicked by the user
C)has the focus
D)changes,whether it is color or another property,on an event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
41
When adding a ToolTip component from the Toolbox,it appears on an arbitrary location on the Form in Design view.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
42
Panels have the ability to have scrollbars should their contents get too large.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
43
Visual Studio provides snap lines to help align controls.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
44
What does the InitialDelay property of the ToolTip determine?
A)The amount of time that the tool tip appears while the mouse is over a control.
B)The amount of time that a mouse must hover over a control before a tool tip appears.
C)The amount of time between which two different tool tips appear.
D)The amount of time in which the tool tip is hidden for.
A)The amount of time that the tool tip appears while the mouse is over a control.
B)The amount of time that a mouse must hover over a control before a tool tip appears.
C)The amount of time between which two different tool tips appear.
D)The amount of time in which the tool tip is hidden for.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
45
When parent containers are resized,all anchored controls within the containers maintain their relative position to their anchored sides.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
46
Because of the nature of a GUI,a form cannot be set to a fixed size.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
47
GroupBoxes have a text display and can have scrollbars inserted into them.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
48
The Button property is used to determine which mouse button is clicked: left,middle,right or none.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
49
GroupBoxes and Panels are used to:
A)bundle controls into one container
B)allow more than one RadioButton to be true at the same time if the RadioButtons are on different GroupBoxes or Panels
C)organize the form in a more orderly fashion
D)All of the above
A)bundle controls into one container
B)allow more than one RadioButton to be true at the same time if the RadioButtons are on different GroupBoxes or Panels
C)organize the form in a more orderly fashion
D)All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
50
While a ToolTip is being displayed,it's appearance remains the same.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
51
Which of the following events is triggered when the mouse is moved downward?
A)MouseHover
B)MouseDown
C)MouseMove
D)All of the above.
A)MouseHover
B)MouseDown
C)MouseMove
D)All of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
52
Panels or GroupBoxes may not be embedded within one another.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
53
Mouse interaction with the GUI is limited to click,press,and move.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
54
To insert a control into a Panel or GroupBox in Design mode you must:
A)manually create the control inside the Panel or GroupBox
B)create a control and then drag it into the Panel or GroupBox
C)create a control and then set it as inside the Panel or GroupBox
D)group several controls and set their MainControl property to the Panel or GroupBox
A)manually create the control inside the Panel or GroupBox
B)create a control and then drag it into the Panel or GroupBox
C)create a control and then set it as inside the Panel or GroupBox
D)group several controls and set their MainControl property to the Panel or GroupBox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
55
You can use control properties to disable a control or to hide the control from the user.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
56
The AutoScroll property will cause a Panel to scroll to the bottom if the controls displayed are too large.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
57
What is a tool tip useful for?
A)the tip of the mouse blinks while hovering over an item in a GUI
B)the tip of the mouse is highlighted while hovering over an item in a GUI
C)helpful text appears while hovering the mouse over an item in a GUI
D)All of the above
A)the tip of the mouse blinks while hovering over an item in a GUI
B)the tip of the mouse is highlighted while hovering over an item in a GUI
C)helpful text appears while hovering the mouse over an item in a GUI
D)All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
58
MouseUp and MouseDown events are used when the mouse is moved up or down.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
59
When using mouse coordinates, (0,0)is located in the:
A)bottom left
B)bottom right
C)top left
D)top right
A)bottom left
B)bottom right
C)top left
D)top right
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
60
When obtaining the coordinates of the mouse they
A)are always taken from the main form of the program
B)are relative to the control that caused the event
C)are taken from the center of the form
D)none of the above
A)are always taken from the main form of the program
B)are relative to the control that caused the event
C)are taken from the center of the form
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
61
To set an underline shortcut in a Menu the programmer uses the tilde key (~).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
62
What is the event raised when a new date is selected with the MonthCalendar control?
A)NewDate
B)ModifiedDate
C)ChangedDate
D)DateChanged
A)NewDate
B)ModifiedDate
C)ChangedDate
D)DateChanged
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
63
The Shortcut property is used to set which key combination can be used instead of clicking on a menu item.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
64
The Clicks property of class MouseEventArgs is used to determine the number of times a mouse button was clicked.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
65
KeyPress events do not handle modifier keys.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
66
Visual Basic also has the capacity for submenus.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
67
In order to find out which key the user is pressing,one should use the:
A)KeyChar property
B)Key property
C)KeyPress property
D)GetKey property
A)KeyChar property
B)Key property
C)KeyPress property
D)GetKey property
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
68
Creating a window menu is mostly done through programming in the form load event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
69
A separator bar can be inserted in a menu with which of the following characters?
A)-
B)&
C)_
D)/
A)-
B)&
C)_
D)/
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
70
Whenever the mouse moves,the system raises a MouseMove event at a rate predetermined by the operating system.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
71
The _________ event can be used to determine if non-ASCII keys have been pressed.
A)KeyPress
B)KeyDown
C)KeyChar
D)None of the above.
A)KeyPress
B)KeyDown
C)KeyChar
D)None of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
72
In order to use modifier keys,you should:
A)use the ModifierKey event.
B)use the KeyData property.
C)use the ModifierKeyHandler.
D)modifier keys are handled by the operating system.
A)use the ModifierKey event.
B)use the KeyData property.
C)use the ModifierKeyHandler.
D)modifier keys are handled by the operating system.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
73
Pressing Enter to press a GUI button is not a key event;it's set in the control's properties.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
74
KeyPress events and one KeyDown event are generated when a key on the keyboard is pressed down.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
75
The KeyData property returns a key enumeration with no information about modifier keys.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
76
Menus are ways of grouping similar commands and preventing GUI clutter.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
77
ASCII does not support function keys or modifier keys.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
78
The KeyPress event is triggered when:
A)Any key is pressed.
B)A modifier key is pressed.
C)A key representing an ASCII character is pressed.
D)None of the above.
A)Any key is pressed.
B)A modifier key is pressed.
C)A key representing an ASCII character is pressed.
D)None of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
79
Which of the follow statements are true about menus created through Visual Basic?
A)They provide groups of related commands for Windows apps.
B)They organize commands without cluttering the GUI
C)They have the capacity to create shortcuts for the menu commands
D)All of the above
A)They provide groups of related commands for Windows apps.
B)They organize commands without cluttering the GUI
C)They have the capacity to create shortcuts for the menu commands
D)All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck
80
What does the MonthCalendar allow for?
A)time selection
B)date selection
C)a and b
D)None of the above
A)time selection
B)date selection
C)a and b
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 124 في هذه المجموعة.
فتح الحزمة
k this deck