Deck 9: Additional Controls and Objects
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/90
Play
Full screen (f)
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
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
5
The value of cboBox.Items(n) is the nth item in the combo box.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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)
A) cboBox.Items(0)
B) cboBox.Items(1)
C) cboBox.Items.First
D) cboBox.Items(First)
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
7
In a Simple combo box, the list is always visible.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
8
The value of cboBox.Text is the currently highlighted item.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
9
If no item in a combo box is selected, the value of lstBox.SelectedIndex is 0.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
10
The statement lstBox.Items.RemoveAt(lstBox.SelectedIndex) deletes the item currently highlighted in lstBox.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
12
The number of items in cboBox is cboBox.Items.Count.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) List
B) Simple
C) DropDown
D) DropDownList
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) ListBox
B) Simple ComboBox
C) DropDown ComboBox
D) DropDownList ComboBox
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
15
The DropDownStyle property of a combo box must be set at design time.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
16
The value of cboBox.Text is the contents of the text box at the top of the combo box.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
17
Combo boxes have most of the same properties, events, and methods as list boxes.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) ListBox
B) Simple ComboBox
C) DropDown ComboBox
D) DropDownList ComboBox
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
(A)cboBox.Items(lstBox.Items.Count)
B) cboBox.Items(lstBox.Items.Count - 1)
C) cboBox.Items(Count)
(D)cboBox.Items.Count
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) List Box
B) ComboBox
C) Timer Control
D) OpenFileDialog
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
22
With a scroll bar control, the default values of the Minimum and Maximum properties are 1 and 100 respectively.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
23
The following statement can be used to assign the Plane.bmp image to the picBox picture box control at runtime.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
A) the LargeChange property.
B) the Minimum property.
C) the Value property.
D) the Maximum property.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
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
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) lblFace will move to the left
B) lblFace will move up
C) lblFace will move down
D) lblFace will move to the right
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
29
For a timer control named Timer1, the Timer1.Enabled event is triggered each time Timer1.Interval milliseconds elapses.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
30
The timer control is invisible during run time.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
A) LargeChange.
B) SmallChange.
C) Value.
D) Maximum.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) txtBox.SelectedText = Clipboard.Text
B) txtBox.SelectedText = Clipboard.SetText
C) txtBox.SelectedText = Clipboard
D) txtBox.SelectedText = Clipboard.GetText
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
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
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
34
The SizeMode property of a picture box control cannot be altered at run time.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
35
MenuStrip controls respond to which one of the following events?
A) Change
B) Click
C) Double
D) Load
A) Change
B) Click
C) Double
D) Load
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
36
The main properties of a scroll bar are set in millimeters.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
A) Copy text to the Clipboard.
B) Paste text from the Clipboard.
C) Clear the screen.
D) Clear the Clipboard.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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)
A) picBox.Picture = filespec
B) picBox.Image = filespec
C) picBox.Image = Image.FromFile(filespec)
D) picBox.Picture = LoadPicture(filespec)
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) 5
B) 5000
C) 5 seconds
D) 5000 milliseconds
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
40
The size of a picture assigned to a picture box control is limited by the original size of the picture.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
42
The__________ event occurs just before a form closes.
A) FormClosing
B) Closing
C) CloseForm
D) FormEnding
A) FormClosing
B) Closing
C) CloseForm
D) FormEnding
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
44
The__________ control is used to print a form.
A) PrintDocument
B) FormPrinter
C) Print
D) PrintForm
A) PrintDocument
B) FormPrinter
C) Print
D) PrintForm
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
45
The statement Clipboard.SetText(str) replaces the current contents of the Clipboard with the value of str.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
46
Namespace-level variables are declared with the keyword __________.
A) Dim
B) Private
C) Public
D) Global
A) Dim
B) Private
C) Public
D) Global
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) AutomaticDelay
B) AutoPopDelay
C) Duration
D) AutoDelay
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) AutomaticDelay
B) AutoPopDelay
C) Duration
D) AutoDelay
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
50
Menus are designed with the MenuStrip control invoked from the Toolbox.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) 3
B) 2
C) 1
D) 0
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
53
A random number generator object can be declared with the following statement.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
num2 rndNum. Next
MessageBox. Show (nam1 & " " & num2)
Dim num1, num2 As Integer
num1
num2 rndNum. Next
MessageBox. Show (nam1 & " " & num2)
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
MessageBox. Show (num1)
Dim rndNum As New Random()
num1 rndNum.
MessageBox. Show (num1)
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
57
Pressing Ctrl+V with the cursor in a text box inserts the contents of the Clipboard at the cursor position.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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"
A) the word "txtBox"
B) the word "Hello"
C) the Clipboard will be emptied of all contents
D) the word "btnClip"
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) ToolTip
B) Message
C) ToolTip on ToolTip1
D) ToolTipMessage
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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"
A) the word "txtBox"
B) the word "Hello"
C) the Clipboard will be emptied of all contents
D) the word "btnClip"
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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)
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)
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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)
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)
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
63
Forms only can be closed with statements of the form Me.Close.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
A) 10 pixels.
B) 20 pixels.
C) 40 pixels.
D) 80 pixels.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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).
A) (30, 40).
B) (10, 20).
C) (20, 40).
D) (40, 40).
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
66
The statement gr.FillRectangle(Brushes.Red, 10, 20, 30, 40) draws a solid rectangle of width 40 pixels.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) Toolbox
B) Properties window
C) Project Designer
D) Toolbar
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
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
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
73
A modal form cannot lose the focus until the form disappears.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) ShowForm
B) ShowDialog
C) ShowModal
D) ShowModalForm
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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)
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)
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
76
When working with multiple forms, only one form can be visible at the same time.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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.
A) 10 pixels.
B) 20 pixels.
C) 40 pixels.
D) 80 pixels.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck
79
Code in one form can refer to controls in another form.
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
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
A) default
B) startup
C) initial
D) favored
Unlock Deck
Unlock for access to all 90 flashcards in this deck.
Unlock Deck
k this deck