Module 4 Quiz

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

If an existing text file is opened for output, the computer will append any new data to the end of this existing file.

False

Text files are updated by opening them for Input and then entering the new data.

False

The event occurs just before a form closes.

FormClosing

Which of the following statements is true concerning the Clipboard object?

It is a portion of memory that holds information and has no properties or events.

Which exception will the following code generate? Dim num1 As Integer, num2 As Integer = 1000000 num1 = num2 * num2

OverflowException

What control is added to a form to enable printing of graphics?

PrintDocument

The control is used to print a form.

PrintForm

What property is set to False in order to remove the row header column on the left side of a DataGridView control?

RowHeaderVisible

Which of the following controls is NOT used to select an item from a list?

Timer Control

In a Simple combo box, the list is always visible.

True

In a Try-Catch-Finally block, the code in the Finally block is always executed, regardless of whether an exception was thrown.

True

The value of cboBox.Text is the currently highlighted item.

True

To get rid of an existing closed file, execute a statement of the form IO.File.Delete(filespec).

True

With a Simple combo box, the list drops down when the user clicks on the arrow and then disappears after a selection is made.

True

Which of the following expressions refers to the contents of the first row of the combo box?

cboBox.Items(0)

Which of the following expressions refers to the contents of the last row of the combo box?

cboBox.Items(lstBox.Items.Count - 1)

Give a statement that displays the value of the string variable strVar with yellow letters.

gr.DrawString(strVar, Me.Font, Brushes.Yellow, 50, 60)

Which of the following statements will remove all items from the list box?

lstBox.Items.Clear()

A variable that is visible to every form in a program is said to have scope.

namespace

When an exception is generated by a Visual Basic application, the default exception handler will:

terminate the program.

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?

the Clipboard will be emptied of all contents

When an existing file is opened for Output:

the file is erased completely and new data is added at the beginning of the file.

In order to begin timing with the timer control, which one of the following must be true?

the timer control's Enabled property must be set to True

Which of the following terms is NOT used to refer to a part of an XML document?

title

The correct code for replacing the selected text in txtBox with the contents of the Clipboard is:

txtBox.Paste()


Kaugnay na mga set ng pag-aaral

5B troubleshooting Windows Network

View Set

AAMA Anatomy and Physiology Practice Exam

View Set

Prep U: Chpt. 30 Management of Patients with Hematologic Neoplasms

View Set

prep u Chapter 18: CNS Stimulants

View Set

15개정 수학과 교과교육론2 (베르트하이머, 폴리아, 피아제)

View Set