Deck 12: Using Controls
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
Match between columns
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/42
العب
ملء الشاشة (f)
Deck 12: Using Controls
1
A LinkLabel is similar to a Label in that it is a parent of Label .
False
2
C# allows you to create custom colors.
True
3
A ____ is similar to a ListBox but with check boxes appearing to the left of each item.
A) CheckBox
B) ButtonBox
C) ComboBox
D) CheckedListBox
A) CheckBox
B) ButtonBox
C) ComboBox
D) CheckedListBox
D
4
A ____ is similar to a ListBox , except that it displays an additional editing field to allow the user to select from the list or to enter new text.
A) ComboBox
B) CheckBox
C) CheckedListBox
D) ComboListBox
A) ComboBox
B) CheckBox
C) CheckedListBox
D) ComboListBox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
5
The ____ class provides the definitions for GUI objects.
A) Control
B) Object
C) Widget
D) Gadget
A) Control
B) Object
C) Widget
D) Gadget
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
6
____ objects are GUI widgets the user can click to select an option; any number of these can be selected at the same time.
A) ListBox
B) RadioButton
C) CheckBox
D) CheckedListBox
A) ListBox
B) RadioButton
C) CheckBox
D) CheckedListBox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
7
The default text color for a LinkLabel is purple.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
8
You use the ____ class to change the appearance of printed text on your Form s.
A) Text
B) ForeText
C) Font
D) FontText
A) Text
B) ForeText
C) Font
D) FontText
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
9
The ____ Control allows you to retrieve date information.
A) Calendar
B) MonthCalendar
C) DateCalendar
D) CalendarPicker
A) Calendar
B) MonthCalendar
C) DateCalendar
D) CalendarPicker
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
10
When designing a Form , you will usually use the ____ design features in the IDE instead of typing code statements.
A) color
B) drag-and-drop
C) button
D) font
A) color
B) drag-and-drop
C) button
D) font
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
11
The ListBox provides a Boolean ____ property, which you can set to display items in columns instead of in a straight vertical list.
A) SingleColumn
B) MoreColumn
C) OneColumn
D) MultiColumn
A) SingleColumn
B) MoreColumn
C) OneColumn
D) MultiColumn
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
12
CheckBox and RadioButton objects have a ____ method that is called when the object is clicked by the user.
A) Changed()
B) ClickedChanged()
C) CheckedChanged()
D) ValueChanged()
A) Changed()
B) ClickedChanged()
C) CheckedChanged()
D) ValueChanged()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
13
A ____ provides the capability to link the user to other sources, such as Web pages or files.
A) Label
B) FileLabel
C) ResourceLabel
D) LinkLabel
A) Label
B) FileLabel
C) ResourceLabel
D) LinkLabel
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
14
A ____ is an object you can instantiate on a remote computer so that you can manipulate a reference to the object rather than a local copy of the object.
A) ByRefObject
B) RemoteRefObject
C) RemoteObject
D) MarshalByRefObject
A) ByRefObject
B) RemoteRefObject
C) RemoteObject
D) MarshalByRefObject
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
15
____ objects are GUI widgets the user can click to select an option; only one of a group can be selected at a time.
A) CheckButton
B) RadioButton
C) ListBox
D) RadioCheckedButton
A) CheckButton
B) RadioButton
C) ListBox
D) RadioCheckedButton
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
16
The ____ Control displays a month calendar when the down arrow is selected.
A) MonthCalendar
B) CalendarPicker
C) DateTimePicker
D) DatePicker
A) MonthCalendar
B) CalendarPicker
C) DateTimePicker
D) DatePicker
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
17
If you precede a letter in the Text property value of a ButtonBase object with a(n) ____, that letter acts as an access key.
A) &
B) %
C) $
D) #
A) &
B) %
C) $
D) #
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
18
Each Control has more than 80 public properties.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
19
When you size a ListBox so that all the items cannot be displayed at the same time, a scroll bar is provided automatically on the side.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
20
ListBox , ComboBox , and CheckedListBox objects all allow users to select choices from a list. These three classes descend from ____.
A) ListBase
B) ListControl
C) BaseList
D) List
A) ListBase
B) ListControl
C) BaseList
D) List
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
21
Setting the ____ property causes a Control to remain at a fixed distance from the side of a container when the user resizes it.
A) Dock
B) Padding
C) Anchor
D) Filling
A) Dock
B) Padding
C) Anchor
D) Filling
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
22
A(n) ____________________ is a Control in which you can display graphics from a bitmap, icon, JPEG, GIF, or other image file type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
23
In a MenuStrip , if you create each main menu item with a(n) ____ in front of a unique letter, then the user can press Alt and the given letter to activate the menu choice as an alternative to clicking it with the mouse.
A) %
B) $
C) &
D) >
A) %
B) $
C) &
D) >
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
24
What are some of the methods that you can use with the SelectionStart and SelectionEnd properties of MonthCalendar to calculate new dates? For example, if you wanted to calculate the date of an event that will occur 10 days from the SelectionStart date, what MonthCalendar method could you use?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
25
SelectionStart and SelectionEnd are properties of the MonthCalendar class. What methods can be applied to these properties to control the display of a date? What other factors influence the format in which dates are displayed?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
26
When designing a MenuStrip control, the programmer should follow conventional menu order; for example, a Help option is usually located ____ of the main menu.
A) on the far-left side
B) in the File submenu
C) in the Preferences submenu
D) on the far-right side
A) on the far-left side
B) in the File submenu
C) in the Preferences submenu
D) on the far-right side
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
27
What are some of the commonly used LinkLabel properties, and what is the default event generated when the link is clicked by a user?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
28
The ____________________ property of the PictureBox control sets the image that appears in the control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
29
When working with a Form in the IDE, how do you place new Control s on the Form , and how can you adjust them precisely to align with existing Control s?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
30
When using programs or visiting Internet sites, you encounter and use many other interactive ____________________-elements of graphical interfaces that allow you to interact with programs-such as scroll bars, check boxes, and radio buttons.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
31
Explain the selection options that can be controlled by setting the SelectionMode property of a ListBox .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
32
How would you declare a named instance of a Font class, and what arguments can be used within the constructor? Show the declaration for a font named fancyFont that is size 24, bold, underlined, and Helvetica.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
33
What are some of the commonly used PictureBox properties and the default event for a PictureBox ?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
34
Setting the ____ property attaches a Control to the side of a container so that the Control stretches when the container's size is adjusted.
A) Anchor
B) Dock
C) Padding
D) Filling
A) Anchor
B) Dock
C) Padding
D) Filling
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
35
The ____________________ class contains a wide variety of predefined Color s that you can use with your Control s.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
36
When you drag multiple Control s onto a Form , blue ____ appear and help you align new Control s with others already in place.
A) dots
B) dotted lines
C) grip angles
D) snap lines
A) dots
B) dotted lines
C) grip angles
D) snap lines
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
37
What are some of the commonly used CheckBox and RadioButton properties, and the default event for which a method shell is generated for these classes in the IDE? If you wanted a user to select which pizza toppings he or she wanted from a group of possible toppings, which Control would you use and why?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
38
When filling in the items in a MenuStrip control, you can double-click an entry to generate a ____ method that will execute if the user clicks on the entry.
A) Change()
B) SetSelected()
C) Click()
D) SelectedIndexChanged()
A) Change()
B) SetSelected()
C) Click()
D) SelectedIndexChanged()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
39
When you create a Form in the Visual Studio IDE, the IDE automatically generates code to support the Form and any Control s that you place on the Form . What do you know about the Form under development given the following snippet of code generated by the IDE?
private void InitializeComponent()
{
this .label1 = new System.Windows.Forms.Label();
this .okButton = new System Windows.Forms.Button();
...
}
private void InitializeComponent()
{
this .label1 = new System.Windows.Forms.Label();
this .okButton = new System Windows.Forms.Button();
...
}
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
40
Control objects such as Form s and Button s, like all other objects in C#, ultimately derive from the ____________________ class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
41
What are the similarities and differences between using a GroupBox and using a Panel to group related Control s on a Form ?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
42
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck