Deck 9: Additional Controls and Objects

ملء الشاشة (f)
exit full mode
سؤال
With a simple combo box, the list drops down when the user clicks on the arrow and then disappears after a selection is made.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Which of the following statements will remove all items from the list box?

A) lstBox.Items.RemoveAll
B) lstBox.Clear
C) lstBox.Items.Clear
D) For i As Integer = 1 to lstBox.Items.Count lstBox.Items.RemoveAt(i) Next
سؤال
For a list box named lstBox, the following statement will delete from its list the item whose index is the value num.
سؤال
A list that has dropped down disappears when the user clicks on an item or presses the Enter key.
سؤال
The value of cboBox.Items(n) is the nth item in the combo box.
سؤال
Which of the following expressions refers to the contents of the first row of the combo box?

A) cboBox.Items(0)
B) cboBox.Items(1)
C) cboBox.Items.First
D) cboBox.Items(First)
سؤال
In a Simple combo box, the list is always visible.
سؤال
The value of cboBox.Text is the currently highlighted item.
سؤال
If no item in a combo box is selected, the value of lstBox.SelectedIndex is 0.
سؤال
The statement lstBox.Items.RemoveAt(lstBox.SelectedIndex) deletes the item currently highlighted in lstBox.
سؤال
For a list box named lstBox, the following statement will delete the first occurrence of the value of num from its list.
سؤال
The number of items in cboBox is cboBox.Items.Count.
سؤال
Which of the following is the default setting for a combo box's DropDownStyle property?

A) List
B) Simple
C) DropDown
D) DropDownList
سؤال
Which of the following controls does not have a DropDownStyle property that must be specified at design time?

A) ListBox
B) Simple ComboBox
C) DropDown ComboBox
D) DropDownList ComboBox
سؤال
The DropDownStyle property of a combo box must be set at design time.
سؤال
The value of cboBox.Text is the contents of the text box at the top of the combo box.
سؤال
Combo boxes have most of the same properties, events, and methods as list boxes.
سؤال
Which of the following controls has a drop down arrow and an attached text box that allows users to type selections?

A) ListBox
B) Simple ComboBox
C) DropDown ComboBox
D) DropDownList ComboBox
سؤال
Which of the following expressions refers to the contents of the last row of the combo box?
(A)cboBox.Items(lstBox.Items.Count)
B) cboBox.Items(lstBox.Items.Count - 1)
C) cboBox.Items(Count)
(D)cboBox.Items.Count
سؤال
For a scroll bar, the value of the Value property is

A) any number.
B) a number between the values of the SmallChange and LargeChange properties.
C) a number between the values of the Minimum and Maximum properties.
D) true or false.
سؤال
Which of the following controls is NOT used to select an item from a list?

A) List Box
B) ComboBox
C) Timer Control
D) OpenFileDialog
سؤال
With a scroll bar control, the default values of the Minimum and Maximum properties are 1 and 100 respectively.
سؤال
The following statement can be used to assign the Plane.bmp image to the picBox picture box control at runtime.
سؤال
The largest possible value for the Value property in a scroll bar is determined by

A) the LargeChange property.
B) the Minimum property.
C) the Value property.
D) the Maximum property.
سؤال
To move the scroll box of a scroll bar a large distance

A) click on the scroll box.
B) click on the furthermost arrow button.
C) click on the bar between the scroll box and the furthermost arrow.
D) It can only be moved by writing code.
سؤال
In order to begin timing with the timer control, which one of the following must be true?

A) the timer control's Name property must include the prefix tmr
B) the timer control's Interval property must be set to 1
C) the timer control's Enabled property must be set to False
D) the timer control's Enabled property must be set to True
سؤال
When the SizeMode property of a picture box control is set to StretchImage, a picture placed in the control will be resized to fit the picture control.
سؤال
A form contains a horizontal scroll bar control named hsbXpos, and the statement lblFace.Top = hsbXpos.Value is placed inside the hsbXpos.Scroll event procedure (where lblFace identifies a label on the form, and the hsbXpos's Minimum and Maximum properties are set at their default values). What will happen when the hsbXpos.Scroll event is triggered by moving the scroll bar's scroll box to the right?

A) lblFace will move to the left
B) lblFace will move up
C) lblFace will move down
D) lblFace will move to the right
سؤال
For a timer control named Timer1, the Timer1.Enabled event is triggered each time Timer1.Interval milliseconds elapses.
سؤال
The timer control is invisible during run time.
سؤال
The distance that the scroll box of a scroll bar will move when an arrow on the scroll bar is clicked is determined by

A) LargeChange.
B) SmallChange.
C) Value.
D) Maximum.
سؤال
The correct code for replacing the selected text in txtBox with the contents of the Clipboard is:

A) txtBox.SelectedText = Clipboard.Text
B) txtBox.SelectedText = Clipboard.SetText
C) txtBox.SelectedText = Clipboard
D) txtBox.SelectedText = Clipboard.GetText
سؤال
Which of the following steps turns off a timer control?

A) Set the Interval property to zero.
B) Set the Enabled property to False.
C) Make the timer control invisible.
D) None of the above
سؤال
The SizeMode property of a picture box control cannot be altered at run time.
سؤال
MenuStrip controls respond to which one of the following events?

A) Change
B) Click
C) Double
D) Load
سؤال
The main properties of a scroll bar are set in millimeters.
سؤال
The Clipboard object is used for all of the following except which one?

A) Copy text to the Clipboard.
B) Paste text from the Clipboard.
C) Clear the screen.
D) Clear the Clipboard.
سؤال
Which of the following methods is used to load a new picture into a picture box control?

A) picBox.Picture = filespec
B) picBox.Image = filespec
C) picBox.Image = Image.FromFile(filespec)
D) picBox.Picture = LoadPicture(filespec)
سؤال
Which of the following settings of a timer's Interval property will raise a timer event every 5 seconds?

A) 5
B) 5000
C) 5 seconds
D) 5000 milliseconds
سؤال
The size of a picture assigned to a picture box control is limited by the original size of the picture.
سؤال
The term modal refers to

A) the user not being allowed to shift the focus to any other form until the displayed modal form is hidden.
B) the BorderStyle property is set to "3-Fixed Double."
C) the ability to reposition a form at run time.
D) the ability to display more than one form at one time.
سؤال
The__________ event occurs just before a form closes.

A) FormClosing
B) Closing
C) CloseForm
D) FormEnding
سؤال
When working with the MenuStrip control, the programmer makes the menus useful by placing code in the relevant Click event procedure for each menu item.
سؤال
The__________ control is used to print a form.

A) PrintDocument
B) FormPrinter
C) Print
D) PrintForm
سؤال
The statement Clipboard.SetText(str) replaces the current contents of the Clipboard with the value of str.
سؤال
Namespace-level variables are declared with the keyword __________.

A) Dim
B) Private
C) Public
D) Global
سؤال
After a ToolTip control has been placed into the component tray of the Form Designer, the setting of what property determines how long a tooltip will remain visible when the mouse hovers over a text box?

A) AutomaticDelay
B) AutoPopDelay
C) Duration
D) AutoDelay
سؤال
After a ToolTip control has been placed into the component tray of the Form Designer, the setting of what property determines the amount of time required for a tooltip to appear when mouse hovers over a text box?

A) AutomaticDelay
B) AutoPopDelay
C) Duration
D) AutoDelay
سؤال
When working with the MenuStrip control, the programmer is not allowed to set up access keys by placing an ampersand in front of a character of text.
سؤال
Menus are designed with the MenuStrip control invoked from the Toolbox.
سؤال
Given that the ANSI value for the letter A is 65, the pair of statements below will always display one of A, B, or C.
سؤال
A form contains a button called btnDisplay, and the following code is placed inside btnDisplay's Click event procedure. At run time, which one of the following cannot possibly be displayed in the message box when the user clicks on btnDisplay? Dim rndNum As New Random Dim num1 As Integer num1 = rndNum.Next(0, 3) MessageBox.Show(CStr(num1))

A) 3
B) 2
C) 1
D) 0
سؤال
A random number generator object can be declared with the following statement.
سؤال
A form contains a button called btnDisplay, and the following code is placed inside btnDisplay's Click event procedure. At run time, identical values will be displayed for num1 and num2 in the message box.
Dim num1, num2 As Integer
num1 =rndNumNext(0,3)= \operatorname { rndNum } \cdot \operatorname { Next } ( 0,3 )
num2 == rndNum. Next (0,3)( 0,3 )
MessageBox. Show (nam1 & " " & num2)
سؤال
The output of the following lines of code will be a randomly selected whole number from 1 through 6, inclusive. Dim rndNum As New Random num1 = rndNum.Next(1, 7) MessageBox.Show(num1)
Dim rndNum As New Random()
num1 == rndNum. Next(1,7)\operatorname { Next } ( 1,7 )
MessageBox. Show (num1)
سؤال
The Clipboard object is used to move or copy information from one location to another, including from one Windows application to another.
سؤال
Pressing Ctrl+V with the cursor in a text box inserts the contents of the Clipboard at the cursor position.
سؤال
A form contains a text box named txtBox and a button named btnClip. The statement Clipboard.SetText(txtBox.Text) is placed inside btnClip's Click event procedure. At run time, what will be placed into the Clipboard if the user enters the word "Hello" into txtBox and then clicks on btnClip?

A) the word "txtBox"
B) the word "Hello"
C) the Clipboard will be emptied of all contents
D) the word "btnClip"
سؤال
After a ToolTip control has been placed into the component tray of the Form Designer, the message that appears when the mouse hovers over a text box is set with which of the following properties?

A) ToolTip
B) Message
C) ToolTip on ToolTip1
D) ToolTipMessage
سؤال
A form contains a text box named txtBox and a button named btnClip. The statement Clipboard.SetText("") is placed inside btnClip's Click event procedure. At run time, what will be placed into the Clipboard if the user enters the word "Hello" into txtBox and then clicks on btnClip?

A) the word "txtBox"
B) the word "Hello"
C) the Clipboard will be emptied of all contents
D) the word "btnClip"
سؤال
Give a statement that draws a red diagonal from the upper-left corner of the picture box to the lower-right corner.

A) gr.DrawLine(Color.Red, 0, 0, picOutput.Width, picOutput.Height)
B) gr.DrawLine(Pens.Red, 0, 0, picOutput.Height, picOutput.Width)
C) gr.DrawLine(Pens.Red, 0, 0, picOutput.Width, picOutput.Height)
D) gr.DrawLine(Pens.Red, picOutput.Width, 0, 0, picOutput.Height)
سؤال
Give a statement that draws a blue line from the upper-left corner of the picture box to the center of the picture box.

A) gr.DrawLine(Pens.Blue, 0, 0, picOutput.Width/2, picOutput.Height/2)
B) gr.DrawLine(Pens.Blue, picOutput.Height, picOutput.Width, 0, 0)
C) gr.DrawLine(Pens.Blue, 0, 0, picOutput.Height/2, picOutput.Width/2)
D) gr.DrawLine(Pens.Blue, picOutput.Width/2, 0, 0, picOutput.Height/2)
سؤال
Forms only can be closed with statements of the form Me.Close.
سؤال
The radius of the circle drawn by the statement gr.DrawEllipse(Brushes.Red, 10, 20, 40, 40) is

A) 10 pixels.
B) 20 pixels.
C) 40 pixels.
D) 80 pixels.
سؤال
The center of the circle drawn by the statement gr.DrawEllipse(Brushes.Red, 10, 20, 40, 40) has coordinates

A) (30, 40).
B) (10, 20).
C) (20, 40).
D) (40, 40).
سؤال
The statement gr.FillRectangle(Brushes.Red, 10, 20, 30, 40) draws a solid rectangle of width 40 pixels.
سؤال
The_________ is used to specify the startup form for a program.

A) Toolbox
B) Properties window
C) Project Designer
D) Toolbar
سؤال
The statements gr.DrawLine(Pens.Red, 10, 20, 30, 40) and gr.DrawLine(Pens.Red, 30, 40, 10, 20) draw the same line.
سؤال
A program contains two forms with the names Form1 and Form2. Form1 contains a button called btnDisplay, and the following code is placed inside btnDisplay's Click event procedure.
Form2.ShowDialog
MessageBox.Show("Hello")
Which of the following statements is true after the user clicks on btnDisplay at run time?

A) Form2 appears behind Form1 and the user will be able to set the focus to either form.
B) Form2 appears in front of Form1 and the user will only be able to set the focus to Form2.
C) A message box displaying the text "Hello" appears in front of Form2 and Form1.
D) A message box displaying the text "Hello" appears behind Form2 and Form1.
سؤال
What is the effect of the statement gr.DrawString("Hello", Me.Font, Brushes.Blue, 50, 60)?

A) Display the word Hello in blue.
B) Display the word Hello beginning 50 pixels from the left side of the picture box.
C) Display the word Hello with the top of the word 60 pixels from the top of the picture box.
D) All of the above
سؤال
The statements gr.DrawLine(Pens.Red, 0, 0, 30, 40) and gr.DrawLine(Pens.Red, 10, 20, 40, 60) draw lines of the same length.
سؤال
The statements gr.DrawLine(Pens.Red, 0, 0, 30, 40) and gr.DrawLine(Pens.Red, 0, 0, 40, 30) draw lines of the same length.
سؤال
A modal form cannot lose the focus until the form disappears.
سؤال
The__________ method is used to display a form as a modal form and give it the focus.

A) ShowForm
B) ShowDialog
C) ShowModal
D) ShowModalForm
سؤال
Give a statement that displays the value of the string variable strVar with yellow letters.

A) gr.DrawString(strVar, Me.Font, Yellow, 50, 50)
B) gr.DrawString(strVar, Me.Font, Brushes.Yellow, 50, 60)
C) gr.DrawString(strVar, Me.Font, Pens.Yellow, 50, 60)
D) gr.DrawString(strVar, Me.Font, Color.Yellow, 50, 60)
سؤال
When working with multiple forms, only one form can be visible at the same time.
سؤال
A class-level variable declared in one form can be accessed by other forms if it is declared with the keyword Public.
سؤال
The distance from the top of the picture box to the top of the circle drawn by the statement gr.DrawEllipse(Brushes.Red, 10, 20, 40, 40) is

A) 10 pixels.
B) 20 pixels.
C) 40 pixels.
D) 80 pixels.
سؤال
Code in one form can refer to controls in another form.
سؤال
The first form loaded when a program starts running is called the _ form.

A) default
B) startup
C) initial
D) favored
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/90
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 9: Additional Controls and Objects
1
With a simple combo box, the list drops down when the user clicks on the arrow and then disappears after a selection is made.
False
2
Which of the following statements will remove all items from the list box?

A) lstBox.Items.RemoveAll
B) lstBox.Clear
C) lstBox.Items.Clear
D) For i As Integer = 1 to lstBox.Items.Count lstBox.Items.RemoveAt(i) Next
C
3
For a list box named lstBox, the following statement will delete from its list the item whose index is the value num.
True
4
A list that has dropped down disappears when the user clicks on an item or presses the Enter key.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
5
The value of cboBox.Items(n) is the nth item in the combo box.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which of the following expressions refers to the contents of the first row of the combo box?

A) cboBox.Items(0)
B) cboBox.Items(1)
C) cboBox.Items.First
D) cboBox.Items(First)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
7
In a Simple combo box, the list is always visible.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
8
The value of cboBox.Text is the currently highlighted item.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
9
If no item in a combo box is selected, the value of lstBox.SelectedIndex is 0.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
10
The statement lstBox.Items.RemoveAt(lstBox.SelectedIndex) deletes the item currently highlighted in lstBox.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
11
For a list box named lstBox, the following statement will delete the first occurrence of the value of num from its list.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
12
The number of items in cboBox is cboBox.Items.Count.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which of the following is the default setting for a combo box's DropDownStyle property?

A) List
B) Simple
C) DropDown
D) DropDownList
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which of the following controls does not have a DropDownStyle property that must be specified at design time?

A) ListBox
B) Simple ComboBox
C) DropDown ComboBox
D) DropDownList ComboBox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
15
The DropDownStyle property of a combo box must be set at design time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
16
The value of cboBox.Text is the contents of the text box at the top of the combo box.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
17
Combo boxes have most of the same properties, events, and methods as list boxes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which of the following controls has a drop down arrow and an attached text box that allows users to type selections?

A) ListBox
B) Simple ComboBox
C) DropDown ComboBox
D) DropDownList ComboBox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
19
Which of the following expressions refers to the contents of the last row of the combo box?
(A)cboBox.Items(lstBox.Items.Count)
B) cboBox.Items(lstBox.Items.Count - 1)
C) cboBox.Items(Count)
(D)cboBox.Items.Count
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
20
For a scroll bar, the value of the Value property is

A) any number.
B) a number between the values of the SmallChange and LargeChange properties.
C) a number between the values of the Minimum and Maximum properties.
D) true or false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which of the following controls is NOT used to select an item from a list?

A) List Box
B) ComboBox
C) Timer Control
D) OpenFileDialog
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
22
With a scroll bar control, the default values of the Minimum and Maximum properties are 1 and 100 respectively.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
23
The following statement can be used to assign the Plane.bmp image to the picBox picture box control at runtime.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
24
The largest possible value for the Value property in a scroll bar is determined by

A) the LargeChange property.
B) the Minimum property.
C) the Value property.
D) the Maximum property.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
25
To move the scroll box of a scroll bar a large distance

A) click on the scroll box.
B) click on the furthermost arrow button.
C) click on the bar between the scroll box and the furthermost arrow.
D) It can only be moved by writing code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
26
In order to begin timing with the timer control, which one of the following must be true?

A) the timer control's Name property must include the prefix tmr
B) the timer control's Interval property must be set to 1
C) the timer control's Enabled property must be set to False
D) the timer control's Enabled property must be set to True
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
27
When the SizeMode property of a picture box control is set to StretchImage, a picture placed in the control will be resized to fit the picture control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
28
A form contains a horizontal scroll bar control named hsbXpos, and the statement lblFace.Top = hsbXpos.Value is placed inside the hsbXpos.Scroll event procedure (where lblFace identifies a label on the form, and the hsbXpos's Minimum and Maximum properties are set at their default values). What will happen when the hsbXpos.Scroll event is triggered by moving the scroll bar's scroll box to the right?

A) lblFace will move to the left
B) lblFace will move up
C) lblFace will move down
D) lblFace will move to the right
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
29
For a timer control named Timer1, the Timer1.Enabled event is triggered each time Timer1.Interval milliseconds elapses.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
30
The timer control is invisible during run time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
31
The distance that the scroll box of a scroll bar will move when an arrow on the scroll bar is clicked is determined by

A) LargeChange.
B) SmallChange.
C) Value.
D) Maximum.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
32
The correct code for replacing the selected text in txtBox with the contents of the Clipboard is:

A) txtBox.SelectedText = Clipboard.Text
B) txtBox.SelectedText = Clipboard.SetText
C) txtBox.SelectedText = Clipboard
D) txtBox.SelectedText = Clipboard.GetText
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
33
Which of the following steps turns off a timer control?

A) Set the Interval property to zero.
B) Set the Enabled property to False.
C) Make the timer control invisible.
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
34
The SizeMode property of a picture box control cannot be altered at run time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
35
MenuStrip controls respond to which one of the following events?

A) Change
B) Click
C) Double
D) Load
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
36
The main properties of a scroll bar are set in millimeters.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
37
The Clipboard object is used for all of the following except which one?

A) Copy text to the Clipboard.
B) Paste text from the Clipboard.
C) Clear the screen.
D) Clear the Clipboard.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
38
Which of the following methods is used to load a new picture into a picture box control?

A) picBox.Picture = filespec
B) picBox.Image = filespec
C) picBox.Image = Image.FromFile(filespec)
D) picBox.Picture = LoadPicture(filespec)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
39
Which of the following settings of a timer's Interval property will raise a timer event every 5 seconds?

A) 5
B) 5000
C) 5 seconds
D) 5000 milliseconds
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
40
The size of a picture assigned to a picture box control is limited by the original size of the picture.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
41
The term modal refers to

A) the user not being allowed to shift the focus to any other form until the displayed modal form is hidden.
B) the BorderStyle property is set to "3-Fixed Double."
C) the ability to reposition a form at run time.
D) the ability to display more than one form at one time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
42
The__________ event occurs just before a form closes.

A) FormClosing
B) Closing
C) CloseForm
D) FormEnding
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
43
When working with the MenuStrip control, the programmer makes the menus useful by placing code in the relevant Click event procedure for each menu item.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
44
The__________ control is used to print a form.

A) PrintDocument
B) FormPrinter
C) Print
D) PrintForm
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
45
The statement Clipboard.SetText(str) replaces the current contents of the Clipboard with the value of str.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
46
Namespace-level variables are declared with the keyword __________.

A) Dim
B) Private
C) Public
D) Global
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
47
After a ToolTip control has been placed into the component tray of the Form Designer, the setting of what property determines how long a tooltip will remain visible when the mouse hovers over a text box?

A) AutomaticDelay
B) AutoPopDelay
C) Duration
D) AutoDelay
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
48
After a ToolTip control has been placed into the component tray of the Form Designer, the setting of what property determines the amount of time required for a tooltip to appear when mouse hovers over a text box?

A) AutomaticDelay
B) AutoPopDelay
C) Duration
D) AutoDelay
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
49
When working with the MenuStrip control, the programmer is not allowed to set up access keys by placing an ampersand in front of a character of text.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
50
Menus are designed with the MenuStrip control invoked from the Toolbox.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
51
Given that the ANSI value for the letter A is 65, the pair of statements below will always display one of A, B, or C.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
52
A form contains a button called btnDisplay, and the following code is placed inside btnDisplay's Click event procedure. At run time, which one of the following cannot possibly be displayed in the message box when the user clicks on btnDisplay? Dim rndNum As New Random Dim num1 As Integer num1 = rndNum.Next(0, 3) MessageBox.Show(CStr(num1))

A) 3
B) 2
C) 1
D) 0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
53
A random number generator object can be declared with the following statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
54
A form contains a button called btnDisplay, and the following code is placed inside btnDisplay's Click event procedure. At run time, identical values will be displayed for num1 and num2 in the message box.
Dim num1, num2 As Integer
num1 =rndNumNext(0,3)= \operatorname { rndNum } \cdot \operatorname { Next } ( 0,3 )
num2 == rndNum. Next (0,3)( 0,3 )
MessageBox. Show (nam1 & " " & num2)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
55
The output of the following lines of code will be a randomly selected whole number from 1 through 6, inclusive. Dim rndNum As New Random num1 = rndNum.Next(1, 7) MessageBox.Show(num1)
Dim rndNum As New Random()
num1 == rndNum. Next(1,7)\operatorname { Next } ( 1,7 )
MessageBox. Show (num1)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
56
The Clipboard object is used to move or copy information from one location to another, including from one Windows application to another.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
57
Pressing Ctrl+V with the cursor in a text box inserts the contents of the Clipboard at the cursor position.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
58
A form contains a text box named txtBox and a button named btnClip. The statement Clipboard.SetText(txtBox.Text) is placed inside btnClip's Click event procedure. At run time, what will be placed into the Clipboard if the user enters the word "Hello" into txtBox and then clicks on btnClip?

A) the word "txtBox"
B) the word "Hello"
C) the Clipboard will be emptied of all contents
D) the word "btnClip"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
59
After a ToolTip control has been placed into the component tray of the Form Designer, the message that appears when the mouse hovers over a text box is set with which of the following properties?

A) ToolTip
B) Message
C) ToolTip on ToolTip1
D) ToolTipMessage
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
60
A form contains a text box named txtBox and a button named btnClip. The statement Clipboard.SetText("") is placed inside btnClip's Click event procedure. At run time, what will be placed into the Clipboard if the user enters the word "Hello" into txtBox and then clicks on btnClip?

A) the word "txtBox"
B) the word "Hello"
C) the Clipboard will be emptied of all contents
D) the word "btnClip"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
61
Give a statement that draws a red diagonal from the upper-left corner of the picture box to the lower-right corner.

A) gr.DrawLine(Color.Red, 0, 0, picOutput.Width, picOutput.Height)
B) gr.DrawLine(Pens.Red, 0, 0, picOutput.Height, picOutput.Width)
C) gr.DrawLine(Pens.Red, 0, 0, picOutput.Width, picOutput.Height)
D) gr.DrawLine(Pens.Red, picOutput.Width, 0, 0, picOutput.Height)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
62
Give a statement that draws a blue line from the upper-left corner of the picture box to the center of the picture box.

A) gr.DrawLine(Pens.Blue, 0, 0, picOutput.Width/2, picOutput.Height/2)
B) gr.DrawLine(Pens.Blue, picOutput.Height, picOutput.Width, 0, 0)
C) gr.DrawLine(Pens.Blue, 0, 0, picOutput.Height/2, picOutput.Width/2)
D) gr.DrawLine(Pens.Blue, picOutput.Width/2, 0, 0, picOutput.Height/2)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
63
Forms only can be closed with statements of the form Me.Close.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
64
The radius of the circle drawn by the statement gr.DrawEllipse(Brushes.Red, 10, 20, 40, 40) is

A) 10 pixels.
B) 20 pixels.
C) 40 pixels.
D) 80 pixels.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
65
The center of the circle drawn by the statement gr.DrawEllipse(Brushes.Red, 10, 20, 40, 40) has coordinates

A) (30, 40).
B) (10, 20).
C) (20, 40).
D) (40, 40).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
66
The statement gr.FillRectangle(Brushes.Red, 10, 20, 30, 40) draws a solid rectangle of width 40 pixels.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
67
The_________ is used to specify the startup form for a program.

A) Toolbox
B) Properties window
C) Project Designer
D) Toolbar
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
68
The statements gr.DrawLine(Pens.Red, 10, 20, 30, 40) and gr.DrawLine(Pens.Red, 30, 40, 10, 20) draw the same line.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
69
A program contains two forms with the names Form1 and Form2. Form1 contains a button called btnDisplay, and the following code is placed inside btnDisplay's Click event procedure.
Form2.ShowDialog
MessageBox.Show("Hello")
Which of the following statements is true after the user clicks on btnDisplay at run time?

A) Form2 appears behind Form1 and the user will be able to set the focus to either form.
B) Form2 appears in front of Form1 and the user will only be able to set the focus to Form2.
C) A message box displaying the text "Hello" appears in front of Form2 and Form1.
D) A message box displaying the text "Hello" appears behind Form2 and Form1.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
70
What is the effect of the statement gr.DrawString("Hello", Me.Font, Brushes.Blue, 50, 60)?

A) Display the word Hello in blue.
B) Display the word Hello beginning 50 pixels from the left side of the picture box.
C) Display the word Hello with the top of the word 60 pixels from the top of the picture box.
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
71
The statements gr.DrawLine(Pens.Red, 0, 0, 30, 40) and gr.DrawLine(Pens.Red, 10, 20, 40, 60) draw lines of the same length.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
72
The statements gr.DrawLine(Pens.Red, 0, 0, 30, 40) and gr.DrawLine(Pens.Red, 0, 0, 40, 30) draw lines of the same length.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
73
A modal form cannot lose the focus until the form disappears.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
74
The__________ method is used to display a form as a modal form and give it the focus.

A) ShowForm
B) ShowDialog
C) ShowModal
D) ShowModalForm
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
75
Give a statement that displays the value of the string variable strVar with yellow letters.

A) gr.DrawString(strVar, Me.Font, Yellow, 50, 50)
B) gr.DrawString(strVar, Me.Font, Brushes.Yellow, 50, 60)
C) gr.DrawString(strVar, Me.Font, Pens.Yellow, 50, 60)
D) gr.DrawString(strVar, Me.Font, Color.Yellow, 50, 60)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
76
When working with multiple forms, only one form can be visible at the same time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
77
A class-level variable declared in one form can be accessed by other forms if it is declared with the keyword Public.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
78
The distance from the top of the picture box to the top of the circle drawn by the statement gr.DrawEllipse(Brushes.Red, 10, 20, 40, 40) is

A) 10 pixels.
B) 20 pixels.
C) 40 pixels.
D) 80 pixels.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
79
Code in one form can refer to controls in another form.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
80
The first form loaded when a program starts running is called the _ form.

A) default
B) startup
C) initial
D) favored
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.